Programming > Programming Tips
VISA Timeout Considerations
Using the *OPC? or any other query when waiting for an operation to complete can lead to VISA timeout. The program must set the timeout to a value no less than the expected sweep time. For example:
viSetAttribute(instr, VI_ATTR_TMO_VALUE, 5000);