LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to do a for loop

Solved!
Go to solution

thanks...what is that structure u use in Memory Allocation example ? (the most inner one )

0 Kudos
Message 11 of 16
(1,041 Views)

Wayne.C wrote:

If one needs to demonstrate how to initialize an array of a given size with a predetermined constant and then demonstrate how to replace values of that array, I suppose my way works.  Assignment?


Good Call.  In case it is an assignment, let me show you one way to do this with a While Loop:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

While loops don't know how many times they will execute, so their first estimate is 16 iterations. If the loop goes for more than 16, then it doubles to 32, and then to 64. After that it adds 64 iterations whenever more are needed.

 

Message Edited by jmcbee on 04-17-2009 12:15 PM
0 Kudos
Message 12 of 16
(1,037 Views)

zmuccelmic wrote:

thanks...what is that structure u use in Memory Allocation example ? (the most inner one )


That is the in place element structure:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Message Edited by jmcbee on 04-17-2009 12:13 PM
0 Kudos
Message 13 of 16
(1,033 Views)

Thank you guys !

 

The problem i had was with the shift registers. Didn't knew how to use them.

 

 Thanks again

0 Kudos
Message 14 of 16
(1,023 Views)
jmcbee, how did you make the stripe pattern on your for loops?
0 Kudos
Message 15 of 16
(1,007 Views)
I have Constant Folding turned on.  The stripe pattern indicates that For Loop is constant folded.  Check this KB article for more info.
0 Kudos
Message 16 of 16
(997 Views)