
You can create such an application with the Control Loop From Task timing source. Requires additional code to handle warm-up iterationsĪn example of this kind of application is an analog control loop that reads samples from a specific number of analog input channels, processes the data using a control algorithm (such as PID), and writes the new control values to the analog output channels.Minor increase in overhead when compared to a regular LabVIEW While Loop.Multi-rate applications, using distinct I/O hardware subsystems, are possible by extending this approach to multiple Timed Loops.The Timed Loop provides feedback as to whether the iterations complete in time.Timing sources such as the Control Loop From Task provide strict lateness checking and allow other threads to execute while several analog channels are being multiplexed and sampled.Using a timing source allows you to specify an I/O signal (for example, the sample clock signal) to trigger the execution of Timed Loop iterations.Use the DAQmx Create Timing Source VI to create a timing source that drives a Timed Loop that contains the I/O operations and the control algorithm. However, I would also like to use the Timed Loop in my application." Solution All output values need to simultaneously update at the arrival of the sample clock edge. Application Case 6 Hardware-Timed Simultaneously Updated I/O Using the Timed Loop Application Case 6-Hardware-Timed Simultaneously Updated I/O Using the Timed Loop Requirement
