LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems reading the serial port with labview 5.1.

I open the example serial.vi , I select write to serial port, run the programm, I don`t have any problem. But when I select read serial port, I get the error code 16392and hex code error x4008. I need to know what can I do? Thanks a lot
0 Kudos
Message 1 of 3
(2,659 Views)
Did you query how many bytes are available to be read at the serial port? Then feed this value to the READ Serial port?
Message 2 of 3
(2,659 Views)
Any time you get an error in LV you can right click on the error cluster indicator and do a "Explain Error".

If you do this for the error code you reported, the explanation says that it was a framing error.

In serial communications, a framing error indicates that the hardware was not able to detect a start bit, data then the stop bits that comprise a frame.

This prompts me to suggest that you check you port setting on the serial port. You want to make sure you are setting the port for the correct;
Number of start/stop bits,
Baud rate
data bits
parity (just for good measure)
and hardware handshaking.

I hope this helps,

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 3
(2,659 Views)