Application Case 5—Software-Timed I/O

Requirement

"My I/O tasks are of types that do not support hardware-timed operations."

Solution

Apply software timing to your time-critical loop by using the Timed Loop. Configure your NI-DAQmx tasks to use on demand timing.

Advantages

Restrictions

I/O samples suffer from software jitter.

Sample Application

An example of this kind of application is a digital I/O control loop. The application monitors the state of several discrete inputs and toggles the corresponding output based on the control algorithm. Hardware timing is not available for single-point digital I/O tasks in NI-DAQmx.

Sample Timing Diagram

Sample Implementation

Sample Block Diagram

Notes