LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication Error "-1073807253"

I am trying to acquire data of a Pirani Gauge of Model "VT-D3PP-01" now it has a serial port through Serial to USB cable is connected. I downloaded the drivers for the serial to USB communication. After that I made a small snippet in which I get garbage value in "read buffer" string variable and the error code "-1073807253" occurs after VISA Read vi. An image is provided for the same.

 

 

 

0 Kudos
Message 1 of 4
(809 Views)

Hi Mudit,

 

several problems with your code:

  • You receive a framing error. This usually happens when the sensor is sending data all the time (at sort intervals) and you "jump" into the middle of a message when starting the communication. (Or you use the wrong baud rate…)
  • Why do you want to read the same number of bytes as you send to the sensor? Does it always respond with exactly the same message length???
  • Does the sensor really support a TermChar? You enabled that with your serial communication…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(803 Views)

Most serial communication issues can be solved by watching this video: VIWeek 2020/Proper way to communicate over serial

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 4
(770 Views)

A framing error is an error at the UART level, meaning the byte frame was not as expected.  Almost always, this is due to a configuration issue with the major perpetrator being the baud rate.  As GerdW stated, it could potentially be due to starting your session right in the middle of a byte being sent to your port.  I have only had this issue with one particular device.

 

To give any better advice, could you give us more information on the device you are trying to talk with?  At least a model number would help.  A user manual would be even better.

 

EDIT:  Ok, you did supply a model number.  But a quick search is giving me nothing.  Do you have a link so we can do some digging?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(766 Views)