Hi,
I am using a USB to serial converter to communicate to a PLC inside a while structure.
I am configuring the serial port before entering the loop.
The communication is fine...there is no issue with that.
Now whenever I unplug my USB-to-serial device the loop continues to execute unless I use the 'STOP' button to forcibly stop the loop. Only after the loop stops executing , the error dialog box is thrown.
Can anybody guide me in modifying my program to the achieve the following:
- The while loop exits as soon as the USB-to-serial converter is unplugged.
- Any means of restarting the VI after restoring the USB-to-serial converter.
Thanks in advance.