API description

Main palette

Wovalab Utilities icon
Wovalab Utilities

Helper Loop Periodic Timing

Helper Loop Periodic Timing icon
Helper Loop Periodic Timing

Init Helper Loop Info

Wovalab lib Utilities.lvlib Helper Loop Periodic Timing.lvclass Init Helper Loop Info v2.vi

Get an object instance containing the Helper Loop Timing info.

The object is set to not execute the Timeout case (i. e Timeout = -1).

You can define how the late execution is handled by choosing one of the three following method:

Process missed periods ignoring original phase

This is the default behavior. This mode will not try to recover from a late execution. The drift will increase each time a late execution occurs.

No change

This mode will try to make sure that the drift will remain equal to 0 even if some late execution occurs.

Process missed periods maintaining original phase

This mode behaves like the metronome function. The drift will always be a multiple of the execution period.

Get Timeout

Wovalab lib Utilities.lvlib Helper Loop Periodic Timing.lvclass Get Timeout.vi

Get the value of the timeout.

Use this function to connect the event structure Timeout input.

If the Late? output is TRUE, this indicates that the Timeout case is not executed at the desired period.

Set Helper Loop Period

Wovalab lib Utilities.lvlib Helper Loop Periodic Timing.lvclass Set Helper Loop Period.vi

Set the desired period of the Timeout case execution.

Stop Helper Loop

Wovalab lib Utilities.lvlib Helper Loop Periodic Timing.lvclass Stop Helper Loop.vi

Set the timeout to -1 and stop the Timeout case execution.

Update Last Execution Time

Wovalab lib Utilities.lvlib Helper Loop Periodic Timing.lvclass Update Last Execution Time v2.vi

Set the last time the Timeout case event was executed.

This function must be wired to the Time event data node of the Timeout case

Current Number Of Execution—​property-node

Wovalab lib Utilities.lvlib Helper Loop Periodic Timing.lvclass Current Number Of Execution  property node.vi

Number of Timeout case execution since last use of the Set Helper Loop Period function.

This counter si reset when period is modified and when the helper loop is stopped.

Helper Loop Period—​property-node

Wovalab lib Utilities.lvlib Helper Loop Periodic Timing.lvclass Helper Loop Period  property node.vi

Number of Timeout case execution since last use of the Set Helper Loop Period function.

This counter si reset when period is modified and when the helper loop is stopped.

Basic Helper Loop With Periodic Timing

Basic Helper Loop With Periodic Timing.vi

Drag this function in your diagram to place a ready-to-use Helper Loop With Periodic Timing.

create helper loop

Steady Periodic Execution—​example

Steady Periodic Execution  example.vi

This VI demonstrates how to use the Helper Loop Periodic Timing API to get a steady execution of Helper Loop.

Late Execution Modes—​example

Late Execution Modes  example.vi

This VI demonstrates how the different "Late Execution Mode" behave.

Execution Behavior—​example

Execution Behavior  example.vi

This VI demonstrates the behavior of the periodic execution when the Helper Loop Period is modified depending of the context and the different possible configurations.

Custom errors

This section lists all the custom errors the toolkit can generate.

No custom error generated