取消
显示结果 
搜索替代 
您的意思是: 

DAQ

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.

 

0 项奖励
1 条消息(共 13 条)
3,908 次查看

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"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
2 条消息(共 13 条)
3,886 次查看

 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.

 

 

0 项奖励
3 条消息(共 13 条)
3,880 次查看

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
4 条消息(共 13 条)
3,876 次查看

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.

 

0 项奖励
5 条消息(共 13 条)
3,870 次查看

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?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
6 条消息(共 13 条)
3,860 次查看

hi GerdW!

Thaks you.

 

0 项奖励
7 条消息(共 13 条)
3,853 次查看

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.

Ảnh1.pngẢnh2.jpg

 

0 项奖励
8 条消息(共 13 条)
3,844 次查看

Hi hung,

 

the slow part in your VI are those "1 chan 1 sample" DAQmxWrite functions: doing DAQmx with just one sample is slow.

 

Please try to adapt those DAQmx examples with triggers…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
9 条消息(共 13 条)
3,839 次查看

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.

0 项奖励
10 条消息(共 13 条)
3,837 次查看