From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger delay too long

I'm trying to make a 10ms trigger delay using a PCI-MIO-16E-4.  However everytime I use it there seems to be a variable delay of about 50ms before my signal is outputted.   Is there anyway to remove this extra delay?
 
Thanks
0 Kudos
Message 1 of 2
(3,099 Views)

Although you are getting a longer delay than you are wanting, this can be caused by a few things. One large factor in delay times being slightly off are that, unless you are using a real-time system, your PC is non-deterministic and will not guarantee your delay being exact and occurring at the exact same time each iteration.

Another factor, partially building on the one above, is the code you are running and how long it takes to execute. If you have a 10 ms ‘wiat ms.vi’, but your code takes 20ms, then the delay will be ignored because your code ran longer than the wait timer. This KB explains more about the wait functions.

David L.
Systems Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,086 Views)