Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-USB-6002 USB time delay via Simulink

Hi! This is probably a very naive question, but the setup is the following:

 

- I have a 1x NI-USB-6002 receiving digital information on channels P0.0 - P0.4. This information is relayed to the PC via the USB cable, processed/recorded via a Simulink script and it generates a matrix file as an output. 

 

I understand that there is a delay between the time it takes from the device to detect any change in the input ports to the time is transmitted/written in Simulink, but I don't have a clear idea of the range of how long that takes (1 ms, 10 ms?).

 

Based on some empirical tests, it seems to be in the range of <10 ms, but I was wondering if there's any way in which I can measure more accurately the delay ? Or overall, to reduce the delay.

 

If more information is needed, please tell me. Apologies in advance for ignorance, I'm not an engineer and I'm still learning about the hardware and its limitations.

0 Kudos
Message 1 of 3
(813 Views)

It could be in the order of ms but it is non-deterministic due to the nature of the USB protocol.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(802 Views)

Thank you for answering. I understand that it may not be possible to determine the precise latency at each sampling point, but do you have any recommendation as to how I could more accurately determine the range of this delay? 

0 Kudos
Message 3 of 3
(772 Views)