Specify size of output buffer in bytes
OutputBufferSize as the total
number of bytes that can be stored in the software output buffer during
a write operation.
You can configure
when the instrument object is disconnected from the instrument. You
disconnect an object with the
A disconnected object has a
Status property value
Any instrument object
The default value is
This example shows how to set the output buffer size for a serial
port object. The
OutputBufferSize property specifies
the maximum number of bytes that can be written to the instrument
at once. By default,
There could be a case when you would want to limit it to less than
the default size.
Create a serial port object associated with the COM1 port. Set the output buffer size to 256 bytes.
s = serial('COM1'); s.OutputBufferSize = 256;