Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

set initial state of a string

$
0
0

Please see the attached VI.  It is attempting to test for a valid connection to a serial device.  It allows the user 10 attempts before it will turn off.  There is a stop button so you don't have to sit through 10 attempts.  I want an error condition to be reported and then the user can try again on a different port.

 

I would like a string "Starting..." fed to an indicator.  As the user attempts to connect, the indicator counts off the errors.  When it connects successfully, the indicator should show the response from the device.  The OR gate on the right receives a TRUE at the start, but waits for the other input before firing, which beats me since the OR condition has already been met.  Net result is not as anticipated.

 

Ideally, I would like the LED to be grey for initial state, then red or green for fail or pass.  Is there a 3-state object I am just not finding?

 

Any comments would be highly appreciated -- thanks!


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>