이 페이지의 최신 내용은 아직 번역되지 않았습니다. 최신 내용은 영문으로 볼 수 있습니다.
Total number of values written to the device
ValuesSent indicates the total number of values written to the device. The
value is updated after each successful write operation, and is set to
0 after the
fopen function is issued. If you
are writing the terminator,
ValuesSent reflects this value.
If you are writing data asynchronously, use the
BytesToOutput property 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. For more information about bytes and values, see 바이트와 값.
The default value is
Suppose you create a serial port object associated with the serial port COM1.
s = serial('COM1'); fopen(s)
If you write the
*IDN? command using the
because the default data format is
%s\n, and the terminator was
fprintf(s,'*IDN?') s.ValuesSent ans = 6