Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

convert hyperterminal program to labview

I have a Vaisala transmitter which I can talk to using the serial port on my PC with the proper settings (baud rate, parity, data bits, etc.).
When I try to program a simple Labview program to config the serial port along with trying to query a simple "send" command, it echos back the word "send" and not the data values I would expect.
What am I doing wrong?
Thanks in advance.
Frank
0 Kudos
Message 1 of 5
(5,708 Views)
Frank,

have you send the propper termination character?
according to your instrument you need CR or CR,LF for example.
hyperterm append CR (and LF?) when hitting Return
In Labview you need to append this explicit
(Change your send control or constant to '\'-code display and enter "send\r\n" and try again)
You can configure the VISA serial properties to append termination characters by default, however I never used this option.

Henrik
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 5
(5,708 Views)

Hi,

 

I am pretty new to Labview. I would like to know how do go about executing some of the commands that I used in  Hyperterminal in Labview. For example I used "?" to get setting from the instrument and "r" to get the readings. I am trying to communicate with Vaisala transmitter HMT330.

 

Thanks

0 Kudos
Message 3 of 5
(5,275 Views)
Start with one of the shipping examples for serial communication. There is Basic Serial Write and Read and Advanced Serial Write and Read. If you use the basic example, be sure to leave the \r\n in the string that you send. Those are the CR\LF characters.
0 Kudos
Message 4 of 5
(5,270 Views)

Hi,

 

Thank you for your help. I was able to sucessfully communicate with the unit using the serial sample program. Now I have another problem communicate with another system, Thunder 3900 by Thunder Scientific. I was able to communicate with this system, but the problem was that I have to send several command before it to respond. When I used HyperYTerminal I only need to send a command once for it to respond. I have attached file that contains port setting, command and pin out for the system. Any suggestion is highly appreciated.

 

Thanks

0 Kudos
Message 5 of 5
(4,708 Views)