LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What property settings to I need to set in order for VISA Serial Read to read ASCII exactly like the legacy serial read vi?

I have successfully built a vi which communicates with a piece of equipment via the serial port using ASCII characters. I am trying to replace the older versions of Serial Read and Write VIs with the VISA Serial Read and Write VIs. The VISA Write works fine, but the when reading data coming from the "box", the VISA Read VI returns string data with foreign looking characters instead of the usual correct ASCII characters as shown by a dumb terminal which is in parallel with the serial data line. Is there a special property node which needs to be configured on the VISA Serial Read vi, or do I need to set something on the VISA Configure Serial port v
i?

Why aren't the VISA serial vis compatible with the older serial vis?

Thanks...
0 Kudos
Message 1 of 3
(2,621 Views)
Usually, garbage characters are an indication of a baud rate or parity mismatch, or maybe a stop bit or number of data bits setting. Make sure that you have configured your port correctly with VISA Configure Serial Port. I have used VISA serial successfully many times.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 3
(2,621 Views)
At the beginning of the top-level vi, the port is configured with the correct settings...however, I found an error in my programming...inside one of the subVIs, I was closing the VISA session, and very quickly "re-opening" the port with a Read command without re-initializing...and this time the port was configured by LabView using the default settings, hence, the garbage characters...
Thanks for your time...
0 Kudos
Message 3 of 3
(2,621 Views)