Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69214

visa error handling in serial communication

$
0
0

Greetings,


I have a problem with the serial communication in my Labview program.
I have made an application that reads from serial port, searches for beggining characters, and later counts data after that beggining characters into variables in Labview program.

Everything work fine, but problem starts when I unplug the device from computer.
Program blocks and I could not do anything. Even Visa Close does not do anything.

I need to restart my computer to make my application works.

I made some indicators in subVi, and I see that when I unplug the device the error from READ VISA changes.
My question is:  How to handle this event(error) to restart or unblock my serial device.

I am attaching a SubVi, that searches for starting characters " KBON,"

 

Best regards,
Chris


Viewing all articles
Browse latest Browse all 69214


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