From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

framing error when trying to read large amount of data. (between 2-pc)

i've got  framing error when trying to read large amount of data. And setting the buffer size didn't help me. any suggestions ?

0 Kudos
Message 1 of 7
(3,903 Views)
A framing error usually means a mismatch in com settings.

What do you mean by large amount of data?
0 Kudos
Message 2 of 7
(3,900 Views)

Am sure that the com settings are matched, I mean data larger than 4096 byte (the default value of FIFO buffer). 

0 Kudos
Message 3 of 7
(3,895 Views)
At what baud rate? Can you break it into smaller packets? Are you doing any handshaking? Over what distance? Are you using USB converters?

Why are you even doing this over RS232? Using ethermet is so much faster and more robust.
0 Kudos
Message 4 of 7
(3,883 Views)

At 115200. no i can't , no handshaking, over 1 m, yes .
it's my 2'nd step to use ethermet. but, now i want to do it using RS232 . thanks 4 ur reply

0 Kudos
Message 5 of 7
(3,830 Views)

Slow it down, use handshaking, and make sure you have a very good, shielded cable.

0 Kudos
Message 6 of 7
(3,825 Views)

I rarely trust USB to Serial adapters.  Just haven't had any luck with them.  If you plan to go to ethernet anyways, just do it now.  TCP/IP is faster, can travel farther, and is a lot more expandable.


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 7 of 7
(3,817 Views)