Jump to content

Tunnel Appearance: Difference between revisions

From LabVIEW Wiki
Dnatt (talk | contribs)
m minor wording edits
Zkarim (talk | contribs)
Changed the images to non-zoomed in versions. Changed the Shift Register image to have the wire coming out the side instead of the top.
 
Line 5: Line 5:
|-
|-
|'''Non-indexing''' (for array types, the entire array enters the loop)
|'''Non-indexing''' (for array types, the entire array enters the loop)
|[[File:Disabled indexing (normal).png|thumb]]
|[[File:Non-indexing.png|thumb]]
|-
|-
|'''Indexing''' (for 1D array types, the array enters the loop one element at a time)
|'''Indexing''' (for 1D array types, the array enters the loop one element at a time)
(for 2D array types, the array enters the loop one row at a time)
(for 2D array types, the array enters the loop one row at a time)
|[[File:Autoindexing Tunnel.png|thumb]]
|[[File:Indexing.png|thumb]]
|}
|}
{| class="wikitable"
{| class="wikitable"
Line 18: Line 18:
|'''Indexing''' (for scalar elements, a 1D array of the elements is built up on the loop border)
|'''Indexing''' (for scalar elements, a 1D array of the elements is built up on the loop border)
(for 1D arrays, a 2D array of the rows is built up on the loop border)
(for 1D arrays, a 2D array of the rows is built up on the loop border)
|[[File:Output Indexing Tunnel.png|thumb]]
|[[File:Indexing 1.png|thumb]]
|-
|-
|'''Last Value''' (the value generated by the last iteration of the loop is output by the tunnel)
|'''Last Value''' (the value generated by the last iteration of the loop is output by the tunnel)
|[[File:Last Value.png|thumb]]
|[[File:Last Value 1.png|thumb]]
|-
|-
|'''Concatenating''' (for 1D arrays, the value generated by each loop iteration is concatenated onto the end of the previous value, resulting in a tunnel output of all the individual 1D arrays concatenated as a single 1D array)
|'''Concatenating''' (for 1D arrays, the value generated by each loop iteration is concatenated onto the end of the previous value, resulting in a tunnel output of all the individual 1D arrays concatenated as a single 1D array)
|[[File:Concatenating.png|thumb]]
|[[File:Concatenating 1.png|thumb]]
|-
|-
|'''Conditional''' (for scalar elements and a ''Last Value'' tunnel, the tunnel will output the last value where a TRUE was wired to the conditional tunnel)
|'''Conditional''' (for scalar elements and a ''Last Value'' tunnel, the tunnel will output the last value where a TRUE was wired to the conditional tunnel)
(for scalar elements and an ''Indexing'' tunnel, the tunnel will output a 1D array containing all loop iteration values where a TRUE was wired to the conditional tunnel)
(for scalar elements and an ''Indexing'' tunnel, the tunnel will output a 1D array containing all loop iteration values where a TRUE was wired to the conditional tunnel)
|[[File:Conditional.png|thumb]]
|[[File:Conditional 1.png|thumb]]
|-
|-
|'''Shift Register'''
|'''Shift Register'''
|[[File:Shift Register.png|thumb]]
|[[File:Shift Register 1.png|thumb]]
|}
|}
{| class="wikitable"
{| class="wikitable"
Line 39: Line 39:
|-
|-
|'''Linked Tunnels''' (when new frames are created, wires are automatically created between linked tunnels)
|'''Linked Tunnels''' (when new frames are created, wires are automatically created between linked tunnels)
|[[File:Linked Input and Output.png|thumb]]
|[[File:Linked Tunnel.png|thumb]]
|-
|-
|'''Use Default if Unwired''' (for frames that do not have a wire sourcing this output tunnel, the default value for its datatype will be used if that frame executes)
|'''Use Default if Unwired''' (for frames that do not have a wire sourcing this output tunnel, the default value for its datatype will be used if that frame executes)
|[[File:Default if unwired.png|thumb]]
|[[File:Default if unwired 1.png|thumb]]
|}
|}

Latest revision as of 04:47, 11 November 2025

Loop Input Tunnels
Tunnel Type Appearance
Non-indexing (for array types, the entire array enters the loop)
Indexing (for 1D array types, the array enters the loop one element at a time)

(for 2D array types, the array enters the loop one row at a time)

Loop Output Tunnels
Tunnel Type Appearance
Indexing (for scalar elements, a 1D array of the elements is built up on the loop border)

(for 1D arrays, a 2D array of the rows is built up on the loop border)

Last Value (the value generated by the last iteration of the loop is output by the tunnel)
Concatenating (for 1D arrays, the value generated by each loop iteration is concatenated onto the end of the previous value, resulting in a tunnel output of all the individual 1D arrays concatenated as a single 1D array)
Conditional (for scalar elements and a Last Value tunnel, the tunnel will output the last value where a TRUE was wired to the conditional tunnel)

(for scalar elements and an Indexing tunnel, the tunnel will output a 1D array containing all loop iteration values where a TRUE was wired to the conditional tunnel)

Shift Register
Multi-frame Structure (Case, Event, Disable) Output Tunnels
Tunnel Type Appearance
Linked Tunnels (when new frames are created, wires are automatically created between linked tunnels)
Use Default if Unwired (for frames that do not have a wire sourcing this output tunnel, the default value for its datatype will be used if that frame executes)