06-25-2014 06:46 AM
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.
Solved! Go to Solution.
06-25-2014 09:03 AM
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...
06-30-2014 10:54 AM
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 🙂