LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Referencing parent cluster inside an event condition on an element

I have two identical clusters (there are many in the real vi I am developing) with change-value event defined on a ring in each cluster, two in total. Inside the event I am writing a string to indicate which cluster I am in. See attached vi.

 

I can combine all event conditions into one event conditions, but inside the event I want to get the label of the parent cluster so that I can write the appropriate string. Is there a way to get the reference/label of the parent cluster using the reference of the ring (which is passed to the event condition automatically)? 

 

Thank you very much. 

Girish

0 Kudos
Message 1 of 5
(818 Views)

This feels very convoluted!

 

Can you explain the purpose of all this in simple terms.

 

(why is there a 10ms timeout event instead of an event for the stop button?  Why is there is a 1s wait in the loop?) 

0 Kudos
Message 2 of 5
(800 Views)

Maybe this can give you some ideas....

 

 

altenbach_0-1693516441350.png

 

 

 

If you have "many" of the same clusters, maybe an array of clusters would be more scalable! (not shown).

 

0 Kudos
Message 3 of 5
(788 Views)
0 Kudos
Message 4 of 5
(784 Views)

@altenbach wrote:

 

If you have "many" of the same clusters, maybe an array of clusters would be more scalable! (not shown).

 


Here's how that could look like:

 

altenbach_0-1693517264454.png

 

 

Message 5 of 5
(781 Views)