Data Acquisition Toolbox | ![]() ![]() |
Generating Timer Events
The fact that analog input and analog output objects make use of data stored in the engine and clocked I/O leads to the concept of a "running" device object and the generation of events.
However, because the Data Acquisition Toolbox does not support buffered digital I/O (DIO) operations, DIO objects do not store data in the engine. Additionally, reading and writing line values are not clocked at a specific rate in the way that data is sampled by an analog input or analog output subsystem. Instead, values are either written directly to digital lines with putvalue
, or read directly from digital lines with getvalue
.
Therefore, the concept of a running DIO object does not make sense in the same way that it does for analog I/O. However, you can "run" a DIO object to perform one task: generate timer events. You can use timer events to update and display the state of the DIO object. Refer to the diopanel
demo for an example.
![]() | Example: Writing and Reading Digital Values | Timer Events | ![]() |