LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Pathfinder101

A micro second wait VI

Status: Completed

Available in LabVIEW 2018 and later with High Resolution Polling Wait.vi.

NI Community,

I have developed some applications where it was desirable to have a Wait, but 1 millisecond is just too long.

 

I came up with a method using the High Resoution Releative Seconds.vi, to create a delay in the microsecond range (it's attached).  This works for the particular application I need it for, because I am waiting on an external buffer to be ready to accept new data (its rate it can process is 60 nanoseconds).  Waiting for an entire millisecond in this case is just too long.

 

The downside to this method is it is tied to your processor speed and current workload.  It would be great if NI supported a 'Wait Until Next us Multiple.vi  (it doesn't Sleep).

Attached is my work-around.  I'd love to see other ideas on this topic. 

Thank you, 

Dan

12 Comments
dadreamer
Active Participant

@TomOrr0W wrote:
Is the High Resolution Polling Wait vi of LabVIEW 2018 sufficient to close this idea?

I think, it's enough to meet the initial requirements of the author (sub-millisecond resolution of the whole operation). It's still tied to the CPU type and the OS load, if you're using it on non-RT OS, but you should be fine with it on RT. This idea should be marked as "Completed".

Darren
Proven Zealot
Status changed to: Completed

Available in LabVIEW 2018 and later with High Resolution Polling Wait.vi.