LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X control display state cluster doesn't keep its value

Solved!
Go to solution

Hello,

 

I'm trying to make a Xcontrol vertical graph. I would like the graph to automatically set the "Active Palette Tool" to the Pan Tool if the user press the CTRL key.

 

To do that, I planned to use a invoke node that I'll call when the user press the CTRL Key. My problem is that inside the invoke node code, the reference to my graph gets invalid for some reason. I did set the reference (hold in the "Display State Cluster") when the "Exec State Change Event" is triggered.

 

The problem is that the value is not hold in memory afterward. I really don't know where it get lost.

 

I've looked at some example and the seem to do it the same way but with much better success. What I'm I doing wrong?

 

Simplified code attached...

 

Thanks in advance for your help.

 

Vincent

0 Kudos
Message 1 of 3
(2,465 Views)
Solution
Accepted by vgravel

If you change anything in the Display State control within the facade VI you need to set the "State Changed?" boolean in the Action cluster to TRUE.

 

I've fixed this in your example.

Message 2 of 3
(2,438 Views)

Thank you very much!!

 

Smiley Happy

0 Kudos
Message 3 of 3
(2,433 Views)