Skip to Main Content Skip to Search
Product Documentation

PinStatusFcn - Specify callback function to execute when CD, CTS, DSR, or RI pin changes state

Description

You configure PinStatusFcn to execute a callback function when a pin status event occurs. A pin status event occurs when the Carrier Detect (CD), Clear to Send (CTS), Data Set Ready (DSR) or Ring Indicator (RI) pin changes state. A serial port pin changes state when it is asserted or unasserted. Information about the state of these pins is recorded in the PinStatus property.

If the RecordStatus property value is on, and a pin status event occurs, the record file records this information:

To learn how to create a callback function, refer to Creating and Executing Callback Functions.

Characteristics

Usage

Serial port

Read only

Never

Data type

Callback function

Values

The default value is an empty string.

See Also

Functions

record

Properties

PinStatus, RecordStatus

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS