This page describes how the standard “wait(ms)” LabVIEW function can be replaced with C-Nodes to possibly achieve a more accurate timing.
Please note that c nodes work only in compiled mode (Not in FDM mode)
Inside of a c-node enter:
extern void se_advtimer_wait_ms(unsigned int timeout_ms); se_advtimer_wait_ms (ms);
Here is a little example for the weait ms replacement:
drag and drop this VI snippet into a LabVIEW block diagram.
Notes:
- This is a replacement for the LabVIEW “wait(ms)” function.
It does NOT have the “wait until next multiple” functionality.