Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

random character serial

Hello everybody,
 
I receive data from a RF receiver connected to the RS232. This receiver normally receive a precise message every 30sec. I carried out the same experiment using the hyperterminal application on windows and it worked fine.
 
However, when using a modified version of the basic serial write and read VI of labview (see attached), the readings on the read string box are corrupted by random characters I can't get rid of!
 
I'll be grateful for any help.
Thanks

Download All
0 Kudos
Message 1 of 14
(6,722 Views)
Hi
I did not have time to look at your diagram but saw that you use the continuous run button.
You probably open and close your serial port for every read/write.
do  not do this.

You should open the port before you enter a while loop in which you do the reading/writing and after stopping the loop also close the serial port.

You probably mix up the characters after/during the open.
greetings from the Netherlands
0 Kudos
Message 2 of 14
(6,711 Views)
Do what Albert say and instead of posting an image that nothing can be done with, do what I recomended here. Saving the front panel as a jpg and posting a second file was just a waste.
0 Kudos
Message 3 of 14
(6,705 Views)

Sorry about that.

There you go

0 Kudos
Message 4 of 14
(6,700 Views)
Now try running it with a loop around the read and not doing the VISA Configure Serial Port and VISA Close all of the time. You might also want to check on the format of the data being sent by the instrument. Some do not send ASCII characters as data.
0 Kudos
Message 5 of 14
(6,697 Views)
I tried with a loop around the read but i still receive unwanted characters. 
0 Kudos
Message 6 of 14
(6,682 Views)
Double check the com port settings (i.e. baud rate, parity, etc.) and make sure it matches exaclty what you have set in Hyperterminal. Also, do like I mentioned and check the manual for the instrument and verify the format that the data is sent as. Do you have Hyperterminal set for any type of terminal emulation? What is the make and model of instrument? Do you have a programming manual you can attach or provide a link to?
0 Kudos
Message 7 of 14
(6,662 Views)

baud rate (4800), parity (none), data bits (8), stop bits (1), flow control (none) are the same as in Hyperterminal.

 

The terminal emulation set on my Hyperterminal is VT100.

 

The instrument I use is a Bim2-433-160 Tx/Rx from Radiometrix (datasheet attached) and it is connected to a max232 to make the rs232 connection possible. The data is sent as ascii.

 

Thank you

0 Kudos
Message 8 of 14
(6,657 Views)
Well, I don't see anything in that data sheet that talks about serial communication at all so I'm not sure where the expected baud rate and protocol is gotten from. Set the terminal emulation in Hyperterminal to ANSI. See if you get same thing.
0 Kudos
Message 9 of 14
(6,648 Views)
And how can I do change to the hyperterminal to ANSI emulation ? 
0 Kudos
Message 10 of 14
(6,644 Views)