LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication, unreadable output

Solved!
Go to solution

Hi,

 

I'm trying to read the data through serial port from a microcontroller based device. I'm using basic_serial_write_and_read.vi from the example section. the output I'm getting is unreadable (see pic).

 

Any ideas on what might be wrong?

 

 

 

0 Kudos
Message 1 of 14
(7,505 Views)

Most likely the baud rate is incorrect.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 2 of 14
(7,503 Views)
Switch to hex display. Do you know for a fact that you are supposed to be reading ASCII?
0 Kudos
Message 3 of 14
(7,497 Views)

I'm using usb to serial adaptor and my baud rate comes right from the device manager settings.... 

0 Kudos
Message 4 of 14
(7,496 Views)

How do I switch to HEX display?

I know for a fact that its ASCII, this is how I programmed the microcontroller and I double checked it already

 

0 Kudos
Message 5 of 14
(7,495 Views)
Its a right click option.
0 Kudos
Message 6 of 14
(7,485 Views)

ok, I did it and that's what showed up (see att)

 

 

0 Kudos
Message 7 of 14
(7,482 Views)
So, compare to what you read with a terminal emulator program. If its the same, you have a problem with the sender.
0 Kudos
Message 8 of 14
(7,467 Views)
You also said something very strange about matching the settings in device manager. Those settings are totally irrelevant.
0 Kudos
Message 9 of 14
(7,462 Views)

I'm using USB to serial adaptor, so when I right click on it and open properties it shows the port settings... aren't those settings supposed to match labview settings? or I'm missing something?

 

 

0 Kudos
Message 10 of 14
(7,454 Views)