LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

old values event structure detected

Astroboy,

After rereading this thread there maybe one important point of confusion. Again I am not sure if this is what you mean to say but you are NOT enabling and disabling the Boolean (initiate button) in your code. Neither in the sample code or in the jpg image (from what I can tell). This is important because you can control which events are ignored or registered by disabling and enabling the control respectively.

Hence you may not be able to "delay" events but you could "ignore" them. This could be accomplished by disabling controls on your front panel until some process completes and then enable those controls.

Cheers,

--Russ
0 Kudos
Message 11 of 14
(705 Views)

I'm jumping in late without an in depth study of all of the above but...

Russ wrote;

"

Hence you may not be able to "delay" events but you could "ignore" them. This could be accomplished by disabling controls on your front panel until some process completes and then enable those controls.

"

The last time I checked, event still fired for disabled controls. This gives you the option to pop-up a message like "Control disabled! Please switch to calibration mode and retry the opeartion."

The methods I know of are

1) dynamically register/un-register event.

2) Check the time stamp of the event (like Shane mentioned)

3) Get the "Disabled" state of the control and conditionally act

Trying to help,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 12 of 14
(700 Views)
Sorry I wasn't specific. The value change event that Astroboy was specifically looking at will not be registered as an event if the control is disabled. While other events such as those related to the mouse (i.e. mouseover) are still registered if disabled but value change is not.

sorry for the ambiguity.

Cheers,

--Russ
0 Kudos
Message 13 of 14
(690 Views)
I am replying to my own post here cause I still think it's ambiguous. By disabling the control you are not ignoring a "value change" event but rather, simply by the fact that you cannot change the value of the Boolean in question, you will not "get" an event. I regret using the word "ignore".

now that I am sure everyone is confused

cheers,

--Russ
0 Kudos
Message 14 of 14
(682 Views)