Programmable choose Matlab ActiveX DLL

Hi,
We are using Labview with Matlab ActiveX DLL. Everything work fine. But, every one we recompile the Matlab DLL, I need to re link the static reference to the new Matlab DLL. It's possible to get the link dynamic?
So, if we recompile the dll (keeping the same input, output, functionName, version), I don't need to re link my reference, only : 
1) regsvr32 -u test.dll,
2) remplace the C:\Y_Code\test.dll with the new one
3) regsvr32 test.dll
I include the basic VI, the 3 different Matlab DLL (can be rename).
Test_1_0_1.dll = Add m+n+1.1
Test_1_0_2.dll = Add m+n+2.2
Test_1_0_3.dll = Add m+n+3.3
Off course, you will need the Matlab Runtime MCR7.10 (if need, I can send you the runtime, but 152Meg...)
Thank
Solved!
Go to Solution.
Attachments:
DynamicReference.zip ‏706 KB

smercurio_fc wrote:
Your question is not specific to Matlab, as it applies to any ActiveX. It has also been asked before. What you are asking for is not possible in LabVIEW.  You would need to create some form of wrapper DLL that will actually interface to the ActiveX component.
Thank
How I can make a wrapper? I don't really understant what is a wrapper
Thank

Similar Messages

  • How to use a 64-bit Matlab ActiveX in a 32-bit CVI?

    I have a CVI 9.0 and 64-bit MatLab R2012a installed on my PC together with 64-bit Windows 7.When I try to use "Create ActiveX Controller" wizard to use the Matlab ActiveX,a message went out says"The Type Library is not intended for use on Win32".Seems like it's because my CVI is 32-bit but my Matlab is 64-bit.So I wonder is there any way for me to use the MatLab ActiveX Controller?
    PS.I have been checked on this topic:http://forums.ni.com/t5/LabWindows-CVI/How-to-create-ActiveX-Control-in-LabWindows-CVI-2010/td-p/183...
    But it's not workong for me due to different CVI version.
    Thank you guys.

    Thank you for your reply.
    Does this means that it is still not possible to use the PDF ActiveX control in a x64 WinForms application?

  • How to use matlab compiled DLL in Labview ?

    I have LV 8.5, and am unable to use a matlab compiled DLL in my LV code. I have tried the 'import'  command, but it does not list any functions. However, it does not show any errors during its execution. The existing solutions/responses to this question do not work either. I would also like to know of a way to deal with mxArray datatype. What is its equivalent in C (or any other high-level language) ? How do I retrieve an array that is returned from the matlab dll ?

    I'm assuming you have either Matlab installed or at the very least the Matlab Runtime, otherwise the DLL won't work. The "import" command relies on having a header file. Do you have one? You also need to make sure the DLL has been compiled so that it's compatible with LabVIEW. The most likely problem is name mangling, which also occurs when you try to compile a DLL written in C++. See this post, which contains links to useful posts.
    The mxArray datatype is a special datatype which is actually a structure. It's complicated. Your best bet is to create a C DLL that acts as an intermediary between the Matlab DLL and LabVIEW. If you are able to, you can, instead, simply call the Matlab code directly using the Matlab script node.

  • Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?

    hi !
    Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?
    Please answer.

    hi !
    Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?
    Please answer.
    Hello,
    We could not registry activex dll with clickonce directly, but here is a workaround below.
    1. Create Package for that activex dll to registry it to com.
    2. Package that MSI to CAB file.
    #1,#2 for detailed steps, please refer to the following blog.
    How to develop and deploy ActiveX control in C#
    3.
    Deploying CAB Files Using ClickOnce Deployment
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The suitable LabVIEW data type correspinding to the array of structure in Visual Basic ActiveX DLL

    Hi!
    I need to call a VB ActiveX DLL from LabVIEW. When I run my LabVIEW code, I always meet an error as:
    Error 1 occurred at Incorrect Function in T06.vi
    Possible reasons:
    LabVIEW: An input parameter is invalid.
    I have read the VB DLL code that defines the data type. It fills data to a structure, then puts this structure to the array, and sends the array of structures to the method.
    VB Code:
    For I = 1 To 31
    Set MyInputData(I) = New EM_nkd_DataPoint
    Next I
    With MyInputData(1)
    .Amplitude = 8.44
    .DataPointType = R_HW
    .DataSource = MEASURED
    .Wav
    elength = 409.56
    End With
    With MyInputData(2)
    .Amplitude = 91.60113
    .DataPointType = T_SUB
    .DataSource = MEASURED
    .Wavelength = 409.56
    End With
    ~~~
    With MyInputData(31)
    .Amplitude = 91.96825
    .DataPointType = T_SUB
    .DataSource = MEASURED
    .Wavelength = 657.43
    End With
    My problem is that I can’t find a suitable kind of data type in LabVIEW which is corresponding to this case
    Attached my LabVIEW code for reference.
    Many thsnks.
    TX
    Attachments:
    T07.vi ‏166 KB

    Hi,
    if you have a complete source code including EM_nkd_DataPoint class module, take a look inside in order to see data types for Amplitude, DataPointType, DataSource and Wavelength (probably for Amplitude and Wavelength is SINGLE). If this code is not available, maybe the author mentioned a type for T_SUB and MEASURED even if they are constants.

  • How to call LabVIEW ActiveX dlls into VB6

    I'm jumping in on a project written primarily in VB6. I'd much rather wirte code in LabVIEW so what I am looking for is some example code for calling LabVIEW activeX dlls into VB6. Does anyone have example code? I need to see how the LabVIEW libraries and classes are called and used in VB6.

    Hi Drewdafis,
    Refer to this link for example code on calling a LabVIEW DLL from Visual Basic.
    Hope this helps!
    Best Regards,
    Jonathan N.
    National Instruments

  • How to generate and use Matlab(R2007) .dll's in Labview

    Is there a step-by-step example on how to generate and use Matlab(R2007)  .dll's in Labview.
    Our experimenal hardware is LabView-controlled and we want to pass
    images/2d intensity arrays to a more complex matlab program that will
    return an array of extracted data which we want to use in LabView again.
    Thank you
    Carsten

    I recommend having a wrapper created around the matlab dll that converts the datatypes for you. There is a lot of fooling around with pointers involved which is very difficult in LabVIEW. btw, this got much more complicated after Matlab 7. Essentially, you need to convert your inputs into mxArrays, and then add those mxArrays to an mxArray list that you pass by pointer into the matlab dll. You also need to create a mxArray list for the outputs from the dll which you will need to extract your data out of before converting it back into a LabVIEW supported datatype. It's a big hassle. We do this pretty often, but we have created a c library that handles all the conversions, so it is feasible for us. Unfortunately, I can't share the library, but hopefully this information will help you get where you want to be.
    Like I said, it would be easier if you can just get a c developer to write a wrapper for you to keep it simple in LabVIEW. Alternatively, you might try getting your m-code to work in Mathscript.
    Chris

  • Calling Pulse Generator Matlab model dll in Labview through SIT

    Hi ,
     I have a Matlab model dll which generates PWM output. I Would like to integrate this "dll" through SIT connection Manager and generate the Physical signal.
    But while configuring the Tools->SIT Connection manager->Hardware I/O->Configure NI-DAQ i am getting only Analog input & Analog outputs, but i need Timer/Counter channels.
    Could any one tell what i should do for generating the PWM output with the help of matlab model?
    Thanks
    naveen

    Hi Naveen,
    I apologize that I did not post sooner. I have determined that this is not directly possible. I am actually currently looking for a workaround. This workaround should be possible but may not be all that straightforward to implement. I will post back as soon as I find something.
    Best regards,
    Steven

  • New Version of ActiveX DLL

    Hi,
    I use in my VI external ActiveX DLL.  I wanted update my VI to the new version of this Dll.
    1. I unregistered the old one and registered the new one.
    2. After this I opened my VI and tryed to execute it.
    I couldn't execute my VI, because for every Function 'Invoke Node' I
    got error message 'Invoke Node: contains unwired or bad
    terminals'. 
    The signature of the functions, which I call with the 'invoke node' didn't change and no broken wires are displayed.
    I deleted one of the 'Invoke Nodes' and inserted a new one with the call for the same function. The error message disappaered.
    Does somebody knows why it happens? Should I update every 'Invoke Node'-Function with the identical one or there is another one
    solution?
    Thank you in advance for he help!

    Hello,
    I don't know you ActiveX DLL but if there are any changings in the ActiveX DLL like changings of parameters or properties then you have to create the property or invoke node new. I know this from the ActiveX changings of Excel 97 and Excel 2003 which you can read in this KBs.
    http://digital.ni.com/public.nsf/allkb/177D720A428CA72B862567EC00757F0C?OpenDocument
    http://digital.ni.com/public.nsf/allkb/56F3F1DA24A5270286256C020070F67B?OpenDocument
    You can try to do a masscompile but I thinks it do not help. Probably you have to create the property and invoke nodes new.
    Regards,
    WolfgangZ

  • Accessing ActiveX DLL pre-installed in client PC

    Is there any way to access ActiveX object which is already
    installed as an ActiveX DLL in client (local) PCs?
    In the Flash, I want to instanciate an object of ActiveX
    class and to access its methods and properties.
    Thanks,
    Joseph H.

    no because Flash is kraaap and not a real development
    tool

  • Can Ora_ffi call ActiveX DLL function???

    Hi, Can I call an ActiveX DLL function using ora_ffi or by any other means? Ora_ffi documentation says that it can call C dll functions.Can I call VB dll functions from forms PL/SQL.

    Hi, I don't have any experience in calling DLLs, but you may want to give this a try.
    report zrich_0001.
    data: path type string.
    path = 'C:WINDOWS<the_file_Name>.dll'.
    call method cl_gui_frontend_services=>execute
       exporting
         application            = path
      exceptions
        cntl_error             = 1
        error_no_gui           = 2
        bad_parameter          = 3
        file_not_found         = 4
        path_not_found         = 5
        file_extension_unknown = 6
        error_execute_failed   = 7
        others                 = 8.
    Regards
    Rich Heilman

  • Using a Visual Basic ActiveX DLL in LabVIEW

    I' like to use some code written in Visual Basic into LabVIEW. I think the best way to do this is making a dll_activeX. I've seen an example on NI site: http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB992111EE034080020E74861&p_node=DZ52048&p_submitted=N&p_rank=&p_answer=&p_source=External.
    When I use the dll present in the "zipped" file it works (I've registered the dll as described in the article).
    If I compile in a DllActiveX the Visual Basic project (Visual Basic 6.0), present in the zipped file, and I try to use, after the unregistrtion of the old one and the registration of new one, it doesen't work.
    I received the following error:
    error 3005Occurred at automation open: Object specified is
    not creatable in a ActiveX Dll with LabVIEW.vi
    Some ideas?
    Thank you.

    Paolo,
    I am not sure why you are getting the error. I downloaded the zip file re-built the dll and then registered it. I originally had LabVIEW open, so I closed and re-opened it so that it would see the new object. I then pointed the ActiveX refnum to the Project1 class. I still had a few broken wires so I hit ctrl-shift-Run Arrow to force a recompile.
    After all that I ran the VI at it worked great. Once that was done I unregistered it and ran the VI. I got an error as expected. I then re-registered the dll and ran it again. No error.

  • ActiveX DLL and Variants

    Hi
    does anybody know if there exists a faster way to pass Arrays of doubles between VisualBasic (ActiveX DLL) and LabView? An array of doubles apears in LabView always as a variant and therefor the speed is slow.
    Thanks for helping.

    The Variant really isn't going to slow down the transfer. LV arrays are not the same as VB arrays (which through COM are passed as SafeArrays). Thus to make the call, we need to create an instance of a SafeArray and copy the LV array into it (and back out if the parameter is marked in/out or out). If the array size is very large, this can get expensive. Unfortunately, if you want to access the array data in both languages, then there isn't any other solution - the data types are just different and thus require the copy.
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • How do I set a public variable in a native ActiveX DLL using Java?

    Hello,
    I have run into an issue that I cannot seem to find any documentation on, and all of my efforts with search engines have returned no useful results.
    Here is my situation:
    I have an Active X DLL that has a very simple configuration, but it is a third party DLL which I cannot modify. To interface with the DLL I have to set a series of public variables and then call a method with no parameters that will use the current values of the variables to perform a calculation. There are no "set" or "get" methods.
    At this point I have a very good idea about how to use JNI to create the class in java, and call the method. However, this does me no good at all if I cannot set the variables.
    Everything I have found so far defaults to an assumption of no direct access to variables, and that getter and setter methods would be available for that purpose. Anyone know of a way that this might be handled? I would provide source code, but it seems useless unless I know how to actually do this.
    Thanks in advance for any input.

    OK. Those are OLE/ActiveX/COM/WhateverTheyCallIt getters and setters, that VB makes look like object 'properties'.
    If you are familiar a bit with C#, they also have 'properties', which are getters and setters hidden behind a syntax that makes them look like member variables.
    I am affraid my help has to stop here, as I don't remember COM anymore.
    But, unless you find someone who really knows COM, you will have to investigate by yourself.
    One suggestion though: open a C++ project in VisualStudio 2005 or 2008 (not Express, it seems not to support what I describe).
    Go to something like References or Add Reference and you will see a tabbed dialog box with a COM tab (I describe all this from memory).
    Add your DLL. After this do View->Object Browser or alike. It should show your COM object. You will be able to examine its methods and properties.
    I think Visual Studio canl generate code for invoking them. This is the C code that somehow you should take from there and place in your JNI code.
    Edited by: baftos on May 9, 2010 11:22 AM
    Correction: VS2008 Express also supports this, but to get there, you do View->Object Browser->Click the "..." button->COM tab.
    VS2008 Express is free.
    Edited by: baftos on May 9, 2010 11:25 AM

  • Missing ActiveX DLLs

    Good morning.
    After deploying Adobe Reader 11.0.08 within my environment, I have received multiple reports of users being unable to launch PDFs in the browser.  Upon further research, the following files are missing on the reported computers.
    Location:     C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\
    Files:            AcroIEHelper.dll; AcroIEHelperShim.dll; AcroPDF.dll; pdfshell.dll
    The users are able to open PDFs in the full Reader application, but not within Internet Explorer.  After running a repair or re-install of the application, the ActiveX components appear and the user is able to function normally again.  Looking into the logs, the application exists successfully with a code of 0.
    I am unable to reproduce the error myself, but have received more than 20 reports of the issue now.

    Good morning.
    How did you deploy Reader (SCCM, GPO, AIP)? What command line did you use.This was deployed with SCCM.  After building the MST to be silent, I am running the setup.exe in the package, like I have done all previous versions.
    Were there any customizations via MST?Yes.
    Accept EULA, Remove all versions of Reader, Run silent, Suppress Reboot.
    Remove desktop icon, Prevent WebMail profile, disable product updates and all online features.
    Is it a fresh install or you just deployed the patch?This is a full install, not just applying the patch, as I had issues with workstations failing the patch upgrade.
    What was the version on users machine before deploying the patch?90% of the workstations were on 11.0.06.
    Is the the whole ActiveX folder deleted or just the files inside it?For the most part, I believe it was just the DLLs that were removed, not the whole directory.
    I do not have any logs at the moment.  The technicians are simply running a repair on any workstation that has the issue and it resolves it.  I have asked them to let me know of any new issues so that I can grab a log.

Maybe you are looking for

  • Is my deactived 3g iPhone no longer able to access Wi-Fi?

    We finally got tired of AT&T and switched to another cell provider. Is our 16gig iPhone 3G now basically useless? We get no Wi-Fi, it's shaded and inaccessible. We were hoping to use the phone as an iPod Touch whenever we have Wi-Fi access. Thanks.

  • External Microphone in Windows 7 64bit

    I have a MacBook Pro 15 MD104 with Mountain Lion. I'm also install Windows7 64bit Enterprise using Boot Camp. I'm download latest Sound Card driver with Boot Camp and install it (and all other devices driwer). Macbook has a one audio socket to combin

  • HT203167 Purchased songs, movies, tv shows & apps are not appearing in "Purchased" folder in iTunes store.  How do I fix this?

    The items are downloaded to my harddrive so I do have these items.  However, if I wanted to access any of these purchased items on my iPad2 via the cloud I cannot.  They no longer show up.  How do I fix this?  How do I get the listing of all my purch

  • ITunes music collection after 6th hardware update gone?

    Dear Community, I hope someone can help me with this question: Every year or two I upgrade my hardware, 4th time now – each time iTunes is counting down - How can I prevent losing my music collection when I upgrade the 6th time? Do I get an option "B

  • Js cache

    According to this code js should come from browser cache but i want that each time it should be called from server side? how is this possible? please explain with some code snippets. <%@ page language="java" %> <% response.setHeader("Cache-Control","