LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically creating parallel loops

Hi

 

I have a VI which i want to call a number of times defined by the user. so i can simply put the vi in a for loop and call it accordingly

 

now each time the vi is called, it executes data independently of the previous call. Hence i want to run them in parallel using reenterant property.

 

However the no of times a vi needs to be called can be determined only during run time..

 

How do i do this?.. hope i have made my question clear

 

thanks in advance

 

0 Kudos
Message 1 of 4
(3,325 Views)

Hi Ujjval Shah,

 

it seems to me that you should be able to determine the number of times the launching loop executes by using a for loop and wiring a numeric control to the Loop count terminal:

this way the loop executes the number of times the user has written in the control thus launching your subVI that exact number of times.

 

In any case, consider that this is the CVI-related board: you may find a more detailed help by reposting this question to the LabVIEW forum.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,309 Views)

hi roberto,

 

thanks for your reply. my apologies for posting at the wrong place.

 

see my problem is that i want to execute all the iterations of calling the vi in parallel and not sequentially. the no of iterations is known only at the time of execution. how do i do it?

 

ps: is it possible for you to shift this thread to the labview forum ?

 

thanks 

0 Kudos
Message 3 of 4
(3,305 Views)
Moved here.
0 Kudos
Message 4 of 4
(3,299 Views)