Jump to content

Register Callback Event and event structure


Recommended Posts

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

Link to comment

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

Link to comment
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... :(

ActiveX_event_problem.png

regards

Mikrobi

Link to comment

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

Link to comment
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.

:D

best regards

Mikrobi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.