03-26-2019 10:49 PM
I use DAQmx to write a number 1 signal then write to level 0. I use Osiloscope to measure this signal and see it delay 1ms. How do I fix it? Thanks everyone. My DAQ is NI ELVIS II.
03-27-2019 01:56 AM - edited 03-27-2019 01:58 AM
Hi hung,
How do I fix it?
Short answer: Write a better VI.
Long answer: What kind of answer do you expect with such a question? You don't provide informations about your problem, and you forgot to attach your VI.
I use DAQmx to write a number 1 signal then write to level 0.
It would be much easier to understand that sentence when you would have attached your VI: what is a "number 1 signal" and where is "level 0"?
03-27-2019 03:23 AM
My problem is to write a digital signal to NI ELVIS II device. First I will write HIGH and then write LOW. I found my code to run for ~ 1E-6 ms, but when I use the oscilloscope to measure the digital signal, I write that I see the HIGH level exists for 1ms and then return to LOW. I want to reduce this time right away because ~ 1ms is too big. Thanks you.
03-27-2019 03:48 AM
Hi hung,
First I will write HIGH and then write LOW.
From the specs it seems the Elvis only supports static DIO, so you will not get much faster using them.
But you could use counters/timers to generate short pulses. you could also generate a pulse using an AO channel…
03-27-2019 04:15 AM
Hi GerdW,
I understand your idea, but I don't know how to do it. If using the Digital Output of NI ELVIS II device like I did before, the delay time is quite large, I need time from high to low is immediately (approximate ns). If you know how to do it, you can create a VI to help me. Thank you very much.
03-27-2019 06:01 AM - edited 03-27-2019 06:02 AM
Hi hung,
the AO channels allow for upto 2.8MS/s (for single channel), so the minimum time between two samples can be 357ns.
The counter/timer use 20MHz clock, so the minimum time between two samples of a pulse can be 50ns.
In the example finder you will find example VIs, which show how to output waveforms on AO channels or how to output pulses using a counter/timer!
I need time from high to low is immediately (approximate ns)
"immediately" is impossible - you need to obey physics.
(Maybe you should first write down your requirements before choosing some DAQ hardware?)
03-27-2019 06:46 AM
hi GerdW!
Thaks you.
03-27-2019 08:15 AM
Hi GerdW,
I used Analog Output instead of Digital Output. But the results are still not satisfactory, I cannot explain this. whether there is another option or I have to use another DAQ.
03-27-2019 08:25 AM
03-27-2019 08:26 AM
Because you are still using software timing!
I'm not familiar with the Elvis. But if it behaves like other NI DAQ devices, you need to set up a sample clock, create an analog waveform, and output it using 1 channel N samples.