LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rs232 communications with usb rs232

This is my problem. I am trying to log communication over rs232.
I use an standalone laptop with runtime and a built application, installed on this is an usb to 4 rs232.
I use the serial port read.vi.
The only thing i get out is when i set the string indicator to /code. and then i get alot of number, letters and symbols.
its not hex becuse hex isnt using %+ and )
anyone got a solution to this or a even a guess.. i am running out of things to try.
/Mattias
0 Kudos
Message 1 of 4
(2,851 Views)
What are you trying to log from?   Is it possible that the device that you are listening to is speaking binary and you may need to convert the format?

Paul
0 Kudos
Message 2 of 4
(2,846 Views)
Are you sure you are using the correct baud rate, stop bits, and parity?  A mismatch on any of these would cause garabage characters to appear (like %#&*@).  You should not have to change the display to /codes or hex.  It should show up as normal characters unless you are receiving numerical values instead of regular text.  If you are receiving numerical values, you need to convert to text to see the actual number by using Type Cast.  In this case you would need to know if the number is 8 bits or 16 bits and so on.
- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 4
(2,830 Views)
i am trying to log a logosol ls-146.
i mannaged to get the symbols out by changing baudrate,  Now i get this format \00\02\18\ wich isn't a problem. What gets me confused is that every now and then these show up \036\02u\  and not always together. my first tought is that it misses characters.
0 Kudos
Message 4 of 4
(2,814 Views)