LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi and array of clusters

I want to make multiple sub-vi’s clones and each one gets its own cluster from an array of clusters. My problem is that I want to have the subvi’s do this during runtime and, so far I have not found a reliable method to this approach.  Is there a to tell within subvi clones which copy it is? 

I'm using 8.6

Any help would be very much appreciated.

Mike 

0 Kudos
Message 1 of 5
(3,208 Views)
Are you using VI templates, or are you using re-entrancy? In what way does the "copy number" relate to which element of the array of clusters that the VI should use?
0 Kudos
Message 2 of 5
(3,206 Views)

I'm using reentrant for the subvi's so each one has its own memory and would like each cloned subvi to have a seperate cluster in the array. It really doesnt matter the order just that each one has it own cluster.

 

Thanks

0 Kudos
Message 3 of 5
(3,191 Views)
I would just put an input terminal on the subVI called "index".  In your main VI, wire up a different constant to each instance of the subVI.  First instance, wire up a zero.  Second instance, a one.  And so on.
0 Kudos
Message 4 of 5
(3,187 Views)

I discided to the parse the subvi clone name, and that lets me know which subvi I'm in .

 

Thanks everyone for all your help.

0 Kudos
Message 5 of 5
(3,169 Views)