LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recieving RS232 Broadcast

Hi

 

i;ve had a look through some older posts but can't seem to find the answer. I have a RS232 torque sensor that I've set to broadcast it's position, the information shows up ok when viewing the broadcast in Putty, but can't seem to get Labview to receive the messages. I get various parity & frame VISA errors and strange strings with random characters being displayed.

 

The torque sensor should send a CR after each message and I've set up VISA to look for this, is there something else I need to do to sync the two?

 

Thanks for any help.

0 Kudos
Message 1 of 6
(3,481 Views)

Make sure all of your settings are correct. This means that your BAUD rate, stop bits, parity and flow control must match what th edevice is set to.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 6
(3,469 Views)

If you are trying LV and puty on the same machine wiht the same cable then Mark's reply should hold the answer.

 

if not, framing and parity errors speak of transmision issues... length of wire, ground etc.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 6
(3,467 Views)

Move the close/error outside of the loop.

Put the string indicator from the read into a shift register in the ... here, try this... command is optional, if you need to send something to the meter first.

 

 

Download All
Message 4 of 6
(3,460 Views)

Using Bytes at Port with a terminated message is not at all necessary. Just set some large random number for the bytes to read and synch will be automatic though your first message recieved might be short.

Message 5 of 6
(3,445 Views)

Hi

 

Thanks for the help, I sorted out the loop and removed the bytes at port, now got it working and populating the string with the data as expected. Thanks very much

 

Rich

0 Kudos
Message 6 of 6
(3,413 Views)