Calling labview from external code

hello all,
I m a student and new to labview,i just want to ask that whether i can call VI developed in LAbview form my c++ code?
plz reply,it's urgent.
waititng for replies.
Thanx

9866662680 wrote:
hello all,
I m a student and new to labview,i just want to ask that whether i can call VI developed in LAbview form my c++ code?
plz reply,it's urgent.
waititng for replies.
Thanx
If
you have the Application Builder or the LabVIEW Professional Developer
system you can compile the VI into a DLL and call that DLL as a
standard C DLL from Visual C(++). OTherwise you could call LabVIEW over
Active X and execute the VI through that. There are examples for
calling LabVIEW through Active X in your LabVIEW installation.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Example-- Call RFC from external Java Application

    Update: I need code example to call RFC from External Java application. Can onybody help me?                                                      
    RGDS
    RP
    hi all.
    i want to create my own log for each interface.
    i saw this blog:
    /people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
    my doubt is how to catch the error that i see in SXI_MONITOR y put it in a Sub-Objetc.
    For example: in sxi_monitor i get the error for my interface NMUCustomer: "No receiver could not be found" or "Error Mapping Traformation".
    I created an Object called ZNMUCUSTOMER and a Sub-Objetc called ZERROR.
    what i must do to get the error I see in monitor and assign it to Sub-Object??
    Rgds.
    Message was edited by:
            Rodrigo Pertierra
    Message was edited by:
            Rodrigo Pertierra
    Message was edited by:
            Rodrigo Pertierra

    Hi,
    Oh, you are using ABAP mapping ......
    then use the following in ABAP mapping ..
    TRACE1,TRACE2,TRACE3.... for trace level 1,2,3......
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/866ce290-0201-0010-338f-b8c3553aaa0f
    Regards
    Chilla

  • CVI crashes when calling function from external DLL

    I'm calling a CVI library from Test Stand 4.1.  In that CVI library I load an external DLL (using LoadLibrary) and create a few function pointers (using GetProcAddress).  The DLL loads successfully, and I get addresses for all of the imported functions.  
    However, when I one of the functions is called CVI crashes (Test Stand says it lost the ActiveX connection to CVI) when executing in an external CVI instance.  If executed in the Test Stand process I get a system level exception.
    If I step through the code in CVI, it hangs after trying to step into or over the call to the function pointer from the external DLL.
    I am able to call the functions in a small test project I created in CVI, however when integrating it into an existing test library and calling it through Test Stand it fails.
    Any ideas on how to go about debugging this issue?

    Have you tried calling into the dll that CVI calls directly from TestStand?  I am curious to know if this also crashes.
    I am also curious to know if there are any path references in the dll that is called by the CVI program.  If so are they relative, or absolute paths?
    I ask because one of the possibilities is that relative paths are being used to specify a path from the location of the code that is called, and they are not working because the current working directory is being specified by TestStand, and the paths are not relative to the working directory given by TestStand.
    Jensen
    National Instruments
    Applications Engineer

  • Calling LabVIEW from C# Using ActiveX?

    Hi,
    I try to call LabVIEW VI's from C# using ActiveX/COM, but I am not
    successful. I was able to do this from C++ and there are nice articles on
    the NI site dealing with the C++ integration.
    I tried to follow the instructions of the C# help, using a wrapper for the
    LabVIEW application call. I included the TypeLib that I created with the
    tlbimp-tool in my project. Basically my code looks like this:
    LabView50TypeLib._Application myLV = new
    LabView50TypeLib.ApplicationClass() ;
    LabView50TypeLib.VirtualInstrument myVI = new
    LabView50TypeLib.VirtualInstrument();
    myVI = myLV.GetVIReference(,?,?);
    myVI.SetControlValue();
    myValue= myVI.GetControlValue();
    myLV.Quit();
    I even don't know if the fi
    rst line is correct. I know that the second line
    is not OK, because there is no class "VirtualInstrument" - but from what
    class should I derive my instance for the VirtualInstrument? And different
    from my C++ implementation, the GetVIReference now needs 3 parameters
    instead of 1 (the path).
    What am I doing wrong? Does anybody have a working example on this?
    Thanks a lot & best regards,
    Martin Schellenberger

    Hello
    After adding a reference to the LabVIEW type lib to the project (I just to o to Project >> Add Reference and I browse for the typelib myself), and including the labview namespace at the top,here is what I tried
    using LabVIEW;
    //form code here
    //Event for button code
    LabVIEW.Application lv = new LabVIEW.ApplicationClass();
    LabVIEW.VirtualInstrument vi= lv.GetVIReference(@"c:\a.vi","",false);
    vi.FPWinOpen=true;
    vi.Run(true);
    So all it does is it opens the VI and runs it, seems to work fine. Hope this helps
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • How to call RFC from external System to get HR Data

    According to the requirement the "HR" Workflow has to be able to view the employee details from external system Using the standard Microsoft connectors.
    So, my job is to create an RFC where i need to fetch the HR data from the infotypes P0001 and P0002. And they will call this RFC by requesting employees surname, ID number and/or Employee number.
    Do i need to simply write OPEN SQL statements in RFC or
    do i need to call any BAPI's?
    Setting up RFC's(Creation of Destinations) is not our job.
    Someone Please help me in this regard with some valuable input. Thanks in Advance.
    Ram.

    Hi Ram,
    to get the information from HR sytem you could call the BAPI
    BAPI_EMPLOYEE_GETDATA
    Regards
    Bernd

  • Can we call webserrvice from javascript code?

    Hi Gurus,
    Can we call webservice in "Javascript" code?
    Any pointers, samples?
    Appreciate your time.
    Thanks

    Hello,
    Yes you can, and we have in OracleAS 10gR3 create javascript for you.
    Take a look to the following:
    1- deploy a Web Services in OracleAS 10g R3 (10.1.3)
    2- go to the test page
    3- Click on the Javascript Stub page
    This utility creates a javascript linbray allowing Ajax calls to SOAP based Web Services:
    - create SOAP request from simple Javascript objects
    - create an XMLHttpRequest object to call synchronously or asynchronously
    - get back the response from and deserialize the SOAP object to Javascript
    Regards
    Tugdual Grall

  • How to call LabVIEW from TestDirector

    Hai to all,
    I want to call LabVIEW function from TestDirector. That TestDirector using VBScript. is it posible? if posible can you give the procedure.
    thanks for advance!
    reddy

    Hello,
    in this case you have to contact Mercury for more informations. There are no experiences in this way from the LV side.
    Regards
    Thomas D.
    NI Germany
    (SRQ 204139)

  • Problem in calling BLT from external system as Web Service

    Hi All,
    I have written a BLT, which basically does some functionality with certain input and gives out some output. Stored the transaction and taken the WSDL from ../WSDLGen/..../TransactionName
    Then using that WSDL in external application (3rd party tool basically does web services call) calling the BLT with the required input.
    BLT also called and sends out the output as expected to external application.
    But the weird happening here, some times it calls some time it not.
    Alternatively calls some times. Goes in to fault.
    Its not working for sequential calls.why is it? Do i need to clear any thing?
    while calling I ahve to close Business Logic Editor? I have done all the things still works occasionally.
    Thanks in advance,
    Murugappan.

    Murugappan,
    Now the version should be 11.5.3 which is available on the  <a href="http://service.sap.com">SAP Service Marketplace</a>.  The URL call should be: http://<ServerName>/Lighthammer/WSDLGen/<Path To Transaction>/<TransactionName>.  The output transaction property has to be of type String, but the string can be XML data.  Please post what the results of your efforts are.
    -Sam

  • Calling LabView from ASP or PHP ?

    Hi;
    I was wondering if someone could help me.
    I need to control a spectrum analyzer remotely.. The VI's are ready, and I would Like to call/Run them from ASP/PHP in order to enable the remote client to interact with the VI's via a normal Web Browser.
    Tips:
    client should be able to send the VI's some data(variables).
    Get the results back and display it on the web page.
    Kind Regards
    K.S.
    Student

    In that case, you might want to check http://www.jeffreytravis.com/. He has a book called "Internet Applications in LabVIEW". The book was written before 6.0 introduced remote panels. There's also an application there available for download called LabVNC that might work for you. I haven't tried it but it sounds like it would do the trick.

  • Calling gotoAndPlay from external AS

    Hello
    I have two files, the regular .fla file and an external .as file.
    Basicly at one point in the .as file I get information of what tag to send the timeline and play and have to use the function gotoAndPlay from the timeline in the .fla file.
    This is the .as file:
            import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.IOErrorEvent;
         import flash.events.MouseEvent;
         import flash.net.URLRequest;
         import flash.net.URLLoader;
         import flash.net.*
         public class MenuDinamico extends Sprite{
            private function montar():void {
            botonMenu.addEventListener(MouseEvent.CLICK, fMenuDinamico);
            function fMenuDinamico(event:MouseEvent):void{
              _level1._root.menuMoverA(event.currentTarget.id);
    I don't know how to redirect to wherever I want in the timeline from the .as file.
    Thanks for the help!

    U need to make some changes in your contructer function to accept the one arguemnt
    For examaple
    Code on main timeline
    var myClass=new MyClass(this)
    Code in class
    import flash.display.MovieClip
    public class MyClass extends Sprite {
    protected var stageRef:MovieClip   
         public function MyClass(mc:MovieClip){
              stageRef=mc
    public function jumpTo(){
              stageRef.gotoAndStop(frameLable)
    Test it

  • Is there any way to call VBscript from java code

    hi all
    i have a question about calling a VBscript from my java code. can we do that in java? if so, any sample i can look at it. thanks in advance.

    it is not the scripting used in the browser. it is
    the scripting that builds VB program used in MS SQL
    server like the bulk loader. i need to call this
    loader to load xml data into the database.So you have a .vbs file that you want to execute?
    Runtime.getRuntime().exec("cmd.exe /C start " + fileName);
    Where fileName = the path to your .vbs file.

  • Calling Labview from VC++

    I'm attempting to call Determinant.vi
    (vi.lib\analysis\7linalg.ilb\Determinant.vi) from
    Visual C++. I've actually gotten the
    Determinant.vi to take a matrix that I pass it
    from Visual C++ and return the determinant to me.
    However, to get the determinant.vi to return an
    answer to VC++, Labview has to be running, and
    Determinant.vi has to be manually opened
    from the Functions palette and placed on the block
    diagram panel. Should determinant.vi have to be
    opened before I can use it from VC++?
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    Sorry for not being able to tell you exactly what you have to do but I have
    used Active X only from inside of LabVIEW and someone still needs to
    convince me that Active X is something more serious than just having a
    few nice demos which work only sometimes. The hassle of distributing
    an application which uses Active X seems overwhelming to me and
    version conflicts are more common than not.
    Do you have an Active X method like Open VI or something like this or
    does GetVIReference allow for a complete path? Check out that the
    path to the VI you want to open is correct. If you just define the name
    LabVIEW won't be able to find the VI as the VI server in LabVIEW
    does not search for VIs. It tries to find a VI with that name first in
    memory and if i
    t isn't there it tries to load a VI from the literal path
    you specify. If both fail you get an error back.
    [email protected] wrote in article <7qj86j$g81$[email protected]>...
    > What I'm asking is does the vi that I'm using have to be manually opened
    > (using LabVIEW), and manually placed in a block diagram window (using
    > LabVIEW) in order to use its functionality from Visual C++? I would
    > think you could do all of this from VC++ without having to load the vi
    > using LabView. My program is designed to start LabView, open the
    > Determinant.vi and begin using it. My program does this, but I get an
    > exception from the GetVIReference call if I have not opened up LabView
    > and the VI that I want to use before running my VC++ program. If I open
    > LabView and the VI that I want to use before I run my VC++ program, then
    > everything works fine. Has anybody else had this problem?
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Calling LabVIEW from DIAdem

    I am trying to run a LabVIEW VI from DIAdem. I looked in the help files but the example seems to only open LabVIEW 7.0 and not open the VI. The process stops on the LabVIEW startup screen. Also I have LabVIEW 7.1 loaded on my machine and would like to be able to select which version of LabVIEW I start with DIAdem. Is any of this possible?
    Thanks in advance.
    AJL

    Hi AJL,
    If your VI happens to be in the LabVIEW directory or subdirectory structure, you can use native functions in DIAdem 9.1 to call that VI from DIAdem. If the VI is further configured to run when opened, it will automatically start:
    IF IsAvailLabVIEW = TRUE THEN
    LVTemplatePath = "examples\DIAdem\File\File Headers\"
    LVTemplateVI = "Binary File Analyzer.vi"
    Call LaunchLabVIEW
    END IF
    Otherwise you will need to create VBScript object variables from the VI server of LabVIEW and execute their methods and set their properties to have the same remote control over the VI as you would from another VI using VI server. The example Tom pointed you to shows this in intricate detail, in the context of a very large application. Here's what VI server looks like in VBScript:
    Dim lvapp, vi, viPath, paramName(0), paramVal(0)
    Set lvapp = CreateObject("LabVIEW.Application")
    viPath = "C:\Favorite LV Menu\Binary File Analyzer.llb\Binary File Analyzer.vi"
    Set vi = lvapp.GetVIReference(viPath)
    vi.FPWinOpen = True
    paramName(0) = "file path"
    paramVal(0) = "C:\DIAdem Hands-On\ReadMe.txt"
    Call WndShow("SHELL", "MINIMIZE")
    Call vi.Call(paramName, paramVal)
    Call lvapp.Quit()
    You can read and write more than one parameter for VIs with multiple input/output terminals. Note that the paramName() and paramVal() variables are VBScript arrays. The number of elements in these arrays does NOT have to match the number of terminals-- all you need to put in these VBScript arrays are the parameters that you care to read/write in the VI.
    Ask if you have additional questions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to refer to a Class linkage set in Library from external code?

    If one uses [Embed] to refer to external graphic assets its easy to instantiate and use them.
    However, I've got a png in an Fla, with the Class identifier set to "Symbols", Base class is BitmapData.
    I need to instantiate it like this:
    var symbols:BitmapData = new Symbols(1, 1);
    addChild(new Bitmap(symbols));
    Of course the compiler complains about a call to a possibly undefined method Symbols.
    For a temporary fix I guess i'll put the graphic external to the swf, but for this project it needs to be in the library along with everything else.

    If you have a symbol in your library with a Class identity of "Symbols" then you should only need to use...
    var symbols:Symbols = new Symbols();
    addChild(symbols);
    As far as the 1,1 argumets go, are those not something you could assign when the instance is created?

  • Call RFC from EJB code

    Hi,
         I have a scenario where I need to write an EJB from where I need to execute a JCO call to an RFC. This RFC takes an XString as input (this is the input file) and returns a XString from which an XML needs to be generated.
    Can anyone suggest how to go about this?
    Thanks,
    Shiladitya

    JRA is the way to go....
    check my blog on this...
    /people/amol.joshi2/blog/2006/11/27/alerts-from-adapter-modules--the-jra-way

Maybe you are looking for