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

Restarting serial communication after disruption

$
0
0

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:

  1. The while loop exits as soon as the USB-to-serial converter is unplugged.
  2. Any means of restarting the VI after restoring the USB-to-serial converter.

Thanks in advance.


Viewing all articles
Browse latest Browse all 5634

Trending Articles



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