Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Nodes of the Timed Loop

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

The Timed Loop includes the nodes shown in the following illustration. By default, nodes of the Timed Loop do not display all of the available input and output terminals. You can resize nodes or right-click a node and use the shortcut menu to display node terminals.

(1) Input Node|(2) Left Data Node|(3) Right Data Node|(4) Output Node

Input Node

DeadlineSpecifies the time when the Timed Loop must complete the iteration. Deadline equals Period if you do not specify a value. The deadline value is relative to the start of the Timed Loop and is specified in units of the timing source.
ErrorPropagates errors through the structure. The Timed Loop does not execute if Error receives an error condition.
ModeSpecifies how the Timed Loop handles late executions. There are five available modes—No change, Process missed periods maintaining original phase, Process missed periods ignoring original phase, Discard missed periods maintaining original phase, and Discard missed periods ignoring original phase.
NameSpecifies a name for the Timed Loop.
OffsetSpecifies the length of time a Timed Loop waits to begin execution. The offset value is relative to the start of the Timed Loop and is specified in absolute units of the timing source.
PeriodSpecifies a period for the Timed Loop in the relative units of the timing source.
PrioritySpecifies the priority for the execution of the Timed Loop. The priority of a timed structure specifies when the structure executes on the block diagram relative to other objects on the block diagram. The value for the Priority input must be a positive integer between 1 and 65,535.
ProcessorSpecifies the processor you want to handle execution. The default is -2, which means LabVIEW automatically assigns a processor. To manually assign a processor, enter a number between 0 and 255, where 0 represents the first available processor. If you enter a number that exceeds the number of available processors, you generate a run-time error and the timed structure does not execute.
Source NameSpecifies the name of the timing source to use for controlling the structure. The timing source must be created on the block diagram using the Create Timing Source VI or selected from the Configure Timed Loop dialog box.
TimeoutSpecifies the maximum amount of time a Timed Loop can wait to begin execution. The timeout value is relative to the start of the Timed Loop or the end of the previous iteration and is specified in units of the frame timing source.

Left Data Node

Actual End [i-1]Returns the actual end time for the previous iteration (i-1). The actual end value is relative to the start time of the Timed Loop and is specified in units of the timing source.
Actual Start [i]Returns the actual start time of the current iteration (i). The actual start value is relative to the start time of the Timed Loop and is specified in units of the timing source.
DeadlineReturns the deadline value for the current iteration.
ErrorPropagates errors through the structure.
Expected End [i-1]Returns the expected end time for the previous iteration (i-1). The expected end value is relative to the start time of the Timed Loop and is specified in units of the timing source.
Expected Start [i]Returns the expected start time of the current iteration (i). The expected start value is relative to the start time of the Timed Loop and is specified in units of the timing source.
Finished Late? [i-1]Returns TRUE if the Timed Loop does not complete the previous iteration before the specified deadline.
Global End TimeReturns a time stamp for the end of the previous iteration in nanoseconds.
Global Start TimeReturns a time stamp for the start of the current frame in nanoseconds.
Iteration DurationReturns a time stamp of the duration of the previous iteration. The iteration duration is relative to the start of the iteration and is specified in units of the timing source.
ModeReturns the mode value for the current iteration.
OffsetReturns the offset value for the start of the current iteration.
PeriodReturns the period value for the current iteration.
PriorityReturns the priority value for the current iteration.
TimeoutReturns the timeout value for the current iteration.
Wakeup ReasonReturns an enumerated type with the reason for the execution start of the current iteration. The possible values are 0 for Normal, 1 for Sequence Aborted, 3 for a timing source error, 4 for a structure error, and 5 for timeout.

Right Data Node

DeadlineSpecifies the time when the Timed Loop must complete the next iteration. The deadline value is relative to the start of the next iteration and is specified in units of the timing source. The default is -1, which means unchanged.
ErrorPropagates errors from the subdiagram out of the Timed Loop. If Error receives an error condition, the Timed Loop finishes executing the current iteration untimed, exits the loop, and returns the error condition on the Output node.
ModeSpecifies the Mode for the next iteration of the Timed Loop. There are five available modes—No change, Process missed periods maintaining original phase, Process missed periods ignoring original phase, Discard missed periods maintaining original phase, and Discard missed periods ignoring original phase.
OffsetSpecifies the length of time the next iteration waits to begin execution. The offset value is relative to the start of the next iteration and in units of the timing source. The default is -1, which means unchanged. If you set an offset for the next iteration, you must set a new Mode value.
PeriodSpecifies a period for the next iteration of a Timed Loop in units as the timing source. The default is -1, which means unchanged.
PrioritySpecifies the priority for the execution of the next iteration. The priority specifies when the next iteration executes on the block diagram relative to other objects on the block diagram. The value for the Priority input must be a positive integer between 1 and 65,535.
ProcessorSpecifies the processor you want to handle execution. The default is -2, which means LabVIEW automatically assigns a processor. To manually assign a processor, enter a number between 0 and 255, where 0 represents the first available processor. If you enter a number that exceeds the number of available processors, you generate a run-time error and the timed structure does not execute.
TimeoutSpecifies the maximum amount of time the next iteration can wait to begin execution. The timeout value is relative to the end of the previous iteration and is specified in units of the frame timing source.

Output Node

Actual End [i-1]Returns the actual end time for the previous iteration (i-1). The actual end value is relative to the start time of the Timed Loop and is specified in units of the timing source.
ErrorPropagates errors received by the Timed Loop and returns errors from the subdiagram.
Expected End [i-1]Returns the expected end time for the previous iteration (i-1). The expected end value is relative to the start time of the Timed Loop and is specified in units of the timing source.
Finished Late? [i-1]Returns TRUE if the Timed Loop does not complete the previous iteration before the specified deadline.
Global End TimeReturns a time stamp for the end of the previous iteration in nanoseconds.
Iteration DurationReturns a time stamp of the execution length of the previous iteration. The iteration duration is relative to the start of the iteration and is specified in units of the timing source.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit