ActiveX Events

Hello,
I am using a COM dll server (USBIO in attachment) from LABView. This is only a COM server and NOT an activeX control. I have successfully managed calling its methods and properties (with the activeX "Invoke node" and "Property node"). But now I have been trying to use its events call-back functions. I tried to "list events description" from the ActiveX menu. But this function doesn't list anything.
Does normally the ActiveX "list events description" function success with a dll COM server ?
I know that this COM server can be accessed from Visual Basic (properties, methods, AND EVENTS). I have read in the forum that I probably have to write a wrapper dll to encapsulate the events call, or perhaps writing an activeX control in Visual Basic.
D
o you know
- how difficult these are ?
- What are the principal steps to manage these ?
Thank you very much for your reading.
Attachments:
usbiocom.dll ‏132 KB

Pierre_a,
Multiple posting of the same question is not likely to result in an answer. The die-hard experienced regular posters of this forum are volunteers and rarely do not answer a question that they know the answer to. I have attached links to your other postings so that the volunteer that decides to help can have access to all of the information.
ActiveX Events "Object specified is not creatable"
activex events
ActiveX Events
activex events
activex events
In my opinion the answer to your first question is that it will be very difficult to create wrappers for COM dll servers. I do not have the slightest idea how to go about doing this and I have used LabVIEW intensively for years. Because I am ignorance of COM dll servers, I recommend digging through the web in the slight chance that someone else encountered a similar problem and was kind enough to publish their efforts.
Finally, you mentioned that you read �in the forum that I probably have to write a wrapper dll�
. Can you provide a link so that others can understand more about the potential solution?

