12-28-2021 06:52 PM
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.
12-28-2021 07:21 PM
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.