Specify callback function to execute when acquired data exceeds valid hardware range
Note: You cannot use the legacy interface on 64-bit MATLAB®. See Working with the Session-Based Interface to acquire and generate data on a 64-bit MATLAB.
An input overrange event is generated immediately after an overrange condition is detected for any channel group member. This event executes the callback function specified for InputOverRangeFcn.
An overrange condition occurs when an input signal exceeds the range specified by the SensorRange property. Overrange detection is enabled only if the analog input object is running and a callback function is specified for InputOverRangeFcn.
Input overrange event information is stored in the Type and Data fields of the EventLog property. The Type field value is OverRange. The Data field values are given below.
Note: The input overrange event is not generated if a signal begins outside the range and then goes into the range.
Data Field Value
The absolute time (as a clock vector) the event occurred.
The index of the channel that experienced an overrange signal.
The OverRange value, Off indicates that the channel went from overrange to in range, and On indicates that it went from in range to overrange.
The acquired sample immediately before the moment when the overrange transition occurs.
AI, common to all channels
Read-only when running