12-13-2022 04:41 PM
System:
- Windows10
- LabVIEW 2021
- RS232
I am currently working on a visa connection recovery and the Visa Read STB doesn't appear to respect the visa timeout property or even timeout for that matter, can't confirm this at the moment.
For this test setup i have a visa timeout of 100ms and after making a connection I break the connection and as expected I receive a timeout error, -1073807339, upstream and then the application hangs at Visa Read STB until the connection is made again, 73s in this case.
See image below for code.
Trolled the forums, but couldn't find much on this. Hoping someone can share some wisdom.
12-13-2022 06:42 PM - edited 12-13-2022 06:53 PM
Could you send the actual command, i.e. "*STB?\n", using standard VISA reads and writes?
Or is this a device that doesn't support that?
Also, are you sure that you want to be using VISA Clear and not VISA Flush I/O Buffer? I've had some RS232 devices that don't like the "Break" signal that gets sent on the line from a VISA Clear signal.
12-14-2022 08:58 AM
The IO protocol is Serial-TCPIP/488, therefore I assume the command is "*STB?\n", but IO trace doesn't explicitly show that. I can replace the code and test it, worth a look.
The code snippet provided is from a third party driver created by the manufacturer, Magna, but I can swap that out for a flush buffer as well. I will report back on the findings.