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!