Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial communication

I'm trying to make serial communication between computer and RTE 140 Bath/Circulator (from NESLAB). When I use "serial communication.vi", it works well. I can write to and read from the instrument. Since I want to write from and read to a file, I replaced sub vi, "VISA Write.vi" and "Serial Read with Timeout.vi" in "Serial communication.vi", with sub vi "VISA Write from File.vi" and "VISA Read To File.vi", separately. Then, I run this new vi. It works for "write from", but I got a strange character in the file that the vi read to. Also, "write to" only works once. If I run it second time, it doesn't work. But if I run the original "serial communication.vi" before I run the modified one, the modified one works. I thought there is something in the
duffer and add "VISA Flush I/O Buffer" in the program. No change. I appreciate if anyone can help.
0 Kudos
Message 1 of 2
(3,292 Views)
It sounds like an issue with the termination character.

Use the "VISA Configure Serial Port" to ensure the term char is disabled.

VISA may be throwing an extra character in with out your knowledge.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 2
(3,292 Views)