LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detailed thoery about FOR and WHILE LOOP!!!!!

hello folks,

 

i am new to LABVIEW and am tring to learn it using the book LABVIEW FOR EVERYONE by Jeffrey Travis and Jim Kring.

 

 

i am stuck in chapetr 6 of the book containing the FOR and WHILE LOOPS.

 

i am unable to understand the effect of putting the VI inside/outside of the STRUCTURE.

 

 

please advice where shall i find  theory about the above stated topics that  is easy to understand and practice.

 

thanking you in anticipation of swift responses. 

0 Kudos
Message 1 of 3
(2,356 Views)

What's inside the structure happens every loop iteration until the stop condition is met; either every element in an array has been used in the case of a for-loop, or a boolean output changes for the do-while loop.

 

Outside the structure, the VI will only execute once (generally). 

Message 2 of 3
(2,354 Views)

There are about 60 pages in chapter 6. Would you like to narrow it down a bit?

 

If you are stuck with figure 6.4, I suggest you duplicat the code they show, put you VI in Execution Hightlighting mode (turn on the light bulb) and watch what heppens when.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,349 Views)