I have written a VB5 program which communicates with a Vector Network Analyser (VNA) via a PCI GPIB to send device settings and to read data values.
Currently each command is followed by a 0.5sec programmed delay to ensure the VNA has time to complete each command.
However, I think this may be increasing the time the program takes to complete its task. How do I go about using the *OPC and *OPC? (or WAIT [??]) commands in a VB5 program so that the 0.5sec delay after each command can be removed and the VNA tells me when it is ready for the next command?
Can anyone replying consider that I do know that status byte registers exist, but that I have no idea what they are or how to use the
m. Thanks