From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time out in event structure

Solved!
Go to solution

You won't. As i stated in my post way ago: VISA read/write have a configurable timeout on their own!

 

Norbert

 

EDIT: So please simply delete the "observer" loop as it is completely unnecessary.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 11 of 13
(396 Views)

@mnx wrote:
Thanks crossrulz..:-)this I have to put in 2nd while loop is it??.. And how will I monitor the timeout??

No second loop needed.  No first loop even needed for that matter.  This code will replace both of your loops.  Doesn't that look so much easier?

 

The VISA Read will throw an error if there is a timeout.  That timeout value is whatever you set when you configured the serial port.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 13
(392 Views)

Thanks  

0 Kudos
Message 13 of 13
(346 Views)