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, since the Data Acquisition Toolbox does not support buffered digital I/O operations, digital I/O 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 digital I/O object does not make sense in the same way that it does for analog input and analog output objects. However, you can "run" a digital I/O object to perform one task: generate timer events. You can use timer events to update and display the state of the digital I/O object. For an example of this, refer to the diopanel demo.


 Example: Writing and Reading Digital Values Timer Events