02-06-2012 09:01 PM
I'm sure I'm missing something obvious, but how do I get a cluster on the front panel to update its values? Synchronous display doesn't work like I expected it should.
Ref. the attached example: I want the front panel cluster numeric control's values to update when they are changed. The numeric value is increased by 1 and then rebundled to the cluster, and the indicator shows the correct value. I, however, want the control to be updated as well, so that it shows the increased value for numeric and will be that value the next time the VI is run. Is there a way to do this?
Solved! Go to Solution.
02-06-2012 09:32 PM
Ok, I figured out a way to do this, but want to confirm that it's good practice. After the value is increased, I wire the cluster to a local variable of the cluster and it updates for the next time the VI is run.
Is this a good way to do it?
02-06-2012 09:38 PM
Hi..
Check the attached vi...
02-06-2012 09:40 PM
@ajolson wrote:
Ok, I figured out a way to do this, but want to confirm that it's good practice. After the value is increased, I wire the cluster to a local variable of the cluster and it updates for the next time the VI is run.
Is this a good way to do it?
Post your exact problem. Where you want to perform this operation.
02-07-2012 05:08 AM
@ajolson wrote:
Ok, I figured out a way to do this, but want to confirm that it's good practice. After the value is increased, I wire the cluster to a local variable of the cluster and it updates for the next time the VI is run.
Is this a good way to do it?
If your cluster must be a control on the FP, then updating it with a local variable is fine. You can get into trouble if you read & write in multiple threads using this method, though. .