External Interfaces/API    
BytesAvailableActionMode

Specify if the bytes-available event is generated after a specified number of bytes are available in the input buffer, or after a terminator is read

Description

You can configure BytesAvailableActionMode to be terminator or byte. If BytesAvailableActionMode is terminator, a bytes-available event occurs when the terminator specified by the Terminator property is reached. If BytesAvailableActionMode is byte, a bytes-available event occurs when the number of bytes specified by the BytesAvailableActionCount property is available.

The bytes-available event executes the M-file action function specified for the BytesAvailableAction property.

You can configure BytesAvailableActionMode only when the object is disconnected from the device. You disconnect an object with the fclose function. A disconnected object has a Status property value of closed.

Characteristics

Read only
While open
Data type
String

Values

{terminator}
A bytes-available event is generated when the terminator is read.
byte
A bytes-available event is generated when the specified number of bytes are available.

See Also

Functions

fclose

Properties

BytesAvailableAction, BytesAvailableActionCount, Status, Terminator


 BytesAvailableActionCount BytesToOutput