Solution
There are two ways to set the timeout value for your VISA session in LabWindows CVI:
- Configure your VISA session using viOpen():
When creating a VISA session using viOpen() one of the input parameters to this method is the timeout value:
viOpen(ViSession sesn, ViRsrc rsrc, ViAccessMode access, ViUInt32 Timeout, ViPSession vi) You set the timeout value with the fourth parameter in milliseconds.
- If you already have a VISA session open you can alter the timeout value using viSetAttribute():
The function call will be:
viSetAttribute(VISA handle, Timeout timeout, int32 value)
The second parameter is the Timeout attribute of your VISA Session and the value is set in the third parameter.