06-12-2015 07:17 AM
Hi All,
I have been trying to communicate serially with a mass flow controller (Alicat MC series). I can successfully do this using a terminal (RealTerm). However when I try to do this on labview I am getting no feedback. What I'm trying to do is set up a loop that writes then reads the changes caused by the command. I have followed the basic serial read and write template with no success, and I have also tried using the NI MAX application for testing, and I have had no luck using that either. It claims to successfully write but then says the device is timed out. I tried increasing the time out number but still no luck. I am thinking this is a software issue because I can successfully communicate using a terminal. I have verified that my connections work and I have all the right settings i.e. baud rate, parity, etc. I have attached my program, if there are any errors that anyone can point out, that would be appreciated.
06-12-2015 07:33 AM - edited 06-12-2015 07:40 AM
You need to append the termination character to your write data (should be a Line Feed character). You can just use a property node to make VISA do it for you.
06-12-2015 08:04 AM
That doesn't seem to be working for me. My property node also only seems to have the option to output the true command and the term char command.
06-12-2015 08:13 AM
Right-click, Change All To Write.
06-12-2015 08:26 AM
Did that and still not working. I have used the highlight execution function in the block diagram and on tracing it, it seems that there is no signal going to the read buffer at all.
06-12-2015 08:48 AM
I have also tried using the manufacturer's VI's and I get error -1073807339, which is a timeout issue. I have attached the VI here.