Main Content

BreakInterruptFcn

Specify callback function to execute when break-interrupt event occurs

Description

You configureBreakInterruptFcnto execute a callback function when a break-interrupt event occurs. A break-interrupt event is generated by the serial port when the received data is in an off (space) state longer than the transmission time for one byte.

Note

A break-interrupt event can be generated at any time during the instrument control session.

If theRecordStatusproperty value ison, and a break-interrupt event occurs, the record file records this information:

  • The event type asBreakInterrupt

  • The time the event occurred using the format day-month-year hour:minute:second:millisecond

Characteristics

Usage

Serial port

Read only

Never

Data type

Callback function

The default value is an empty character vector.

See Also

Functions

record

Properties

RecordStatus