LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

choose between two strings

Hi all,

 

I want to choose between two strings and wondered is what i have done the best way of ahieving this. One string is to chooseserial input the other will read a text file.

 

 

Thanks in advance 🙂

 

Rob

0 Kudos
Message 1 of 2
(2,918 Views)

You should probably use a case structure so that you do not read from the serial port when you have chosen to use the file and visa versa.

 

Personally, I would probably just check the file path.  If the path is empty, read from the serial port.  Otherwise read the file.


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
Message 2 of 2
(2,903 Views)