Controlling Timing in LabVIEW Applications (ETS, VxWorks, 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.
- While Loop
- Wait (ms) function
- Wait Until Next ms Multiple function
- Other loops and structures in LabVIEW
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:
| Executes code repeatedly until a stop condition is met. |
Timed Loop with Frames | Timed Loops with frames work well for:
| Executes code repeatedly, in sequence, until a stop condition is met. A Timed Loop with frames behaves like a Timed Loop that contains an embeddedSequence structure. |
Timed Sequence | Timed Sequence structures work well for:
| Executes code in sequence only once. Unlike Timed Loops, Timed Sequence structures do not repeat iterations. |
'via Blog this'
No comments:
Post a Comment