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.