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

Nodes of the Timed Loop with Frames

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

The Timed Loop includes the (1) Input and (4) Output nodes, and (2) Left and (3) Right Data nodes for each frame, as 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 amount of time available for the Timed Loop to finish an 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 units of the timing source.
PeriodSpecifies a period for the Timed Loop in the same units as the timing source specified by Source Name.
PrioritySpecifies the priority of 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 source to use for timing 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 [f-1]Returns the actual end time for the previous frame (f-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 End [i-1] (First frame only)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] (First frame only)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 frame.
ErrorPropagates errors through the structure.
Expected End [f-1]Returns the expected end time for the previous frame (f-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 End [i-1] (First frame only)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] (First frame only)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? [f-1]Returns TRUE if the Timed Loop does not complete the previous frame before the specified deadline.
Global End TimeReturns a time stamp for the end of the previous iteration in nanoseconds.
Finished Late? [i-1] (First frame only)Returns TRUE if the Timed Loop does not complete the previous iteration before the specified deadline.
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 value is relative to the start of the iteration and is specified in units of the timing source.
Mode (First frame only)Returns the mode value for the current iteration.
Offset (First frame only)Returns the offset value for the start of the current iteration.
PeriodReturns the period value for the current frame.
PriorityReturns the priority value for the current frame.
Start (Unavailable in first frame)Returns the start value for the current frame.
TimeoutReturns the timeout value for the current frame.
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 frame. The deadline value is relative to the start of the next frame and is specified in units of the timing source. The default is -1, which means unchanged.
ErrorPropagates errors or warnings out of the Timed Loop subdiagram. If Error receives an error condition, the Timed Loop executes the next frame untimed. If Error receives an error condition in the last frame, the structure does not execute additional iterations.
Mode (last frame only)Specifies 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.
Offset (last frame only)Specifies the length of time the next iteration waits to start execution. The offset 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. If you set an offset for the next iteration, you must set a new Mode value.
Period (last frame only)Specifies 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 next iteration of the Timed Loop.
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.
Start (Unavailable in last frame)Specifies the length of time the next frame waits to start execution. The start value is relative to the end of the current frame and is specified in units of the timing source.
TimeoutSpecifies the Timeout for the next iteration of the Timed Loop.

Output Node

Actual End [f-1]Returns the actual end time for the previous frame (f-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 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 [f-1]Returns the expected end time for the previous frame (f-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 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? [f-1]Returns TRUE if the Timed Loop does not complete the previous frame before the specified deadline.
Finished Late? [i-1]Returns TRUE if the Timed Loop does not complete the previous iteration before the specified deadline.
Frame DurationReturns the duration time of the previous frame. The frame duration is relative to the start of the frame and is specified in units of the frame timing source.
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