Specify callback function to execute before device object runs
Note: You cannot use the legacy interface on 64–bit MATLAB®. See Session-Based Interface to acquire and generate data.
A start event is generated immediately after the start function is issued. This event executes the callback function specified for StartFcn. When the callback function has finished executing, Running is automatically set to On and the device object and hardware device begin executing. Note that the device object is not started if an error occurs while executing the callback function.
Start event information is stored in the Type and Data fields of the EventLog property. The Type field value is Start. The Data field values are given below.
Data Field Value
The absolute time (as a clock vector) the event occurred.
The acquired (AI) or output (AO) sample number when the event occurred.
AI, AO, common to all channels
Read-only when running