LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa Read STB No Timeout

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.

Wolleee_0-1670970948414.png

Trolled the forums, but couldn't find much on this.  Hoping someone can share some wisdom.  

 



-Matt
0 Kudos
Message 1 of 3
(1,220 Views)

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.

0 Kudos
Message 2 of 3
(1,173 Views)

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.  



-Matt
0 Kudos
Message 3 of 3
(1,128 Views)