LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

update values in cluster on front panel

Solved!
Go to solution

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?

0 Kudos
Message 1 of 5
(3,420 Views)

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?

0 Kudos
Message 2 of 5
(3,416 Views)

Hi..

Check the attached vi...

---
Silver_Shaper | CLD
Message 3 of 5
(3,415 Views)

@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.

---
Silver_Shaper | CLD
0 Kudos
Message 4 of 5
(3,413 Views)
Solution
Accepted by topic author ajolson

@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.  .

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 5
(3,388 Views)