LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XControl never fires Display State Changes

Solved!
Go to solution

Hi there,

 

I am trying to get familiar with the XControls and I am building something very quick to understand them a bit better.

 

The Xcontrol is comprised of a boolean switch that will update the status of the Xcontrol with every value change and the Status of the Xcontrol will update the value of a boolean indicator.

 

The question is that I can see the Xcontrol Status changing every time I click on the button, but if I set a breakpoint within the Display State Change event, it never gets into it.

 

Am I doing something wrong?

 

Thanks a million.

0 Kudos
Message 1 of 3
(3,037 Views)
Solution
Accepted by topic author Dominigomes

To quote a presentation I made two years ago at NIWeek about XControls:

 

Display State Change Event – This event’s main purpose is to provide a mechanism for updating the Facade VI to reflect changes made to the control’s display state. Hence, LabVIEW fires the event when the XControl is placed on the front panel of a VI, a VI containing the XControl is opened, LabVIEW performs an Undo or Redo on an attribute associated with the XControl, a property is written to, or a method is invoked.

 

I think you are confusing this with the Data Change Event? That is the event that is associated with the XControl value.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(3,010 Views)

All clear now! The internal state was changing, but of course, the event would be only fired if it is changed via Method/Property!

 

Thanks a lot for your help 🙂

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