Similar Messages

  • It seems that NI dropped the Activex Events from the Control Panel in LabVIEW 7.0. Why???

    I have Labview 6.0/6.1 Activex vi's that no longer work in LabView 7.0 There are no longer ActiveX Events vi's in the Communications->ActiveX control set. What is the deal with that??? Pretty much makes my $2400 upgrade investment worth nothing as far as I can see.

    kup,
    Are you sure that your VIs no longer work? They should. The support VIs are located in "vi.lib\Platform\ax-events.llb". The functionality was not taken away, the VIs were simply removed from the function palette. Also, ActiveX Events may now also be handled using calback VIs. This is much better, IMO. Seach the examples for "ActiveX" and "callback".
    -Jim

  • ActiveX event queue in Labview 7.0

    I've acquired an Ortec toolkit with ActiveX controls and am trying to
    follow the procedures shown in the manual for handling ActiveX
    events.  The manual tells me to add 'Create ActiveX Event Queue
    node', "Wait on ActiveX Event Node' and 'Destroy ActiveX Event Queue
    node' to my vi.  The problem is, the manual was written for
    Labview 5.1, and I have Labview 7.0, which no longer uses these
    nodes.  Instead, LV 7 uses the 'Register Event Callback Node'.  Can anyone tell me how to alter the attached vi to use the Register Event Callback Node instead of event queueing?
    Attachments:
    EventsExample.vi ‏80 KB

    hi there
    see attachment for an example (because i don't had your control i used one of MSCOMCTL)
    best regards
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    AX Events 7.0.zip ‏13 KB

  • Want to "ignore previous" ActiveX Event using callback vi/dynamic events in event structure (LV 7.0)

    hi there
    LV 7.0: i'm using a callback vi with an registered ActiveX event (MSComCtl ToolBar/ButtonClick). i wait for the event with an event structure using dynamic events. how can i wait "ignore previous"? (like i did in LV 6.1 with the "Wait On ActiveX Event.vi").
    thx in advance
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

    hi sebastian,
    here's my code. it uses the ToolBar Control from the MsComCTL. in case you don't have a development license i put an executable to the zip.
    i want the event structure to ignore any pending events
    (like the old style solution with "Ignore previous" = TRUE).
    best regards
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    ActiveX_Events_LV_7.0_(using_MsComCTL-ToolBar).zip ‏234 KB

  • Reading ActiveX Event Messages

    Hi
    I have been reading activeX event messages for sometime now
    using a combination of EventLastMatch and GetSpriteProperty.
    Within a text entry activex which I have recently imported
    into Authorware it contains within the Events Tab the following
    parameter:
    KeyDown returns nothing
    Parameter 1: KeyCode is an integer
    Parameter 2: Shift is an integer
    Silly question but if 'KeyDown' returns nothing then why is
    the Parameter 1 and 2 stated ? Does this KeyDown event actually
    return values.
    I have tried reading the KeyDown event using
    MessageValue:=CallSprite(@"ActiveX Text Entry",#KeyDown)
    and
    MessageValue:=EventLastMatched@"ActiveX Text Entry"[#KeyDown]
    But with no success. Anyone have any other methods I could
    try ?
    Thanks

    I think the AX that's been discussed is the web browser
    control...
    "Mike Baker **Adobe Community Expert**"
    <[email protected]> wrote in
    message news:[email protected]...
    >I ran a quick test with the MS Forms 2.0 text box control
    and tab events
    >are
    > getting through to the control - I can see the tab in
    the control. They
    > are
    > not returned as key events though so they're not
    completely making the
    > round
    > trip. I do get a #change event though. Not very useful
    in this case.
    > Mike - What about a Win Control?
    >
    > Mike
    > ====================
    > Mike Baker
    > Adobe Community Expert
    > [email protected]
    >
    > "Amy Blankenship *AdobeCommunityExpert*"
    > <[email protected]>
    > wrote in message
    news:[email protected]...
    >> I'm fairly sure tab events don't get passed either.
    There have been
    > several
    >> conversations about that on the Aware list.
    >>
    >> "Mike Baker **Adobe Community Expert**"
    <[email protected]> wrote in
    >> message news:[email protected]...
    >> > Hi Mike,
    >> >
    >> > Catch an event from an ActiveX with an Event
    response attached to an
    >> > interaction. EventLastMatched@"icon" refers to
    the response and not to
    > the
    >> > activex control. Unfortunately not all actions
    in Authorware wind up
    > being
    >> > events in the ActiveX. If I remember right,
    ShiftDown is a key modifier
    >> > that
    >> > doesn't even get passed to the ActiveX control
    so no event can be
    >> > returned.
    >> > Authorware waits for the actual key and it
    passes the key and the
    > modifier
    >> > to the control together.
    >> >
    >> > Mike
    >> > ====================
    >> > Mike Baker
    >> > Adobe Community Expert
    >> > [email protected]
    >> >
    >> >
    >> > "Mike P" <[email protected]>
    wrote in message
    >> > news:[email protected]...
    >> >> Hi
    >> >>
    >> >> I have been reading activeX event messages
    for sometime now using a
    >> >> combination of EventLastMatch and
    GetSpriteProperty.
    >> >>
    >> >> Within a text entry activex which I have
    recently imported into
    >> > Authorware it
    >> >> contains within the Events Tab the
    following parameter:
    >> >>
    >> >> KeyDown returns nothing
    >> >> Parameter 1: KeyCode is an integer
    >> >> Parameter 2: Shift is an integer
    >> >>
    >> >> Silly question but if 'KeyDown' returns
    nothing then why is the
    >> >> Parameter
    >> > 1
    >> >> and 2 stated ? Does this KeyDown event
    actually return values.
    >> >>
    >> >> I have tried reading the KeyDown event
    using
    >> >>
    >> >> MessageValue:=CallSprite(@"ActiveX Text
    Entry",#KeyPress)
    >> >> and
    >> >> MessageValue:=EventLastMatched@"ActiveX
    Text Entry"[#KeyDown]
    >> >>
    >> >> But with no success. Anyone have any other
    methods I could try ?
    >> >>
    >> >> Thanks
    >> >>
    >> >>
    >> >
    >> >
    >>
    >>
    >
    >

  • I can not get LabVIEW to respond to a VB6 ActiveX event

    I am working with a VB6 ActiveX dll (VBtablet.dll is a wrapper for Wintab32 for a tablet interface) using LV8.2.1 and can not get it to respond to an event.  I have opend the object and registered it for callback, but have had no luck in having an event generated.  Is there anyway to see these events generated or at least that it has been registered?  The dll has no problem working in a VB app or in Excel using a VB macro.  Is there anything special that has to be in the ActiveX object to get LabVIEW to respond to it?
    When I register the callback I use a control reference of the data being returned as my "user data" and in the callback VI I wire the event data into the "Value" of the control reference. I believe this is all I have to do.  Any ideas would be helpfull.
    Thanks,
    Paul 

    cueball wrote:
    I am able to see that events are generated from the dll, but somewhere between the ActiveX object and LabVIEW it is disconnected.  Is it possible that LabVIEW is excepting these events and not allowing then into the code.  The path as I see it is
    dll -> WinAPI -> ActiveX -> LabVIEW
    One thing this dll requires is a windows handle and I am wondering if LabVIEW itself is reads the events directly instead of ignoring them.  The reason I bring it up is that the tablet works like a mouse and I am wondering if it is absorbing these commands directly and not allowing them to be passed through the ActiveX object. Like this
    dll-> WinAPI -> LabVIEW
    therefore the event is never generated.  That is why I wish I could speak with someone at NI that could explain that process better, but it seems like there is no one at NI who knows any high level issues.
    First this are not high level issues but lowest low level issues. Some of it certainly is more Windows related than LabVIEW so support from MS, as unlikely it is to get that, would be at its place. NI people are not there nor can't really help you debug your VB issues.
    Second you say it is a tablet and works like a mouse, then I'm wondering if Windows is not simply claiming it as a Human Interface Device itself and not really letting you control it yourself in your VB control.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • ActiveJMS Java Bean Bridge - VB6 - ActiveX event listener

    I tried to run a simple ActiveJMS client in VB6 with SUN's broker. All steps have been successful until trying to compile and run the ActiveX in VB6 code.
    1) ************************************************************************************
    Code from the ActiveJMS samples (below): Compiles, but runtime error '429' on the 'Set' statement.
    Option Explicit
    Private WithEvents objActiveJMS As ActiveJMS.ActiveJMS
    Private Sub Form_Load()
    Set objActiveJMS = New ActiveJMS.ActiveJMS
    End Sub
    2) ************************************************************************************
    Changing the declaration and creation of objActiveJMS (below) made the application run until the event listener call. And then stop there with a runtime error 'java.lang.NoClassDefFoundError : org.activejms/ActiveJMS$2' .
    Option Explicit
    Dim objActiveJMS As Object
    Private Sub Form_Load()
    Set objActiveJMS = CreateObject("ActiveJMS.Bean.1")
    lngProvider = objActiveJMS.getProvider("${default}")
    lngConnectionFactory = objActiveJMS.lookupOnProvider(lngProvider, "EMERGENSYS")
    lngConnection = objActiveJMS.createTopicConnectionOnTopicConnectionFactory(lngConnectionFactory, "admin", "admin")
    lngReceiveSession = objActiveJMS.createTopicSessionOnTopicConnection(lngConnection, False, objActiveJMS.AutoAcknowledgeOnSession)
    lngTopic = objActiveJMS.createTopicOnTopicSession(lngReceiveSession, "MCAD")
    lngReceiver = objActiveJMS.createSubscriberOnTopicSession(lngReceiveSession, lngTopic, "", False)
    objActiveJMS.activateMessageListenerOnMessageConsumer lngReceiver
    objActiveJMS.startOnConnection (lngConnection)
    End Sub
    3) ***********************************************************************************
    - I did not use the .tbl file ; It has not been generated by packager.
    - I did also not use -clsid and -reg packager options.
    - I have been able to generate the .dll fille and register it.
    - I'm using j2sdk/jre 1.4.2_04
    Thanks in advance.

    I tried to run a simple ActiveJMS client in VB6 with SUN's broker. All steps have been successful until trying to compile and run the ActiveX in VB6 code.
    1) ************************************************************************************
    Code from the ActiveJMS samples (below): Compiles, but runtime error '429' on the 'Set' statement.
    Option Explicit
    Private WithEvents objActiveJMS As ActiveJMS.ActiveJMS
    Private Sub Form_Load()
    Set objActiveJMS = New ActiveJMS.ActiveJMS
    End Sub
    2) ************************************************************************************
    Changing the declaration and creation of objActiveJMS (below) made the application run until the event listener call. And then stop there with a runtime error 'java.lang.NoClassDefFoundError : org.activejms/ActiveJMS$2' .
    Option Explicit
    Dim objActiveJMS As Object
    Private Sub Form_Load()
    Set objActiveJMS = CreateObject("ActiveJMS.Bean.1")
    lngProvider = objActiveJMS.getProvider("${default}")
    lngConnectionFactory = objActiveJMS.lookupOnProvider(lngProvider, "EMERGENSYS")
    lngConnection = objActiveJMS.createTopicConnectionOnTopicConnectionFactory(lngConnectionFactory, "admin", "admin")
    lngReceiveSession = objActiveJMS.createTopicSessionOnTopicConnection(lngConnection, False, objActiveJMS.AutoAcknowledgeOnSession)
    lngTopic = objActiveJMS.createTopicOnTopicSession(lngReceiveSession, "MCAD")
    lngReceiver = objActiveJMS.createSubscriberOnTopicSession(lngReceiveSession, lngTopic, "", False)
    objActiveJMS.activateMessageListenerOnMessageConsumer lngReceiver
    objActiveJMS.startOnConnection (lngConnection)
    End Sub
    3) ***********************************************************************************
    - I did not use the .tbl file ; It has not been generated by packager.
    - I did also not use -clsid and -reg packager options.
    - I have been able to generate the .dll fille and register it.
    - I'm using j2sdk/jre 1.4.2_04
    Thanks in advance.

  • Handling ActiveX events with Javascript inside BSPs

    Hi,
    Has anyone any experience with handling events from ActiveX objects (using the <object> tag) with Javascript, inside BSPs?
    I'm developing solely for the IE browser. Reading other threads, I know that the usual way this is done is via the below code excerpt:
    <i><script type="text/javascript" for="MyObject" event="Object_Event">
         js_function();
    </script></i>
    I create a HTML page, with the <object>, <script..for..event> tags, etc. Everything works fine when the page is run from my local system. However, when the code is run from WebAS (Activate then Test (F8)), the ActiveX object loads fine. But the javascript does not respond to events thrown by the ActiveX object.
    I wonder if anyone can share their experiences on this issue.
    Thank you.
    Amos

    It's the Skype4COM (v1.0.0.17) wrapper for the SkypeAPI, available at https://developer.skype.com/Download
    (Note: NOT the v1.0.0.16, which comes with the Skype ActiveX Tools package).
    I'm trying to use javascript to handle the event "CallStatus", thrown by Skype4COM, as shown in the code excerpt below.
    <i><script language="javascript" type="text/javascript" for="Skype" event="CallStatus(Call, Status)">
                 handleCallStatus (Call, Status);
    </script></i>
    It works locally, but not when in a BSP.
    It's rather interesting to mess with Skype calls from a webpage. Do let us know how your experience goes
    Amos

  • Activex events callback registrati​on functions

    I'm ebeding an ActiveX control into UIR file. I'm able to access it's
    methods and properties but having some problems creating callback
    functions for it's events. I see the events for the ActiveX control in
    the Event Callback Registration Function Window on the left. Is there a
    way to get CVI to create the callback functions as it does for a
    Command button or do you have to do it manually? If so how does one go
    about doing such?
    regards,
    Dan

    The functions require a handle to the activex object, and a pointer to
    the function you want to fire when the particular event occurs. Each
    event registration function expects a particular function signature. If
    you open up the function panel and right-click on the callback function
    parameter, the help will indicate what the function signature should
    be. That is pretty much all you need to register a handler for the
    particular event. You will need to do thsi for each individual event
    you want to handle.
    Bilal Durrani
    NI

  • Activex events not seen in Labview

    I have PC application which has a COM server interface included.
    I am able to connect to this successfully with labview for everything apart from events. When I try and connect to events it always comes back with error 95, event unknown. I have also tried the "list events descriptions" and that comes back empty.
    The COM server works fine when used with VB and C++ applications so I am guessing Labview is the problem.
    I am using a Automation Refnum control to access the COM server and this is working fine.
    Any suggestions why I can not see any events in Labview?
    (I am running Labview 6.0.2)

    Thanks for the reply. I just tried an evaluation copy of Labview 7.0 and managed to get it working with the new feature "Register Event Callback".
    I would still like to use Labview 6.0.2 if possible as I don't believe I will use most of the new features in Labview 7.0 and 7.1. Also we have alot of version 6 licenses that will cost alot of money to upgrade!
    Any suggestions how I can get 6.0 working with events?
    Thanks,
    Matthew

  • Multiple ActiveX event registrations

    The attached zip file contains a .NET 2003 project that builds an ATL COM object with two identically typed events. Both events fire every half second sending the same count integer as data for 10 seconds when the Go method is invoked. The eventrig test.vi is set up to register two callback vi's, one for each event and update the two integer indicators on the front pannel. I have only been successful at getting the first event callback registered to work. I cannot seem to get both callbacks to sink the events. If I change the order, again, only the first one registered works. Can anyone find what I am doing wrong or missing and get both events to be handled by the vi?
    Thanks,
    Attachments:
    example.zip ‏7059 KB

    This is the feedback I got from NI UK -
    "The bug should be fixed in the next version of LabVIEW which won't be out for a while. The ax-events.llb are included in LabVIEW 7.1(though not on the functions panel) although I do not know yet whether they will be in the next revison. You should be fine using the old vi's for now and you can always include the library for compatibility with future versions."
    Certified LabVIEW Architect

  • ActiveX Event Response Paramemets

    If I use an active X control that has an event X(int p1, int
    p2) how do I access the parameters p1 and p2 in my event response
    calculation icon?

    hi there
    see attachment for an example (because i don't had your control i used one of MSCOMCTL)
    best regards
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    AX Events 7.0.zip ‏13 KB

  • Respond to ActiveX event

    Hi!
    How can I navigate to an item in my form, after a click to an activex object?
    More specific, I use a Microsoft Tree Control in order to represent boxes and I need, when the user clicks on one box, to navigate to the appropriate record and display some information (dimensions, weight etc.)
    Thank you very much.

    when_custom_item_event is the trigger you are looking for.

  • Using activex component in openGL app:  mouse event issues.....

    i'm trying to get the Flash ActiveX control to work in an
    OpenGL app. so far i've managed to get the bitmap data and map it
    to a texture succesfully. but i'm having problems getting the mouse
    interaction to work.
    i get an hWnd from IShockWaveFlash's IOleWindow. when i send
    mouse messages to it, the mouse is interpreted correctly by
    actionscript (for example, i have a custom mouse cursor tracking
    _xmouse, _ymouse which works fine).
    however, buttons do not behave correctly. rollover is
    erratic, and only in rare circumstances can i get a button's
    onPress handler to fire.
    am i sending the mouse events in correctly? any ideas of any
    other way to send them in?

    Thank you for you mail,
    After I read this article
    http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/610540bb3ea4ebdd862568960055e498?O​penDocument
    I realized that ActiveX events are not supported on CVI 5.01 at all since
    its introduced as a new feature of CVI 5.5
    "Azucena" wrote:
    >Daniel,>>Have you tried the function CA_RegisterEventCallback function?
    (I am using>CVI 5.5)>>This function is used by the functions generated by
    the Automation>Controller Instrument Driver Wizard.>It is not intended to
    be used directly.>>It basically registers a callback for an ActiveX Automation
    server object>event.>To register the callback, you must specify the CAObjHandle
    of the server>object from which you want to receive events.>>W
    ith CVI 5.5,
    there is an example for IE with Active X under the>samples/activeX directory.>>Hope
    this helps,>>Azucena>>"Daniel Bentolila" wrote in message>news:[email protected]..>>>>
    Has anybody tried to capture an ActiveX component event in a CVI>application>>
    ?>>>> for example I've created a new instance of the Internet Explorer>application>>
    from the CVI , using the ActiveX Automation controler I choosed the>Microsoft>>
    internet controls then I selected IWebBrowser2 and the IWebBrowserEvents2>>
    classes and generated the fp file for the CVI.>> Under the the IWebBrowserEvents2
    I see there are events fucntion for>example>> OnQuit, and I wanted my CVI
    app. to attach the quit event when the user>closes>> the IE window.>> Now
    at this point I expected to find some mechanism that let me to install>>
    some callback function where I can put my customised code to the quit>event,>>
    somehow I have to tell the IE to call my function whenever the OnQuit>callback>>
    fun
    ction is attached and I don't know how to do this.>>

  • Handling LabView events in ActiveX

    Hi all,
    I know most ActiveX discussion here is about getting ActiveX to work inside of LabView, but I'm trying to go the other way around.
    General Question:
    How to I catch or listen to events generated by LabView (in VB or whatever)? And is there some kind of library of LabView ActiveX events?
    More specific:
    If anyone has ever used the Jacob libraries for using ActiveX from Java, how would I create a LabView event listener from within Java? I can create a VI ActiveXComponent, but I don't know how to use it to listen to events.
    Any help on either part of the question will be most appreciated!
    Thanks,
    Sam

    "SamF" <[email protected]> wrote in message news:[email protected]..
    Thanks for both of your replies, I'm pretty certain that it is possible to generate ActiveX events from LabView, but unfortunately those links don't deal with events. Those are what I used to get to where I am -- opening and running a VI from ActiveX -- but I can't find anything on generating events.If it really seems as though there is no way for LabView to generate ActiveX events (or just catch those that are automatically generated), then I have another question: Is it possible to use LabView to catch its events internally (using it's own events methods), and write to, say, an excel file everytime an event is generated?My thinking is that even if LabView doesn't throw events, other programs such as Excel do, and so if the events were routed through Excel I could catch *those* events.(BTW, I know there are examples of writing to Excel, but I'm looking for something that is *event* driven).Any help either on catching LabView events or using LabView events to write to an MS program will be much appreciated, as always!Thanks,Sam
    Sure it's possible to build an activex server. No doubt about that.
    If I where to communicate events between the LabVIEW code and another language, I'd think about occurrences or windows events.
    There is documentation available about occurrence communication between dll's, cin's and LabVIEW. Never used it, so I can't help you much further.
    The windows events are well documented in the msdn. They should be available in any language, though relatively simple api calls.
    And you can always use window messages. If you have a window handler of the main program available in LabVIEW, you can use sendmessage or postmessage to communicate to it. The other way around is more difficult, but seems not necessary.
    Hope it helps,
    Wiebe.

Maybe you are looking for