Call other exe in labview

Hi all
how to call an exe created in vc++ in labview...

You can use system Exec function from Connectivity-->Libraries and Executables Palette. You can call your exe, the same way you invoke it from command prompt.
Thanks 

Similar Messages

  • Class to call other exe

    hello!
    can i create a java program that can call other .exe file???
    how????
    thanks.

    Try this:
    Runtime.getRuntime().exec("rundll32
    url.dll,FileProtocolHandler " filename);Worked very well for me. It's like double-clicking a
    file in explorer. Don't know if it works with an exe
    though...try it ;-)I wouldn't recommend that way. If you're trying to "run" a ".doc" file - that isn't a process. A process is a .exe file, such as Word.exe (or whatever MS Word's application executable is). Let the shell handle it:
    Runtime.getRuntime().exec("cmd.exe /C start " + filename);
    where filename is a path to a .doc file, for example.
    And no, there's no way from pure Java to automate the child process such as making it insert text. You'd need to program against COM (Microsoft's Component Object Model) to do that, which you can do with a 3rd-party Java-to-COM bridge (search the net for "Java COM bridge" for starters). And you'd have to know Word's COM API.

  • Pda execute other exe from Labview

    I'm looking for ways to execute an exe from Labview PDA that is stored on the PDA (another PDA application)... I'm running WM5.0 ... .any ideas ...
    Greycat

    Hey Greycat.
    That is a great question!  So as you noticed there is no equivalent to System Exec in LabVIEW PDA, so you cannot launch an application that way.  I would think that there would be a DLL that could be called on the PDA that will allow you to launch applications.  However, after several Google searches I was not able to come up with any specific code or DLLs.  Once you found that DLL hoewever, you shouldn't have problems launch an EXE.  I am assuming that these are not other LabVIEW PDA built EXEs, which is a shame since you might be able to open a VI reference to that VI. 
    Andy F.
    Message Edited by Andy F. on 04-25-2006 06:52 PM
    National Instruments

  • "call other GUI(not labview GUI) in labview"

    HI
    I have developed a labview program for controlling a set of hardwares.  one of my hardwares have a windows based program itself(independent of labview) that contains a GUI that enable me to control the hardware.now i want to know if is it possible for me to call that GUI in my labview program and  show that in my labview GUI. i dont want to use of labview call library function.
    regards

    You can do that if your GUI supports ActiveX. Learn more here.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=358104&query.id=1450806#M358104

  • How to call Exe from labview?

    Hello NI,
                        I want to call the exe from the labview.  presently i am using command.vi to open the exe. but it works only with source code. after creating the exe it doesnt work.
    I checked the path of exe.
    do you have any solution for this?  
    Regards,
    Balaji DP

    Working directory should be c:\windows\system32
    copy your winword.exe into that system32 folder and just try this
    Message Edited by mathan on 01-06-2009 03:24 AM
    Attachments:
    untitled.PNG ‏3 KB

  • Create Labview application to call other installers

    I am trying to create a labview application using LabView 7.0 so that it can call several other installation applications sequentially.

    Hi jgv,
    and where is your problem?
    You can call other apps by using SystemExec...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to launch an exe from LabVIEW VI

    Hi,
    I have made a few programs using LabVIEW and generated executables for each of these programs. I wish to generated a single launch program for these executables -- launch this wrapper program, select the (program) executable which you want to run and then finally run the executable.
    If this possible to do that using LabVIEW? How should this be done?
    Best Regards,
    Harpreet

    I would much rather call a subvi than call an exe.  But there might be a reason for using exe's instead of subvi's.  Anyway, create a loop with an event structure with an event case for each button.  In each event case, run the proper exe with SystemExec.
    - tbob
    Inventor of the WORM Global

  • Find names of all open windows including other applications besides LabView VIs

    Hi All, I have researched this subject, i.e., to find names of all open windows including other applications besides LabView VIs, but found no solution. Could someone suggest a solution to this?  Thanks.

    Hi,
    Certainly! The Windows API Function Utilities (32-bit) for LabVIEW includes set of LabVIEW libraries (llb) with VIs that make calls to the Windows Application Programming Interface (API) for managing and controlling windows (minimize, maximize, move, resize, rename, close, and so on) including task list with names of windows application running. The Readme.doc contains information on running these VIs.
    Attached below is a zipped file with a VI that list the names of all opened windows.
    Tunde
    Message Edited by Tunde A on 04-18-2007 02:28 PM
    Attachments:
    List Windows Application LV8.0.zip ‏55 KB

  • Error while calling pscp.exe through a batch file which is called in SSIS Execute Process Task

    Hi,
    I am using Windows Server 2012 R2 Standard, SSIS 2012. I am trying to copy files from a remote location by calling pscp.exe through a batch file (FileCopy.bat at location M:\bin\) which is referenced in a SSIS Execute Process Task. My batch file content
    is,
    ECHO OFF
    echo. >> M:\Prod\bin\SourceFile_FileLog.txt
    echo %date% - %time% - Copy Start (XYZ_a201211155952avx0_69999.NOR.gz) >> M:\Prod\bin\SourceFile_FileLog.txt
    M:\ProdFiles\bin\pscp.exe -unsafe -scp -pw aaaaa myuser@sourceserver:/ABC_data/*.NOR.gz M:\Prod\FromMediation\
    echo %date% - %time% - Copy Complete >> M:\Prod\bin\SourceFile_FileLog.txt
    The error I am getting is 
    [Execute Process Task] Error: In Executing "M:\bin\FileCopy.bat" "" at "", The process exit code was "1" while the expected was "0".
    Exactly same setup but using Windows Server 2003 R2 Enterprise and SSIS 2005, this works fine and copies the files successfully.
    Please provide some guidance on this.
    Thank you!
    'In Persuit of Happiness' and ..... learning SQL.

    Hi,
    This is what I am getting while running the batch file from command prompt
    M:\bin\mttrb1>CDR_FileCopy
    M:\bin\mttrb1>ECHO OFF
    The system cannot find the path specified.
    The system cannot find the path specified.
    scp: M:\Prod\FromMediation\: Cannot create file
    scp: M:\Prod\FromMediation\: Cannot create file
    scp: M:\Prod\FromMediation\: Cannot create file
    The system cannot find the path specified.
    'In Persuit of Happiness' and ..... learning SQL.

  • Application crashes when calling DLL built with LabVIEW 2011

    Hello everybody,
    Our application calls DLLs built with LabVIEW 2010 SP1. We installed LabVIEW 2011 and built some DLLs. So far so good. If we start our application and run 2010 DLLs it still works fine. If we run a 2011 DLL just once no error happens, but if we try to run the same 2011 DLL our application crashes reporting the error below. I saved the code for 2010 version and built a DLL and it works fine. Does anyone know why?
    Thank you in advance.
    #Date: Fr, 16. Sep 2011 16:25:25
    #OSName: Microsoft Windows XP Service Pack 3
    #OSVers: 5.1
    #OSBuild: 2600
    #AppName: PasTA
    #Version: 11.0f2 32-bit
    #AppKind: AppLib
    #LabVIEW Base Address: 0x30000000
    16.09.2011 16:25:26.181
    Crash 0x0: Crash caught by NIER
    File Unknown(0) : Crash: Crash caught by NIER
    minidump id: 8a779b3f-51d7-4864-8e4d-6ab0195cd158
    ExceptionCode: 0xC0000005
    N
    0x3072C804 - lvrt <unknown> + 0
    0x3072CBB8 - lvrt <unknown> + 0
    0x7C864191 - KERNEL32 <unknown> + 0
    0x7C83AB50 - KERNEL32 <unknown> + 0
    0x00000000 - PasTA <unknown> + 0
    Attachments:
    error.PNG ‏11 KB

    On that note, you should be able to create DLLs in 2010 and run them with 2011, correct??  In my case, I have a 2010 built DLL (talking to sbRIO), most of the functions work when run in 2011, but a couple of them lock up LabVIEW on the desktop (but not the sbRIO), no lock ups happen with 2010 on the desktop.

  • How to call a exe or bat file from java program

    hi,
    i actually want to know that how to call a exe or bat file from program so that i can run them parallely.

    Try this :
    String strCmd = "myFile.bat";
    try
         Runtime rTime = Runtime.getRuntime();
         Process process = rTime.exec(strCmd);
         InputStream p_in = process.getInputStream();
         OutputStream p_out = process.getOutputStream();
         InputStream p_err = process.getErrorStream();
         p_in.close();
         p_out.close();
         p_err.close();
    catch(Exception e) {
         throw new Exception("Unable to start, "+strCmd);
    }

  • How to send a command from a vc++.exe to LABVIEW.exe in order to control the button on the LABVIEW.exe

    Hello, everyone. Using VC++, I have gotten the handle of a *.exe(built by Labview), but I cannot get the button handle. I want to get the button handle and post the message to control the button. How can I do that? When I use the SPY++, the *.exe(built by Labview) have not any child windows which is very different from the *.exe(built by VC++). In SPY++, what is the LVDChild class? How can I send the message to control the button on *.exe(built by Labview)???
    That is  to send a command from a vc++.exe to LABVIEW.exe in order to control the button on the LABVIEW.exe. How can I get it ?
    Thank you!

    hummingbird wrote:
    Thank you! But I dont kown how to use vi server to raise a value signalling event. Can we put vi server into the vc program? Can you give me some more information or some examples, hehe!
    hummingbird
    Checkout the LabVIEW ActiveX server interface in the User Manual in Chapter 20, Windows Connectivity and the VI Server Reference in Chapter 17, Programmatically Controlling VIs.
    There is a sample for Visual Basic under examples/comm/VBtoLV.frm, which should be quite simple to translate to Visual C as long as you can figure out the basics of ActiveX programming in VC (I have never done anything with ActiveX in VC). For those basics I would recommend some text book or MSDN.
    Rolf Kalbermatter 
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Calling an exe using web.show_document

    hi all,
    I want to call acrobat.exe using web.show_document.
    The exe is in my local system.
    Client_host('C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe c:\sql.pdf');
    I want to replace this with web.show_document
    How can i achieve this??
    thx in advance
    -swami

    Hello,
    Try something like this:
    Web.Show_Document('file:///c:\sql.pdf', '_blank');Francois

  • Can I call a built in LabVIEW function remotely?

    I would like to call a bunch of LabVIEW's built in GPIB functions on a
    remote computer to talk to a device attached to that computer. I was
    able to do this using VI server and by wrapping the GPIB function in a
    custom vi (this vi was just GPIB Write with controls and indicators)
    Is there a way to avoid making a "wrapper" VI for built in functions
    such as GPIB Write? i.e Open a VI reference to built-in LabVIEW
    functions remotely using VI server?
    Thanks,
    Brian
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    That is one of the built-in functions and not a stand-alone VI and the best way to call it is to create a VI with it on the block diagram.

  • I am trying to call a function with LABVIEW developed in CCS compiler

    I used MPLAB (CCS compiler) to develop c code that is used to transmit and receive messages to and from an automotive display. It works great as a stand alone. I would like to call this function from LABVIEW but am having difficulty doing so. Does anyone have experience calling a MPLAB developed project from LABVIEW? Thanks in advance.
    Matt

    PTE wrote:
    I used MPLAB (CCS compiler) to develop c code that is used to transmit and receive messages to and from an automotive display. It works great as a stand alone. I would like to call this function from LABVIEW but am having difficulty doing so. Does anyone have experience calling a MPLAB developed project from LABVIEW? Thanks in advance.
    Matt
    MPLab is for programming PICs if I'm not mistaken. I'm not sure how you would want to call a function compiled in MPLab from LabVIEW directly. MPLab will create binary code for execution on PICs and there is no LabVIEW that could run on a PIC. On the other hand I didn't think you could create standard Windows DLLs, Mac shared libraries or similar in MPLab at all.
    You will have to recompile your code in a C compiler that can create the standard shared library format for the plaform you want to call it from LabVIEW.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Can you help me with a Cost problem in an Order?

    Hello SAP experts, i have a question regarding orders and their costs if i go inside an order and i go to the menu then ->Goto->Costs->Analisys-> and then choose the layout ->Target/Actual Comparison, in this layout there is a column that says Total

  • Add does not run with sql server 2008

    Hi all, My add on in the development environment does not run with SQL SERVER 2008. It ran well with SQL Server 2005 and sap b1 2207 B. On executing the project file system throws an error "YOU ARE NOT CONNECTED TO THE COMPANY" we are trying this sce

  • How to activate a set of BEx queries.

    Hello everybody! Is there any functionality to activate a set of BEx queries, e.g. something for queries like RSDG_IOBJ_ACTIVATE for info-objects?

  • Unreverse a reverse document (or voided check that was cashed)

    The company reversed a payment document but did not void the check. The check was later cashed by the vendor. The company subsequently mark the check as voided but the check has already the bank. What to do now? The best solution is to unreverse the

  • What triggers long exposure 15fps mode for color?

    Hi, As most of us are aware the color stream automatically switches to 15fps long exposure mode when it detects low light situations. No this is not a thread to complain about the sensitivity of it (although some control would be very welcome), but I