02-06-2015 12:04 PM
From documentation for the FOR loop:
The count terminal specifies the number of times to execute the code inside the For Loop. If you wire 0 or a negative number to the count terminal, the loop does not execute. |
02-06-2015 12:05 PM - edited 02-06-2015 12:06 PM
@bojinlund wrote:
1) I am trying to understand the difference in “my” and “the common” way to initialise a sub VI.
Your way works. I've just never seen it done that way before. Perhaps using constructs that people will immediately recognize is worth something to you?
@bojinlund wrote:
Hej GerdW!
Have you any reference to this in the documentation of LabVIEW?
/Bosse
Loops produce default data on the first iteration when the shift register is not initialized.
For Loops produce default data if you wire 0 or a negative number to the count terminal of the For Loop or if you wire an empty array to the For Loop as an input with auto-indexing enabled. The loop does not execute, and any output tunnel with auto-indexing disabled contains the default value for the tunnel data type. Use shift registers to transfer values through a loop regardless of whether the loop executes.
from - http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/for_loop_and_while_loop_structures/
02-06-2015 12:25 PM
@jcarmody wrote:
Queue the links to beginner tutorials... .
It is said, that once you call for hooovahh at the moon like a howling wolf three times he will appear...
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-06-2015 12:47 PM - edited 02-06-2015 12:48 PM
02-09-2015 09:02 AM
Hoovahgeuse
Hoovahgeuse
Hoovahgeuse
🙂