04-01-2002 01:20 PM
04-01-2002
03:37 PM
- last edited on
11-10-2025
04:36 PM
by
Content Cleaner
Chuck,
A nice way to solve the problem is to make a sub-vi that contains the wait function, as well as inputs and outputs that pass-thru the refnum and error cluster.
A second method would be to place the wait function in a sequence structure, then pass the refnum and error through that sequence structure to the next call.
If you want to get really advanced, the most efficient method of waiting for a GPIB instrument to respond is to use a service request (SRQ). SRQs are rather advanced, and if you decide to go that route, I would definately start by reading the tutorial linked below.
Serial Polling and SRQ Servicing with NI-488.2 Software and LabVIEW - Tutorial
Regards,
Greg Caesar
National Instruments