05-04-2009 04:06 AM
Hi All,
LV 8.6.1
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?
BR, Jim
Solved! Go to Solution.
05-04-2009 08:25 AM
05-05-2009 12:42 AM
Hi, Krsone
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 ?
BR, Jim
05-05-2009 02:36 AM
Jim,
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,
Norbert
05-04-2010 03:10 PM
05-04-2010 03:13 PM
Norbert-
14 posts to go... Congratulations in advanced (pre-enthusiast)!