LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is it posible to get the iteration out of a subvi?

Solved!
Go to solution

Hello,

 

is it possible to get the actual iterationcycle of a forloop or whileloop out of a subvi into the vi?

how could i solve this problem?

 

Chris

 

 

 

0 Kudos
Message 1 of 4
(2,612 Views)

hi,

 

you have to take your whole loop out of the sub-vi and use only the code in your loop as a sub-vi, then you can access the iteration terminal. If your calling VI has a separate thread (i. e. execution doesn't wait for your sub-vi to finish), you can use a global variable to transport the information from your iteration terminal to your calling program.

 

hope this helps,

christian 


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 2 of 4
(2,600 Views)
Solution
Accepted by topic author OHC
This any good?
Download All
0 Kudos
Message 3 of 4
(2,589 Views)

Thanks to all

 

now it works!

 

 

its good to have the forum, someday i think i can give solutions also=)

 

Chris

0 Kudos
Message 4 of 4
(2,529 Views)