06-08-2012 11:12 AM
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.
06-08-2012 11:27 AM
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.
06-08-2012 11:30 AM
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
06-08-2012 12:19 PM - edited 06-08-2012 12:19 PM
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.

06-08-2012 01:28 PM
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.
06-11-2012 05:26 AM
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