Mikrobi Posted September 16, 2004 Report Share Posted September 16, 2004 When I register dynamic user event by Create User Event and Register Event I can connect 'event reg refnum out' to Dynamic Event Terminals and select dynamic event that call like defined data at input Create User Event. But, when I use Register Event Callback I can't connect 'event callback ref out' to the Dynamic Event Terminals. So how could I Use register dynamic events from ActiveX in EVENT structure similary like with user events? realy confused Mikrobi Quote Link to comment
Norm Kirchner Posted September 16, 2004 Report Share Posted September 16, 2004 What are you trying to accomplish? Using activeX events with the event structure or user defined events w/ the event structure. You can not use activeX events w/ the LV event structure But you should be able to register a user defined event the way that you outlined. By creating a new user event Wiring it to the event terminal on the "register Events" function and then wire the event registration refnum to the dynamic terminal of the event structure. Be more specific in what you are trying to do Quote Link to comment
Mikrobi Posted September 16, 2004 Author Report Share Posted September 16, 2004 What are you trying to accomplish?Using activeX events with the event structure or user defined events w/ the event structure. You can not use activeX events w/ the LV event structure But you should be able to register a user defined event the way that you outlined. By creating a new user event Wiring it to the event terminal on the "register Events" function and then wire the event registration refnum to the dynamic terminal of the event structure. Be more specific in what you are trying to do 1774[/snapback] I have STI.ocx (systray icon activex component) and I want use that with LV event structure to operation with icon in tray events. I could register that events from STI, but i can't use them... regards Mikrobi Quote Link to comment
bariman8 Posted September 17, 2004 Report Share Posted September 17, 2004 Hi mikrobi, The register for event callback does not work in the way you are intending it to work. U see in your image there is a input called VI ref. Right click on the register for event callback function and select create callback VI (I think that's what it's called). From here you can program a VI that will handle the event that you are registering every time that event occurs. In other words the register event callback VI waits for an activeX event and on that event it will call that VI that you wire the reference into there. I hope this helps because initially I had problems with this as well, Derek Lewis Wineman Technology Quote Link to comment
Michael Aivaliotis Posted September 17, 2004 Report Share Posted September 17, 2004 This is not exactly a good post but it shows an example of how to do an event callback: http://forums.lavausergroup.org/index.php?...=findpost&p=119 Perhaps this question should be put up into the LabVIEW FAQ... Quote Link to comment
Mikrobi Posted September 17, 2004 Author Report Share Posted September 17, 2004 Hi mikrobi,The register for event callback does not work in the way you are intending it to work. U see in your image there is a input called VI ref. Right click on the register for event callback function and select create callback VI (I think that's what it's called). From here you can program a VI that will handle the event that you are registering every time that event occurs. In other words the register event callback VI waits for an activeX event and on that event it will call that VI that you wire the reference into there. I hope this helps because initially I had problems with this as well, Thanks for everyone! :thumbup: I've made some examples and understood ActiveX events in LabVIEW. best regards Mikrobi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.