Why Do I Receive Error Code - 1073807253 When Performing A VISA Serial Read
Why Do I Receive Error Code - 1073807253 When Performing A VISA Serial Read
Primary Software:
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
Problem:
I am outputting a sequence of characters from a third party device every 160 ms and reading it using a VISA
read. The device will continuously output the data whether the program is on or off. However, I get a framing
Error -1073807253 when reading. Why does this happen?
Solution:
This error is a framing error. Serial data is transferred one byte at a time. Each byte has a specific format with
a start bit, data bits, parity, and stop bits. A framing error occurs when a byte of data is received, but it is not in
the format expected. This kind of error may occur for several reasons.
1. The port may not have completely finished its configuration by the time the first character is received off of
that port. By putting a delay (approximately 10-100 ms) after the VISA Configure Serial Port you allow the
serial port enough time to configure itself. Then, by using a VISA Flush I/O Buffer VI, you can clear any invalid
data in the buffer. Reading after this sequence should work correctly. Your block diagram should appear as
shown below:
1/3
2. Your serial port and device may be configured to use different settings. To solve this issue, open
Measurement & Automation Explorer (MAX) and select your serial port under Devices and Interfaces. Verify
that the VISA Resource Name, Baud rate, Data bits, Parity, and Stop bits all match the settings of your device
under the port settings tab. You can change these settings programmatically during run-time as seen in the
example above, or in NI-MAX.
3. Your cabling may be loose. Check to make sure your cables are securely plugged in.
5. You may be experiencing noise on your serial line. Move the serial cable way from power cables, monitors,
or other potential noise sources.
6. You may not have the proper driver software installed. Make sure you have LabVIEW, NI Serial, and NI
VISA on your computer. You may need to repair these installations if the error continues.
Related Links:
KnowledgeBase 0Q0H595Q: Can VISA Communicate with Parallel Ports?
KnowledgeBase 18QGBH0O: Setting Individual Bits for the Parallel Data Port Using LabVIEW
KnowledgeBase 3B8H2CL6: How Can I Verify That My Parallel Port is Working?
Attachments:
2/3
Report Date: 2005-01-27
Last Updated: 2015-01-22
Document ID: 3HQH5B40
1 2 3 4 5
3/3