Main Content

弗吉尼亚州luesSent

Total number of values written to instrument

Description

弗吉尼亚州luesSentindicates the total number of values written to the instrument. The value is updated after each successful write operation, and is set to0after thefopenfunction is issued. If you are writing the terminator, then弗吉尼亚州luesSentreflects this value.

如果你是异步写入数据,使用BytesToOutputproperty 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, oneuint32value consists of four bytes.

Characteristics

Usage

Any instrument object

Read only

Always

Data type

Double

弗吉尼亚州lues

The default value is0.

Examples

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 thefprintffunction, then弗吉尼亚州luesSentis6because the default data format is%s\n, and the terminator was written.

fprintf(s,'*IDN?') s.ValuesSent ans = 6

See Also

Functions

fopen

Properties

BytesToOutput