ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication

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. 

0 Kudos
Message 1 of 6
(5,109 Views)

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(5,104 Views)

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. 

0 Kudos
Message 3 of 6
(5,090 Views)

Right-click, Change All To Write.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 6
(5,087 Views)

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.

0 Kudos
Message 5 of 6
(5,083 Views)

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. 

0 Kudos
Message 6 of 6
(5,079 Views)