Controlling Timing in LabVIEW Applications (Real-Time, Windows)

Use timed structures to monitor and control the timing of your code. Timed structures work best with real-time applications and advanced Windows applications. For other applications, consider using the following objects instead of timed structures. These objects provide you with slightly less control over the timing of your code but require less configuration than timed structures.

Determining Which Timed Structure to Use

If you decide timed structures are appropriate for your application, the following information can help you decide which timed structure to use.

Timed Structure Purpose of the Structure Execution
Timed Loop Timed Loops work well for:
  • Code you want to repeat according to specific timing characteristics
  • Code that needs to iterate or that has stop conditions
Executes code repeatedly until a stop condition is met.
Timed Loop with Frames Timed Loops with frames work well for:
  • Code you want to run in sequence
  • Large applications�You can monitor the timing properties of complex code more easily because you receive timing information for each individual frame.
Executes code repeatedly, in sequence, until a stop condition is met. A Timed Loop with frames behaves like a Timed Loop that contains an embedded Sequence structure.
Timed Sequence Timed Sequence structures work well for:
  • Code you want to execute only once with precise timing, execution feedback, timing characteristics that change dynamically, or several levels of execution priority
Executes code in sequence only once. Unlike Timed Loops, Timed Sequence structures do not repeat iterations.