LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Wait on event async.vi

Why does this library VI use the Wait (ms) timer set to zero?

This tight running loop overloads the CPU and changing the zero delay to something like 10 ms allows parallel process to run freely.
0 Kudos
Message 1 of 4
(2,887 Views)
RLD:

The time is set to 0 so as to spend as little time in the VISA driver as possible. This leaves more time for LabVIEW but has the side effect you noticed.

If you want the most parallelism, then I suggest you use the synchronous VISA Wait on Event primitive instead. This will block for the duration of the timeout in the VISA driver.

By the way, we plan to improve this from within the VISA driver in the next version.

Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments
0 Kudos
Message 2 of 4
(2,887 Views)
Is there a synchronous version of the VISA library VI, "Wait for RQS.vi"? If not, how would it be modified to use the VISA primitives?
0 Kudos
Message 3 of 4
(2,887 Views)
Does it ship with LV 6x? No.
Is it possible? Yes - attached!

Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments
0 Kudos
Message 4 of 4
(2,886 Views)