02-18-2013 10:18 AM - edited 02-18-2013 10:30 AM
Hi, I have put a bunch of indicators into a clusters. Is there a way to update these indicators without having another cluster of the same type with controls that are associated with the indicators?
Thanks.
Solved! Go to Solution.
02-18-2013 10:31 AM
02-18-2013 10:32 AM - edited 02-18-2013 10:32 AM
Why do you think you need a control for that ?
Just write to the indicator terminal your locally saved data.
Use the bundle/bundle by name to change the clusters values.
And a tip, make cluster a type def.
02-18-2013 10:36 AM
What's generating the data to populate the indicators? Probably Ben64's suggestion (bundle by name) is your best bet, but there might be another option depending on the source of the data.
jdeantx
02-18-2013 10:38 AM
Shouldn't this work?
Tnx.
02-18-2013 10:47 AM - edited 02-18-2013 10:47 AM
You have to configure the cluster to use the "Bundle By Name". This is part of why dkfire probably suggested the type def. It is definitely an easier option in that sense. See attached...
02-18-2013 10:51 AM
02-18-2013 11:10 AM
You can just create a local from your indicator cluster and use that as the input prototype. See attached vi
02-18-2013 11:29 AM - edited 02-18-2013 11:33 AM
@bill_gilbert wrote:
You can just create a local from your indicator cluster and use that as the input prototype. See attached vi
While I agree it is a solution, it isn't the most scalable one. If you used this cluster in more than one VI, and you want to change the cluster - both of which are highly likely in a devlopment environment - you'll have to track down all instances of controls, constants and indicators in all the VIs and pray you don't miss one. Your best bet is to make a typedef so that if you need to change the cluster, all you need to do is update the typedef and all the controls, constants and indicators get updated accordingly.
[edited for coherency]
02-18-2013 12:30 PM
Thanks bill. I'm just feeding the typecast a 8-byte array that I'm typecasting down to the correct datatypes in the array. The indicators in the cluster will be indicators only, so making the cluster typedefs really will not be required for my application even though it is a good idea for subvi use. The local input prototype into the cluster bundle works great. Thanks...