Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a limit to write buffer size using Serial Write?

Hi,

 

I'm currently trying to run a simple serial vi to communicate with an external hardware. I know the VI works with a small code wired to the write buffer (an approximately 400 bytes ascii character string) but a bigger command (approximately 1500 bytes ascii character string) gets cut off causing an error. The hardware can use the Arduino ide serial monitor so I know there is no issue running both strings. I was curious then if there is some kind of limit for the write buffer and if there is any way to fix the issue. Thanks in advance.

0 Kudos
Message 1 of 2
(2,108 Views)

There is a limit to the write buffer.  I am having trouble finding the default buffer size.  But you can use VISA Set I/O Buffer Size to increase the buffer size to something more like 4096.  You may also need to increase your timeout, depending on your baud rate.



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 2 of 2
(2,098 Views)