| Data Acquisition Toolbox | ![]() |
Example: Generating Timer Events
This example illustrates how to generate timer events for a DIO object. The callback function daqcallback displays the event type and device object name. Note that you must issue a stop command to stop the execution of the object.
You can run this example by typing daqdoc7_2 at the MATLAB command line.
dio for a National Instruments board. The installed adaptors and hardware IDs are found with daqhwinfo.
daqcallback every five seconds.
stop command when you no longer want to generate timer events.
The pause command ensures that two timer events are generated when you run daqdoc7_2 from the command line.
dio, you should remove it from memory and from the MATLAB workspace.
| Starting and Stopping a Digital I/O Object | Evaluating the Digital I/O Object Status | ![]() |