Total number of values written to instrument
ValuesSent indicates the total number of
values written to the instrument. The value is updated after each
successful write operation, and is set to
fopen function is issued.
If you are writing the terminator, then
If you are writing data asynchronously, use the
to return the number of bytes currently in the output buffer.
When performing a write operation, the transmitted data is represented
by values rather than bytes. A value consists of one or more bytes.
For example, one
uint32 value consists of four
bytes. Refer to Output Buffer and Data Flow for more information about
bytes and values.
Any instrument object
The default value is
Create a serial port object on a Windows® machine associated with the serial port COM1.
s = serial('COM1'); fopen(s)
If you write the
*IDN? command using the
fprintf function, then
6 because the default data
%s\n, and the terminator was written.
fprintf(s,'*IDN?') s.ValuesSent ans = 6