LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in serial port code

Solved!
Go to solution

1. I have made a serial port Vi which I have attached.

2. MCU on other side is sending data on USB at speed of  921600 bps.

3. VI sends "S" byte to mark the send & then MCU send 43202 bytes to the system.

4. Problem is after 3 or 4 iterations, there is some error. Sometime like less bytes received, some times error code returned is zero. For zero code what is error?

Soimetime error is overrun error?

5. However if I send data n hyperterminal or realterm I receive corect data.,

0 Kudos
Message 1 of 3
(2,945 Views)
Solution
Accepted by Vindhyachal.Takniki

Disable TermChar for messages of defined byte count…

(It's an input of VISAConfigureSerialPort!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,942 Views)

Thanks @GerdW solved the problem.

0 Kudos
Message 3 of 3
(2,887 Views)