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

Similar Messages

  • 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

  • How to call another program from LabVIEW?

    Hi!
    Is there anyone that can answer my question? I have found a similar thread where the user needed to call labVIEW from some program but I want to do the opposite.
    I made a program in labVIEW that communicates via COM-ports (serial communication) with the processor I use at the job (Ubicom´s IP2022).
    Now I want to add more funcionality to this program. I want to be able to program re-program IP2022 through this LabVIEW application.
    The programming is done via an Ethernet-dongle. I start a program called IP2kProg, I write the ip-address of the dongle and the program-file (.elf) downloads at this address. But how can I do this from
    LabVIEW, do I need to open IP2kProg or can I send some values to it via LabViEW?
    Ant suggestions?
    Thanks, Amir

    Amir,
    There are couple of options:
    1.  If your IP2kProg program has a command-line interface, you can use LabVIEW's System Exec.vi and send the commands and parameters to it. 
    2.  If the IP2kProg has an API / exported functions, you can call them from LabVIEW using the Call Library Function Node. 
    Hope this gives you some ideas. 
    -Khalid

  • Hello, sombody knows how to start MS Excel from LabView (version 8.2)? Thanks

    Hello, sombody knows how to start MS Excel from LabView (version 8.2)? Thank you in advance.
    Regards Robert

    In the example finder  ">Help>Find Examples >>search for Excel", you'll find a sample program called "ActiveX Event Callback for Excel".
    It opens the Excel Application..  You can build on this to open/create new worksheet(s), etc.
    RayR
    Message Edited by JoeLabView on 06-20-2007 08:21 AM
    Attachments:
    OpenExcel.PNG ‏34 KB

  • How to terminate an exe from Java

    Hi Everyone
    Can anyone let me know the code to how to terminate an exe from Java
    I run an exe using
    Runtime.getRuntime().exec(dialog); //where dialog is a string (pointing to an exe)
    Now i need to kill this exe
    How do i do this in java
    Any help is highly appreciated
    Thanks!

    getafix14 wrote:
    I run an exe using Runtime.getRuntime().exec(dialog); //where dialog is a string (pointing to an exe)
    Now i need to kill this exe
    How do i do this in java
    ejp wrote:
    Process.destroy();
    And don't forget to take a swig of magic potion first.
    Winston

  • 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

  • How to disable update.exe from auto launching to install Firefox 4.0

    I do not wish to install FF 4.0 until Norton has release patch for it. So how do I stop it from the update.exe from pop up each time d > I start FF? All ready tried Tool > Options > Advanced >Update and unchecked Firefox.
    Windows 7 64 Firefox 3.6.15
    Thanks

    Ok i solved this, just delete updater.exe from program files than navigate to %appdata%\local\Mozilla\Firefox\Mozilla Firefox\updates rename the folder "0" to anything other than 0. and your all good.

  • Launching a .exe from Applet

    Can anyone tell me if it is possible to launch an executable file (.exe) from an applet? If so how does one do it?
    Thanks!

    plss go through the limitations of applet. it says a lot of things and a few to mention are......
    1. cannot access files.
    2. can't read from files
    3. can't write to files
    4. can't access databases.
    5. CAN'T RUN OTHER PROGRAMS
    but the above limitation can be overcome by taking a round about way. for eg, we can access file thru applets by establishing a socket connection and opening a stream to the file. we can access database also in may ways.....like writing a policy file for applet or connecting to database thru servlets or by using signed applets.
    for running other programs.......i think......signed applets might help. signed applets are also known as trusted applets. just go throug signed applets and seek help from the signing applets' forum. it's a bit difficult topic but it's all paradise once u mastered the signing of applets. but before learning it , try to know whether u problem can be solved by trusted applets b'cos i'm not sure

  • How to launch an application from java?

    Hi,
    Would anybody please help me this. I need to launch a new desktop application from my java app but I don't know how. For example, when user clicks on a "Edit" button from my java app, my app needs to launch NOTEPAD.EXE to allow user starts editing.
    Thanks a lot.
    Hung.

    try something like this for your button's action method:
            String[] cmd = {"notepad"};
    Runtime rt = Runtime.getRuntime();
            try {
                Process pro = rt.exec(cmd);
                pro.waitFor();  // wait until it's done executing
                System.out.println("Process exit code is: " + pro.exitValue());
            }catch(IOException ioe) {
                System.err.println("IOException -> " + ioe);
            } catch(InterruptedException ie){
                System.err.println("InterruptedException: " + ie);
            }

  • How to launch an application from a website?

    Hi All,
    Can anyone tell me how to launch an application (packaged in a jar) from
    a website?
    I would like to open my application (and pass some arguments) by clicking a special banner or logo
    on a website.
    Regards,
    Stanley

    Google for WebStart and JNLP

  • Control a LabVIEW GUI exe from LabVIEW

    I have a vendor supplied LabVIEW.exe application, it's used to control a device that's part of an automated manufacturing process.   At present we need to manually run the exe from the control PC , read data, make a decision, then input a few values, button clicks etc.   I'd like to automate this step.  Without having the source code for the application, what options do I have for controlling this application from LabVIEW?
    I tried using System Exec.vi, but I got beat when I needed to right-click on a graph indicator to retrieve data.  LabVIEW applications don't accept SHIFT+f10 for right-click.
    What other methods can I use to communicate with this application?

    Dennis_Knutson wrote:
    On the other hand, if the specifications that you provided to the software vendor did not include these requirements, then the vendor would be quite reasonable in asking for additional money to make the changes. You should also have required that the source code be provided.
    Of course, this is true. I was making an assumption, that since the OP has experience in LabVIEW, these sort of things had already been taken into consideration by the buyer.
    Would source code normally be provided when someone purchases an EXE? If there are proprietary pieces in there (algorithms, etc.), I thought it would be more common for the vendor to just provide hooks to the control and data functions.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • How to streaming data/image from labview to a third party software

    Hi, i am working on a research project and stuck on the following problem: I have two cameras and one IMU Sensor unit, all conected to my PC. I save the camera images as avi format and the IMU sensor as TDMS format. I have also another software running on the same PC which i developed using VisualStudio2013.  On this software i alredy implemented a very complex filter to fuse images and IMU.  Now my quesion: would be it possibel to stream the .avi and .tdms from LabView to my software so I can test in real time how my filter is performing? If yes please let me know what LabView function do i have to use. thanks

    Thanks, the hardware are my PC, 2 usb cameras and one usb-IMU sensor. The PC runs w7 with LabView2014. I can read the camera and IMU to my Laview without any problem and save the data on my hard desk. I am also developing another software on VS-C++ for image processing and data fusion. I would like to know what is the best (and fastest) possibility to stream this data (Images and IMU) in real time from LabView to my own software?
    I read a lot in NI-website on how to communicate LabView with a third party software. They are summarized in this link:
    https://decibel.ni.com/content/docs/DOC-9131
    It looks for me that the ‘shard memory’ principle (or File Mapping) is the most convenient method. In VC++ under windows I can easily handle shared memory by calling FileMapping windows functions. Now the question is how can I do that in LabView? I am relatively new in LabView and do not know if it is possible to use shared memory in LabView. For example: is it possible in LabView to buffer both video streams and IMU-data (live) in a shared memory in computer RAM using the windows FileMaping functions (may be using .dll). Then I can access the RAM form my own software and read the stream. Please see the attachment for more description.
    Attachments:
    Unbenannt.PNG ‏139 KB

  • How to make a .exe from form builder?

    Hi,there:
    How can i make a .exe from form builder which can run without form builder?

    Hi,
    You can try to create a batch-file. For instance on WinNT create a CMD file. On Win95/98 create a batch file.
    In that you can use (depending on where you've installed forms/ reports)
    D:\orant\binf50run32.exe <user>/<password>@<database> <startform>.fmx
    Hope this helps

  • How to call VXIplugNplay driver from Labview

    I downloaded a VXIplugNplay driver from Tektronics but I can't find any documentation on how to implement and use from Labview

    JCM,
    If it is a LabVIEW driver, the VIs should be available from the Functions palette in Instrument I/O >> Instrument Drivers. If it is not a LabVIEW driver, this KnowledgeBase describes the process of converting the driver:
    http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a100753500/a2ee1e1fff7fadda86256843005212d2?OpenDocument
    Good Luck
    Spencer S.

  • How to launch an app from Java in Mac OSX?

    I would like to launch another application from my Java code which will run on OS X. Doesn anyone know how to do this? I think it involves the "Runtime.getRuntime.exec()" method, but I'm not sure how to tell it which application to launch.
    Thanks

    I dont know about OSX but i can give you a generalized
    solution. In all OS's there will be a way to get to
    command prompt. It is not really true: MacOS is one noticeable exception! Version 9, like every previous one, was completely extraneous to the notion of "command prompt", because the Macintosh, since its origin to nowadays, has been a "fanatically" User-Centric system: everything is iconic. A side effect of this approach is that MacOS was a pretty hard platform for low-level developers...
    In MacOSX things have dramatically changed: this OS is a powerful Unix-like one, with the beautiful dress that only a Mac can wear: and finally, all you Mac users, here it is: the shell!
    Of course, in MacOSX (and in MacOS "classic" too) there are paths and executable files.
    MacOS1-9 file-system was a very peculiar one: resource fork and data fork for every file, ":" as path components separator (but what "common" user has ever seen a Macintosh path?) and so on.
    MacOSX will use an Unix-like filesystem, I guess (I'm not a Mac user, I like every OS for its beauties - and therefore dislike Microsoft products even if often they give me bread).
    But the key question is: how do I tell the runtime which file it has to execute?
    Fortunately, every modern SO I know adopts a hyerarchical organization of its files. So, indipendently of what is considered the "root" ("C:\", "/" or whatever else), you can "trace" a relative path from your current path (if you use an Unix or URL idiom, "./") and the file you want to reach.
    So, if your java app ("JavaApp.class") is placed in a folder called "MyJavaApp", nested in another folder called "Programs" that you see when you click on the "MacHD" icon, and you can manually launch the Mac app you're interested in clicking on an icon called "MyMacApp Program", placed in a folder called "MyMacApp", nested in another folder called "Programs" that you see when you click on the "MacHD" icon (it's the same folder we said before :-) ), using Unix or URL sintax we have that:
    your java application is at: [...]/MacHD/Programs/MyJavaApp/JavaApp.class
    the Mac application is at:
    [...]/MacHD/Programs/MyMacApp/MyMacApp Program
    The relative path from the former to the latter is, therefore:
    ../MyMacApp/MyMacApp
    where two dots ("..") are the symbol for "parent folder".
    If the situation is similar to above, the code to launch MyMacApp should be something like this:
    import java.io.File;
    File currentDir=new File("");
    //supposing that double dot (..) is the symbol for "parent folder"
    Runtime.getRuntime(
         new File(currentDir,".."
         +File.separator
         +"MyMacApp"
         +File.separator
         +"MyMacApp Program"
         ).getAbsolutePath()
    in a more portable fashion - if you're not sure ".." works
    (? who cares? we're launching a native app :-)) )
    Runtime.getRuntime(
         new File(currentDir.getParent(),
         "MyMacApp"
         +File.separator
         +"MyMacApp Program"
         ).getAbsolutePath()
    );Hope it works... good work!

Maybe you are looking for