mechelecengr
2008-08-12 14:40:22 UTC
I have noticed some strange behavior in an XControl I've been working on, and I'd like someone to be able to explain why.
Here are the facts:
The XControl architecture contains an event structure. Generally, event structures respond to front panel UI changes. Also, when you unselect the box "Lock front panel until the event case for this event completes" you can activate controls while that event case is waiting to finish.
Here's what I did:
I placed an instance of my XControl on a blank VI, and it works just fine when that VI is in edit mode. While events are waiting to complete within the XControl code, controls on the Facade can actively be changed since that check box is unchecked.
Here's the fishy part:
When that VI is run, the controls on the front panel of the Facade of the XControl lock up until the events are complete. So, lots of explanation boils down to this: the XControl works fine when the instance is placed in a VI and that VI is in edit mode, but when that VI is running the XControl "locks" up its front panel controls until each event in the XControl completes.
(As a side note, I have no code within the XControl's "Exec State Change" event case)
What gives?
Here are the facts:
The XControl architecture contains an event structure. Generally, event structures respond to front panel UI changes. Also, when you unselect the box "Lock front panel until the event case for this event completes" you can activate controls while that event case is waiting to finish.
Here's what I did:
I placed an instance of my XControl on a blank VI, and it works just fine when that VI is in edit mode. While events are waiting to complete within the XControl code, controls on the Facade can actively be changed since that check box is unchecked.
Here's the fishy part:
When that VI is run, the controls on the front panel of the Facade of the XControl lock up until the events are complete. So, lots of explanation boils down to this: the XControl works fine when the instance is placed in a VI and that VI is in edit mode, but when that VI is running the XControl "locks" up its front panel controls until each event in the XControl completes.
(As a side note, I have no code within the XControl's "Exec State Change" event case)
What gives?