ActiveX and LabVIEW

Hello Board,
I need to know if it is possible to create an ActivX Control out of a LabVIEW program.
I have a LabVIEW program that is converted to a dll and is called from a customer program created with Delphi. The LabVIEW program now runs in an own window, when called. The customer asked, if it is possible to integrate the LabVIEW program in the Delphi software window. My thought was to do this with an ActiveX container. But I don't know, if a VI can be converted to an ActiveX control.
Are there other possibilities?
Best Regards
Dermot

Thank you for your replies.
The only reason why I would need the ActiveX Control is to embed the Frontpanel in the Delphi Software. Is this possible with an ActiveX Server? Maybe the Browser would be an option but this really seems complicated.
> However, if you are willing to do a bit more work, you can convert VI's into C calls in a DLL - that can then be wrapped in an ActiveX control you create in VB or C++.
This sounds interesting. I have already converted the VI to a dll. So would it be possible for the programmer of the Delphi Software to wrap the dll in an AcitiveX control in Delphi? Could you give me further information about wrapping a dll?
Best regards
Dermot

Similar Messages

  • ActiveX and Labview 5.01

    Could somebody help me. I need urgently some information about where I can
    get a documentation regarding ActiveX classes, parameters, invokes and
    property nodes.
    How do I know which parametrs and classes to use in order to generate an
    array in Excel format, or something similar. (Excelfile not Spreadsheet !)
    I`m using Labview 5.01 under Windows 95.
    (I`ve seen the example "write table to xl.vi" but I havent really
    understood)
    Thanks
    Michael

    Wow Kevin, I think you've hit on a new level of unhelpfulness.
    Michael,
    For info on ActiveX, you could start at:
    http://www.ni.com/support/trouble/labview/program/activex/
    There are several links to go from there, including Microsoft's
    ActiveX page:
    http://www.microsoft.com/com/activex.asp
    By the way, a LabVIEW spreadsheet file is still like a text file, with
    information basically in text format. Excel saves all sorts of
    formatting info which basically makes the file unreadable in text
    form.
    Hope this helps,
    Keith Barker
    On Wed, 05 Apr 2000 11:12:02 -0500, "Kevin B. Kent"
    wrote:
    >Michael Buchli wrote:
    >
    >> Could somebody help me. I need urgently some information about where I can
    >> get a documentation regarding
    ActiveX classes, parameters, invokes and
    >> property nodes.
    >
    >The ActiveX components are part of the application that creates
    >them, not a part of labview. So information on ActiveX from Excel
    >will have to be gained from Microsoft. Or some kind soul here.
    >I dont know or I would tell you.
    >
    >>
    >>
    >> How do I know which parametrs and classes to use in order to generate an
    >> array in Excel format, or something similar. (Excelfile not Spreadsheet !)
    >>
    >
    >An Excel file IS a spreadsheet, as far as I understand it.
    >
    >>
    >> I`m using Labview 5.01 under Windows 95.
    >>
    >> (I`ve seen the example "write table to xl.vi" but I havent really
    >> understood)
    >
    >This is probably what you want to use.
    >
    >>
    >>
    >> Thanks
    >> Michael
    >
    >

  • MATLAB and LabVIEW Communication Optimal Performance

    I have tried my own code,  searched through forums and examples to try and figure out best method to communicate between LabVIEW and MATLAB.  Most of the information I found was over a year old and I was wondering if there was a better current solution.  My goal is to work in LabVIEW to collect the data, process in MATLAB and return the results to LabVIEW.  I have encountered some difficulty in my search and before I delve even further in to one in particular, I was wondering if anybody had an optimal solution with this communication protocol or solutions to my errors encountered thus far.
    I have looked at the following methods.
    1)TCP/IP and a very good example found here: http://www.mathworks.com/matlabcentral/fileexchange/11802-matlab-tcp-ip-code-example
    When I try to adjust even the example and communicate for my own purposes I get the following errors
    Error 63 if MATLAB server not running
    Error 66 occurs if the TCP/IP connection is closed by the peer. In this case, Windows notices that no data is returned within a reasonable time, and it closes the TCP/IP connection. When LabVIEW attempts to communicate after Windows closes the connection, error 66 is the result. 
    However, the example itself works perfectly and does not get these errors
    2)Math Script Node, works but the post below states that MATLAB Node is faster.
    "computing fft of a 1024x1024 matrix ten times (attached code). Result is that Matlab node version takes 0.5s versus 1.6s for Mathscript node version."
     http://forums.ni.com/t5/LabVIEW/Why-are-mathscript-performances-much-below-matlab-s/m-p/2369760/high...
    3) MATLAB Node, which states it uses ActiveX Technology seemingly works well, but loses time for data transfer.
    4) Trying to use the ActiveX functions or if there is other Automation potential.
    5)Other solutions that I have not found that might be better suited.
    Thank you for any help or suggestions in advance. 

    Barp and Mikeporter,
    Thank you for your assistance:
    The reason I need to do the processing in matlab is as you mentioned the processing script is coming from another person who has already developed it in matlab.  I almost have to treat it as a black box.
    The TCP/IP method was interesting is that none of the errors show up when I run the example but if I try to modify it in a new VI I get the errors.
    I have attached a simple program that just has a basic butterworth low pass filter I am trying to confirm if it works in the Matlab node.  I have done other simple codes which work, and this one does not seem the implement  the appropriate filter.  The LabVIEW signal and LabVIEW filter seem to work at the default values (but not if I change sampling rate) for the Simulation of signal, Matlab signal and Matlab filter work, but the Labview signal processed in Matlab is not working...
    Ideally it would be bandpass filtered (0.1-30) at sampling rate of 256 Hz and further processed from there, but I can't even seem to get low pass to work in the matlab to labview communication.
    Any help would be greatly appreciated.  Once I have that working I will have more of an idea of the constraints of the actual processing Matlab Code I will be using.
    Thank you again.
    -cj18
    Attachments:
    labview_matlab_filter.vi ‏70 KB

  • Problems with ActiveX and an IRtrans-modul

    Hello,
    I have a problem with an IRtrans-USB-modul. This is a modul for learning or sending infrared commands.
    The modul is connecting to the USB-port and supports ActiveX and .NET protocols.
    I have registered the ocx-library with the command regsvr32 and in LabVIEW I have the selection for the ActiveX-class.
    But when I use a method and will send or learn a command I get the
    failure: Exception occured in Winsock, wrong protocol or connection
    status for the prompted transaction or demand. Help path in
    MSWNSK98.chm and context 1040006 in Unbenannt1.
    With the supplied software from the manufactor the modul is working fine.
    Somebody is using this as well? Or somebody could help me with this problem?

    Hello Tweety,
    I've installed the software for the IRtrans module. Unfortunately, I can't start a server, because for this I have to connect this module.
    If You can select the methods of the IRtrans objects in LabVIEW, the activex connection should be OK. Make sure, that You use the right parameters and the right data types.
    Here is a link to the software, I've installed. Do You have the same Version?
    http://www.irtrans.de/de/download/windows.php
    Klaus

  • VLC and LabView 2009

    I am trying to use the latest ActiveX VLC v1.1.4 in LabView, and every time I insert the VLC ActiveX Object, LabView crashes.  I've read other posts which noted success by either: 1) using a web browser ActiveX object calling VLC or 2)  finding a unique older version of VLC which doesn't cause their particular version of LabView to crash.
    I have yet to find a version of VLC which works with LabView 2009, and I'd prefer not to call a web browser ActiveX component just to play a video with VLC.
    Has anyone had success integrating a VLC ActiveX object in LabView 2009?
    Thanks,
    Stephen McClanahan

    just try the attached vi. Maybe this is what you are looking for.
    attached is 2010 and lv86 version.
    If you don't have Wait Until Next ms Multiple__ogtk.vi  look in the archive or download openg libraries.
    cosmin
    Attachments:
    vlc.vi ‏13 KB
    vlc ver86.zip ‏17 KB

  • Exchanging 2 D array between VBA and labview

    I have a project : half part is VBA writen, half part is  Labview coded. Both parts are writen to operate manually. The first one prepares data and charts them on charts sheets, the second one smooths data with ready made labview curves fitting VIs. So I want operator could use them seamless, that means calling labview from VBA 2007 code collecting X,Y data into a 2 D array, then send it to labview DLL smooth the curves and send back an array with smoothed data to excel through VBA.
    My concern is how to declare 2D array parameters in VBA  and in Labview in order to work fine (array of variants or doubles, parameters declared by ref or by val)
    I have seen similar topics in NI forum but they dealt with VB.net and not VBA .
    I run office 2007 and labview 2009 full dev. system with application builder.
    Regards

    bassevellois wrote:
    Thank you for the answers.
    The examples provided with labview for ActiveX exchanges are not very clear. I want to use labview as ActiveX server and Excel through VBA as client.
    There's only one example that I know of that ships with LabVIEW and it shows how to access LabVIEW from VB using LabVIEW's ActiveX server. It opens a VI and runs it. Doing it from VBA is very similar. You want to add the reference to the ActiveX Server in your VBA project. If you're controlling the LabVIEW development environment directly, then the library to include in your list of references will be "LabVIEW x.x Type Library". If you are controlling a LabVIEW-build app, then the library name will be whatever you specified when you built the app. 
    I have no idea of creating and exposing classes, methods or properties needed in VBA from my Labview VI which was at the beginning a standalone application.
    I don't quite understand what you are referring to. The ActiveX Server in LabVIEW and a LabVIEW-built app are pre-defined. You do not export anything from your LabVIEW VI. The available properties and methods are a function of the LabVIEW ActiveX Server, not of your VI. If you are building an app then you just need to enable the ActiveX server for the application, and that's done in the build specification. 
    How to reproduce my example:
    Make sure you've enabled the ActiveX Server in LabVIEW. 
    Download the attached 2D_VBA_Test VI to your C:\Temp folder. You can save it anywhere, but you'd have to change the path in the Excel VBA macro.
    Download the attached Excel workbook.
    Open the workbook and click the button. If LabVIEW is not running it should launch LabVIEW, and open the VI and populate the front panel array with the values from the spreadsheet. 
    Attachments:
    2D_VBA_Test.vi ‏6 KB
    VBA to Excel.xls ‏24 KB

  • Relations between Matlab structures and LabVIEW clusters

    I have a DLL created with Mathworks COM Builder, used as an ActiveX component in LabVIEW. Thus, I am able to have my Matlab functions inside LabVIEW. However, I have a problem regarding the pass of parameters between Matlab and LabVIEW.
    When the Matlab functions parameters are simple -DBL, DBL arrays, strings-, there is no problem. LabVIEW does the right translation. But I have not been able to pass a Matlab structure to LabVIEW, which counterpart I think it would have to be a cluster. To solve this situation I need to split the structure components and pass them separately.
    Does anyone know how to do it without the workaround?
    Thanks in advance and have a good day,
    spj

    Hello Tishu,
    1)       Can we use nested for loop in Mathscript node?
    1) Yes you can. Remember that loops should be avoided as much as possible in m-scrips. Most of the times you can use vectorization to represent same task.
    2)       Which one of these is feasible: 1) Matlab script node
                                                              2) Mathscript node
    2) What exactly is the "Feasable" question? Real time (see below) or nested loops (see above)
          3)  Is there any other way to interface between matlab and LV for real time signal processing?
    3) Real time is different depending the application. Some applications need ns or ps real time (RF appls) others need seconds delay. Real time means "determinism". That a task will execute in a know time with little jitter. Windows is not a real time OS therefore nothing in it will operate in real time. Can you tell us something about the signal your are processing (Audio, Image fps, Radar)?
          4)  Suppose X is 1D array (DBL) in Labview. And Mathscript code is as below:
    For i=1:inf,  4) Is this vector a valid one? inf = Inf which is different from 1/eps.
    Y= X-1;
    end
    Here X is input and Y is output.
    Such code does not produce output (Y variable) in real time processing.
    Does it wait till the FOR LOOP ends?  Is there any solution to such problem? 5) What is this suppose to produce?
    Let me know,
    yardov
    Gerardo O.
    RF Systems Engineering
    National Instruments

  • Interface between C++ and labview

    I have decided a project that consists of C++ and Labview. C++ is used
    as the input to labview. However, i don't know how to use C++ to
    control the labview. Can C++ control the labview directly? and how ?
    or I have to buy another program or hardware to be interface?
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    ActiveX and TCP/IP are both good choices for high-level communication
    between Windows applications. LabVIEW's VI Server, introduced in version
    5.0, gives you tremendous power to control LabVIEW programmatically and
    exposes it to the programmer via either ActiveX or TCP/IP.
    For a very nice example that shows how to call a LabVIEW VI with arguments
    passed from the C++ environment, then bring the resulting data from
    LabVIEW back to C++, check out the following example from NI's site:
    http://digital.natinst.com/explprog.nsf/websearch/6960cee3bf3d8c30862565da0078ef30?OpenDocument
    If the URL doesn't work for you, just go to NI's Example Programs Database
    (http://www.natinst.com/support/epd/) and search for "labview and c++".
    Regards,
    John Lum
    National Instruments
    Matthew
    Ho wrote:
    > I have decided a project that consists of C++ and Labview. C++ is used
    > as the input to labview. However, i don't know how to use C++ to
    > control the labview. Can C++ control the labview directly? and how ?
    > or I have to buy another program or hardware to be interface?
    >
    > Sent via Deja.com http://www.deja.com/
    > Share what you know. Learn what you don't.

  • Euresys Picolo image acquisition and LabVIEW

    Hi all,
    Unfortunately I have bee asked to use a Euresys piccolo image acquisition card in LabVIEW. I my case I only need to display the image on / on top of a LabVIEW front panel. Yes – I know it would have been much better to use an NI card but sometimes other people........
    Anyway my question is - has anyone out there managed a reliable interface to the piccolo dll yet? I’ve been looking at the ActiveX interface but it looks like an exceptionally tricky job. I see there are few previous discussions that will be of help should I have to start from a blank VI.
    Any advice appreciated,
    -Martin
    Certified LabVIEW Architect

    Hi Martin
    I have had a look for you this afternoon to see if I can find an example for you as to how to communicate to you Euresys frame grabber in LabVIEW but an example or driver is not available. It should though be possible to comunicate with your board using the manufacturers dll. You mentioned that you were aware of other forum posts that will be helpful in you starting to develope you code but I thought it might be helpfull to post some links below.
    Forum posts:
    Is it possible to use Euresys Picolo card with IMAQ vision and LabView?
    activex help!!!
    calling picolo.dll in Labview
    Other Resources
    Using External Code in LAbVIEW
    Integrating External Code with the Import Shared Library Wizard
    I hope this helps

  • Problems with activeX and native

    Hello SDN Community,
    i use NW04S SP11, NWDS 7.0.11 and Adobe LifecycleDesigner 7.1.
    I want to generate an Interactive Form with WebDynpro for Java only for Printing and Saving. Also I don't want to display the document in the browser so I set the displayType to activeX, because this isn't possible with native (ZCI). I have also installed the Active Component Framework. But when I deploy the application with activeX and start the application the Form is not displayed and the AcroRd32.exe runs with 98% in the TaskManager. When I deploy the Application with displayType native, the document is displayed but I can't save and open the document (Adobe Reader 8.0.0).
    I hope that anybody can help me. It's very urgent.
    Thanks
    Stefan

    Hello Tweety,
    I've installed the software for the IRtrans module. Unfortunately, I can't start a server, because for this I have to connect this module.
    If You can select the methods of the IRtrans objects in LabVIEW, the activex connection should be OK. Make sure, that You use the right parameters and the right data types.
    Here is a link to the software, I've installed. Do You have the same Version?
    http://www.irtrans.de/de/download/windows.php
    Klaus

  • ActiveX and Netmeeting

    I 'd like to call Netmeeting with Labview and to use it without making it appear directly on the screen. The sound works 5 sec and then Netmeeting shut down. Why is that so? Moreover I do not succeed in extracting the video. I don't care about the other fonctionnalities (file transfer, white board,...). Could somebody give me some advices? Thanks in advance
    Attachments:
    ActiveX.vi ‏16 KB

    Hy Vincent,
    I'm actually using Netmeeting 3.01 and Labview 6i.
    I made a new VI that is now working. I mean that the sound works but I don't know how to extract the video and to make it appear on my VI without showing the Netmeeting front panel.
    My testing is performed as follow: Netmeeting should be launched on a remote PC. Then I run my VI on my PC and I'd like to start a video-conference (sound+video) like that between my own and the remote computer.
    Thank you for helping me.
    Regards,
    Arnaud
    Attachments:
    Netmeeting_Son.vi ‏44 KB

  • Error involving Report Generation Toolkit and Labview Run Time Engine

    Developed an application using LabVIEW 6.1 and LabVIEW Report Generation Toolkit for Microsoft Office 1.0.1. From there, tried to build a shared application for use with the LabVIEW Run Time Engine. The Run Time version functions properly until "New Report.vi" is called and then an error is generated, code 7, calling out "Open VI Reference in New Report.vi" could not be found. When building the application, I did include the "NI Reports Support" in the advanced installer options. The machine used for original development and application build is running Windows XP Pro and Office XP. Any suggestions??

    I am having the exact same problem but with LV 6.1 and M/S WORD 2000. It appears that the "New Report.vi" is trying to open "C:\APP.DIR\Word_Open.vi" and "C:\APP.Dir\Word_Open_Document.vi" by reference. The "OFFICE 2000.TXT" says that "_exclsub.llb and _wordsub.llb must be added as support files when building an application or a dynamic link library with the application builder." I added them as Support Files and I copied them to the "C:\TESTER\" where the TESTER.EXE is and I still get ERROR 7 in "NEW REPORT.VI" at VI OPEN REFERENCE.
    Do I need to make a "C:\TESTER\DATA\" sub-dir and put the support files there?
    I am building on MY COMPUTER on F: Drive on a network and transporting files to the real Tester.
    I displayed my App.Property of APP.DI
    R at start up and it is C:\TESTER\ ! How would my application know that "Word_Open.vi" and "Word_Open_Document.vi" are actually inside the _wordsub.llb?
    Any ideas ?
    Greg Klocek

  • Communication problem with FP-2000 and Labview 7.1

    I am using the FP-2000, DO-403 and TC-120 modules with Labview 7.1, being run on a host computer via an ethernet connection.  The setup has operated flawlessly for ~2 years; recently, I have noticed that while a VI is running on my PC, connection to the FP module ceases.  There is no pop-up "connection error" in my VI, and the all the power and status LEDs on the FP modules are normal.  I can still interact with the VI on the front panel while it is running, but nothing is passed to the FP module.  I have tried communicating with MAX when this occurs and receive a "no connection" message.  Is there a simple solution here, such as rebooting the FP module?  Or is it time to invest in new hardware?
    Justin

    I am having a very similar problem with my cFP-1804 and Labview 7.0.  I have no problem initiating communication over ethernet, and the vi will run perfectly for hours or even days.  Inevitably, however, at some point there is no longer communication with the cFP-1804.  Data is no longer being passed either to or from the cFP-1804, and MAX will show that the device is not connected.  I also will not see any pop-up error message that says the connection has been lost, either from Windows or from Labview.  The vi will just continue to run as if nothing has happened.  Turning the power to the cFP-1804 off and then on will always resolve this problem.  Since I am using the cFP-1804 primarily for data logging, however, this behavior is particularly problematic as the system will record nothing but zeroes until I discover that the communication has been severed and perform the manual power cycling.
    I have been unable thus far to determine the cause of this problem.  Any help would be greatly appreciated.
    Thanks,
    Derrick

  • I have a problem with simulation in Matlab 6.5 and LabVIEW for PID controllers

    I have a problem with simulation in Matlab 6.5 and LabVIEW. I have some methods for granting PID controllers in MATLAB to go but not LabVIEW. International Teams degree to transfer two but when I go past the fourth degree no longer work. We changed the formula for calculating the parameters for grade four and gave me some good values for Matlab award but when I put on LabVIEW have not settled. formulas are available in PDF and are. Please help me and me someone if possible. Thanks
    lim.4 generation parameters in MATLAB program and comparison methods are for second-degree transfer function.
    Solved!
    Go to Solution.
    Attachments:
    Pt net.zip ‏2183 KB

    This is the VIs what i try to make,but is not work. This pdf. document was used to create last VIs PID. thenk you for your colaboration.
    Attachments:
    PID create by me.vi ‏312 KB
    tut_3782.pdf ‏75 KB

  • Google Earth Plugin and LabVIEW: High CPU usage when adding placemarks

    Hi,
    I posted this question on stackoverflow earlier this week but feel it might be better suited to the LabVIEW community specifically so I'm reposting here:
    I'm writing an application which uses the Google Earth Plugin to display events on the globe. Each event is a single point kml placemark with an icon which is a 3kb png file. Placemarks are uploaded to the plugin as they are received by the software. I am experiencing increasing CPU usage with the number of placemarks that are added.
    I have tested displaying a new placemark every second and running until the software running the plugin completely froze (graph attached). The GEPlugin (green trace) stopped responding (i.e. the globe did not respond to the mouse) at around 1200 placemarks added and CPU usage was at ~30%. When the software itself (red trace) froze the plugin was using around 50% CPU and ~3700 placemarks had been added). After the freeze, no new placemarks were added which caused the software to respond (but not the plugin) so I could clear all the placemarks. After the placemarks were cleared from the globe, the CPU usage of the plugin returned to around 5% CPU.
    So what I've seen is that GEPlugin CPU usage increases linearly with each kml placemark added. Is this the expected behaviour/ a normal limitation of the plugin? If not is there a more efficient way of adding many placemarks to the globe?
    I am using GEPlugin version 7.1.1.1580 (API version 1.010) and LabVIEW 12.0f3
    Please see the test results attached. Any input greatly appreciated!
    Original stackoverflow post:
    http://stackoverflow.com/questions/20994323/google-earth-plugin-with-labview-high-cpu-usage-when-add...
    Attachments:
    Performance Log 020114_095115.png ‏82 KB

    Hello,
    I have had a look at your graphs and understood what you are trying to do. To me it seems that as the image gets more complex it gets harde to render which wold likely cause increase in CPU usage resulting in the freeze. I would suggest you try running the program on anoher computer to check on the RAM front of things. If this is a limitation of the GE Plugin then unfortunately I can not do much to help, but if you think this is a problem coming from your LabVIEW code then you can post your code here and I can take a look.

Maybe you are looking for

  • When i try to send a message to more than 1 person it tries to go out and comes up in the blue box but is not delivered?

    When I try to send a message to more than one person it tries to go out and comes up in the blue box but is not delivered. I phone 4s?

  • Layer Naming in Adobe Draw

    Why can't you tap and hold to rename a layer in Adobe Draw? Why have names on layers at all if all the layers are the same name? You know people want layers, you support them when you use "Send to Illustrator" but you don't give the user the ability

  • User defined variables

    Hi all, I am using the variable L3 in my code for channle assignment. In line number 18 it gives error ch(0): INvalid channel or vector matrix. I have the channels loaded in my data portal and defined user variables as : F <" "> and linked user

  • Can't start OAS ORB processes

    Hello, I have OAS 4.0.7 installed on standalone NT 4.0 (SP3) machine and the machine DOES NOT have a network card. I use the Microsoft loopback adapter and TCP protocol. I can connect to http://my_machine_name:8888/. When I clicked the OAS Manager ic

  • Web cam wont start message says in use by another application

    Hello I have recently purchased the Creative LIve!Cam Optia and for some reason the person I am talking to can't see me but I can see them just fine. Every time I go to call someone on Skype I plug in my camera and when the person answers a message p