From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-18-2016 11:32 AM
hi,
i have cluster .i chage any one of the value in cluter element .may i know about which element is changed using common value change event structure.
02-18-2016 11:37 AM - edited 02-18-2016 11:40 AM
Property node >> Control Label
Edit: Don't choose <All Elements> for the event source, choose which cluster element you want.
02-18-2016 11:39 AM
You can easily create a seperate event for each cluster element.
02-18-2016 11:45 AM
@Gregory wrote:Property node >> Control Label
Edit: Don't choose <All Elements> for the event source, choose which cluster element you want.
And if you want to get the new value you can cast the control reference to the proper type using a "to More Specific" node as you will see in this old nugget.
Ben
02-18-2016 12:00 PM
02-18-2016 12:02 PM
@altenbach wrote:
What I sometimes do is compare old and new from the event data node using "not equal", convert the resulting boolean cluster to a boolean array (cluster to array) and search for the single true element (search array). The resulting index (typically wired to a case structure) will give you the element position in cluster order.
I used that same approach on my first CLA exam!
Ben
02-18-2016 12:05 PM
02-18-2016 04:39 PM
When I have apps that need a lot of controls, I will sometimes nest event structures. A case in the outer structure to capture all value changes for a cluster, and an inner one to separate value changes for individual cluster elements:
02-18-2016 04:56 PM
Why do you even need the outer event structure?
I would strongly advise agains stacking event structures in general.
02-19-2016 04:43 AM
You can easily create a seperate event for each cluster element.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
i know this way. why i asking this mean i have lot of even structure so need to reduce the number of event structure in my program.