0% found this document useful (0 votes)
234 views3 pages

Why Do I Receive Error Code - 1073807253 When Performing A VISA Serial Read

This error occurs when serial data is received in an unexpected format due to mismatched port settings between the device and software, a loose or bad cable, or noise interfering with the serial line. To resolve it, ensure the port is fully configured before reading, match the device and port settings, check the cable, and move the cable away from potential noise sources.

Uploaded by

Lee Kyle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
234 views3 pages

Why Do I Receive Error Code - 1073807253 When Performing A VISA Serial Read

This error occurs when serial data is received in an unexpected format due to mismatched port settings between the device and software, a loose or bad cable, or noise interfering with the serial line. To resolve it, ensure the port is fully configured before reading, match the device and port settings, check the cable, and move the cable away from potential noise sources.

Uploaded by

Lee Kyle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Why Do I Receive Error Code -1073807253 When Performing a

VISA Serial Read?


digital.ni.com/public.nsf/allkb/F3E0621CB71AA16786256F970000FC57

NI Home > Support > KnowledgeBase

85 ratings: 3.02 out of 5

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.

4. You may have a bad serial cable.Try another serial cable.

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

Your Feedback! Poor | Excellent Yes No

Document Quality? Answered Your Question?

1 2 3 4 5

Please Contact NI for all product and support inquiries.

3/3

You might also like