LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting and applying a value change of a control in a cluster which is an element of a array (example VI attached)

Solved!
Go to solution

Nathand,

 

I noticed while trying to implement the much simpler method you put together for me that I missed a 'constraint' in my original example format that I was attaching-  The cluster element in my actual project I'm working on does not have identical controls (in other words I have a string, a boolean, and several numerics in the cluster element).  

 

This means I can't use the cluster to array (right?).  I just spent about 2.5hrs trying differet approaches, the only one that seems to work I'll attach here.

 

I'm curious if you know a much simpler way to fix this, and to get your thoughts on what I ended up with- do you see any flaws with it?

 

Thanks again!!!

 

-pat

0 Kudos
Message 11 of 13
(509 Views)

There's still a simpler solution.  If you're already going to need a case structure to determine what type of data is in that cluster element, might as well simply unbundle the correct value out of the cluster inside the case structure intead of dealing with references, like this:

 ClustElemMultipleDataTypes.png

Message 12 of 13
(501 Views)

Nice!

 

...that's a lot simpler... lol 

 

thanks a lot!

 

-pat

0 Kudos
Message 13 of 13
(499 Views)