06-17-2014 03:09 PM
Hello,
I am trying to control a multiposition Valco valce using rs-232. If i just start TeraTerm and run the commands directly, the valve works as expected. However, when i try to use either the basic or advanced serial read write example vi, i get no response from the valve. I have also tried to use the NI MAX program with no results. The serial port for the valve should be set up as follows:
Set the serial port at 9600 baud, no parity, 8 data
bits, 1 stop bit, no hardware or software
handshaking.
Im not sure why TeraTerm would work while labview does not when i am using the same exact settings.
Any help would be appreciated
Thank You
06-17-2014 03:14 PM
06-17-2014 03:34 PM
Thanks for the reply.
I have not set the termination characters for either teraterm or labview, i am just using the default settings for each program. Im not sure what termination the instrument requires it only states "no hardware or software handshaking" which i assumeed meant there should be no termination characters.
06-17-2014 03:56 PM
In the manual for the unit, you will most likely see something like <CR> or <LF> or both after each command.
This means that you need a Carrier Return or Line Feed after each commend.
This is what Teraterm most likely is sending for you automatic.
06-17-2014 05:13 PM
Or when you type in your string and hit the Enter Key. That is when TeraTerm sends the line feed.
06-17-2014 05:14 PM
Just to make a small point that is often overlooked.
Two applications cannot access the same COM port. So, did you close the teraterm connection before trying to use the COM port in LabVIEW?
06-19-2014 08:28 AM
In the manual i found the following: "Carriage Return (OD hex) and Line Feed (OA hex) characters parse the communications by defining the end of each
command"
So what would i enter for each command as part of the string in Labview?
06-19-2014 08:33 AM
Strings can show a display format. All of those constants are <CR LF>
06-19-2014 08:34 AM
06-19-2014 09:54 AM
Thank you guys for all the replies, i finally got everything to work 🙂