04-28-2016 04:56 AM
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
04-28-2016 05:52 AM - edited 04-28-2016 05:52 AM
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.