I try to get value change event from ActiveX component. I have browsed forum and examples through but I can't get an idea how to use "callback vi". E.g. in example "ActiveX Event Callback for IE.vi" there is used "callback vi". I added an example where value change event and mouse down event are programmed to event structure. Mouse down event work okay but value change not. Can someone describe what I must add to my example vi that value change event works okay?
Solved! Go to Solution.
Thank you very much. Your example works perfect. I forget to mention that I need this event also to event structure. My code structure is producer-consumer and this value change event should be passed also to queue. Should I add variable to "callback vi" or is there any easier way ?
in order to synchronize ActiveX callbacks with the producer/cosnumer, you have to either
- create an user event in the callback and capture this in you producer or
- obtain the queue between producer and consumer in your callback and insert the appropriate element into the queue in the callback.
I think the second option is easier to implement but is more limited in its functionality.
hope this helps,