Running an executable (.exe)

Hi
How can i run different executables (.exe) from labVIEW?
One method is through the "system exec" vi. Other can be through the ActiveX (if the software is activex enabled)
Any other method???????????
Somil Gautam
Think Weird

I usually use this vi that calls the shell32.dll.   LV 8.6.1
Just input the path to the program or file you want to open.
Robert Fogg
Certified LabVIEW Architect
Attachments:
Open_File_Program.vi ‏11 KB

Similar Messages

  • Lion (10.7.0): Into Smb share folder I can't run Windows executable (.exe)

    Lion (10.7.0): Into Smb share folder I can't run Windows executable (.exe)
    Window 7 Pro 64 response insufficient privilege.
    Read and Write normal file don't have problem.
    Before in OSX 10.6.8 don't have problem.
    Help
    Alessandro

    Hi,
    the problem is X permission than not replay on smb.
    If manual set ".exe" X permission file run but when rebuild exe with compiler restore only "Read&Write permission"
    Is possible use inheritance on smb (lion)?

  • Pb running an executable (don't initialise correctly)

    Hi all,
    I have a pb trying to run an executable (.exe) with labview.
    At the beginning, i have seen a message saying:
    The entry point of procedure _Z4FormPKcz was not found in the library libCore.dll
    I have seen on the web that for these kind of errors i should copy the library in windows/system32.
    So, i done it but now i have another message saying:
    The application didn't succeed to initialyse correctly(0xc000000022). click on ok to stop it.
    Does somebody know what happens and how to solve it ?
    Thanks in advance.
    Regards,
    Alexis

    Hi Alexum,
    Did your LabVIEW program works well? Only the exe file generates this error message?
    Is your LabVIEW program using any DLL?
    If yes, do you add this DLL as support file when building your application?
    Please see in the link below how to create an executable:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/4e​f810ee05bef63c86256bf30062ec31?OpenDocument
    Can you please send copy screen of error?
    Best Regards,
    Sanaa TAZI
    National Instruments France
    Sanaa T.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> http://www.nidays.fr/images/081110_ban_nidays09_468X60.gif

  • Can I use SubPanels to display and run multiple executables from the same GUI?

    I have two Labview executables that performs some A/D I/O, each using an independent USB-6008.  I would like to run both of these executables from a single UI.  Is this possible usin SubPanels?  Or some other method?
    I found KB regarding exe's and VI Server but can't seem to get the suggested workarounds implemented.
    http://digital.ni.com/public.nsf/allkb/8545726A00272EB0862571DA005B896C?OpenDocument
    I am using Labview2009
    Thanks
    Dan
    Solved!
    Go to Solution.

    DBerry wrote:
    No, of course I am not sure yet.  I have only begun testing this method. 
    Not sharing common hardware (separate USM-6008s).
    Here is the whole picture:
    I have developed a top-level VI that performs Daqmx IO using a single USB-6008.  The top-level VI references a Project Daqmx Task that points to the desired 6008.  I would like to create a single UI that uses this top-level VI to control twoUSB-6008s simultaneously.  I thought I could build the top-level VI into 2 separate exes, where the only difference between the exes is the hardware it points to (one exe to each of the 6008s).  But I have been unsuccessful at running these two exes within a single UI.  I attempted use subpanels on a tab control to do this but I am unable to obtain a reference to the top-level vis once they have been built into an exe.  I have also tried building a dll and exporting the top-level vi from the dll build but i can't seem to get that to work either.  In both of these cases my Open VI reference function returns errors (Error 1445).  I am aware of the changes in referencing VIs from within an exe/dll since LV8.2 - http://digital.ni.com/public.nsf/allkb/8545726A00272EB0862571DA005B896C
    The link seems to suggest that I should be able to obtain a reference to the top-level vi within the dll but I can't get it to work.
    So I then moved on to the above method (making all the subvis reentrant).  I just haven't figured this all out yet.
    If you have suggestions on other problems I may run into please share.  I think I can eliminate my FGs but haven't gotten back to this yet.
    Thanks
    Dan
    When I am designing apps of the type you described I have kept the ned goal in mind from the begining since of the issue you are mentioning. I also don't want to tell you to throw it all away and start over. So with that in mind I have been looking at your posts and only offering the least destrutive ideas first. With that in mind I would like to invite yo uto look at the code i posted in this thread (reply #18 has a zip).
    That code shows how to realize un-dockable GUI regions but it passes the ref of the top level VI to a reentrant VI it instanciate for each undockable region. It may have enough hints and technique to give you some ideas that will work for you.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Missing Sub VI error when running Applicatio​n.exe in development PC

    Hi,
    I have created an application(exe) on my computer, which is also where I have also designed the different blocks of code for this application.
    All the blocks of code work just fine when made to run through Labview 2013 development software. After adding all the VI files associated with the  project in the project explorer of a new project and configuring the build specifications, I was able to create the executable. But, when I try running this executable/application(.exe) file, I get the missing subVI message. I found that some of these missing sub VIs are the Instrument driver VIs which work absolutely fine when run through the LabVIEW development sofware.
    How can I resolve this issue?
    Attachment "Error Screenshot" shows the Missing sub VI message.
    Attachment "Project & Error Screenshot" shows the Missing sub VI message along with the list of dependencies in the project, which shows the error being displayed eventhough the sub VI is present in the dependency list.
    Any comments in this regard are highly appreciated.
    Regards,
    Vivek
    Attachments:
    Error Screenshot.jpg ‏257 KB
    Project & Error Screenshot.jpg ‏360 KB

    vivek.madhavan.13 wrote:
    Thanks for your comment Jeff,
    But what about the 'subBuildXYGraph.vi', 'Waveform Array To Dynamic.vi' and other such VI's in the attached error message that are not a part of the Rohde and Schwarz drivers but are included in the vi.lib folder? Ideally, labview must be able to find/trace atleast these VIs while performing the build procedure, right?
    Vivek
    If they are (Non dynamically called)-dependancies of always included dynamic calls, Yes, the build will include them.
    I hate to say it but,  Start with the rs dynamic vis  and keep adding if that meerely helps reduce the list of the missing vis.
    Jeff

  • I recieve the following error when running an executable ("This VI is not Executable. The full development version of Labview is required to fix the errors"

    I recieve the following error when trying to build and run a labview executable. I am able to build the executable but when trying to run the executable, a pop up window comes up asking the user to select a dll. (please see screen shot attached). Once the DLL is selected, I get the error that This VI is not Executable. The full development version of Labview is required to fix the errors. (please see screen shot attached). I have also attached a snapshot of the project window.
    I have the professional development system
    I can run the main VI
    all the required DLL's are in the dependencies section of the project window.
    I am trying to find the root cause of this error but to no avail. can anyone give me a clue to what i am missing here. Any suggestions on where i should look to find the problem ?
    Thanks in advance to all labview users for your help
    Attachments:
    project window.PNG ‏36 KB

    other PNG
    Attachments:
    Broken Arrow on EXE.PNG ‏179 KB

  • Dynamic Page that uses javascript to run an executable on the client's pc

    I have an .exe file on a shared network that has to be called and executed from portal. The below code works as standalone but not from a dynamic page or an HTML portlet. Any ideas?
    <html>
    <script language="javascript" type="text/javascript">
    function runApp()
    var shell = new ActiveXObject("WScript.shell");
    shell.run('"c:/CstatsWeeklyreport.exe"',1,true);
    </script>
    <body>
    <input type="button" name="button1" value="Run Notepad" onClick="runApp()" >
    </INPUT>
    </body>
    </html>

    Thanks D, but that's not what I'm looking for. That changes which application a file opens with when you download it. That's not what I need for this situation. Here's a little more detail.
    The clients will have an application on their hard drive; it can be any application, even a custom application that they developed themselves. Then, they open a web page with a listbox full of items. Depending on which item they select, a query will return a file path to the .exe file itself. The .exe file resides on the client's hard drive, not on the server. So they're not downloading anything. Depending on the filepath returned by the query, the browser needs to start the process and open the .exe file for them.
    So let's say I have developed a simple text editor called Tedit. I have a file on my hard drive - "C:\TextEditor\bin\debug\TEdit.exe". When they click the open button, that file path is returned from the database. Then the javascript is called to start the process and open that program.
    Again, nothing is getting downloaded, the application resides on the user's hard drive and there is no file to associate it with.
    This can be done in IE using an ActiveX control. And it used to be possible in Firefox using the nsIFile or nsIProcess objects. But since FF15 that's not available anymore, so the javascript throws an error telling them that their permission is denied.
    What I need, is a javascript that will launch the .exe file from the user's hard drive without downloading anything.

  • How to run an external .exe file from an indesign pluging

    Hi,
          Suppose if I have written an separate application in C++ (.exe file) & need to run it from an indesign pluging(as if a service in windows). have you provided that facilities in your SDK? if it's please let me know how to run an external .exe file from a indesign pluging.
    Thanks,

    I'm actully writing data in PMString to a external txt file.
    another question..
    if i want to execute an action when the ok button is cliked how can i do it?
    whe i add a button(widget) i know how to handle it. please see my code.
    // Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).
    CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
    do
    InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
    ASSERT(controlView);
    if(!controlView) {
    break;
    // Get the button ID from the view.
    WidgetID theSelectedWidget = controlView->GetWidgetID();
    if (theChange == kTrueStateMessage)
    //if (theSelectedWidget == kEXTCODGoButtonWidgetID
    switch(theSelectedWidget.Get())
             case kEXTCODGoButtonWidgetID:
      this->ViewOutput();
      break;
             case kEXTCODFindButtonWidgetID:
      this->SaveLog();
      break;
    // TODO: process this
    } while (kFalse);
    I do two actions "SaveLog" & "ViewOutput()" using two buttons. But i dont know how to execute an action when the ok button is clicked...

  • Differences between Debug .exe file and Execute .exe file

    We are very confused by the following problem when we are using
    LabWindows/CVI to develop our application:
    Our program is for retrieving data from real time and process the data to
    get the statistic results. If we run the program using "Run >> Debug
    OurProject.exe", it runs very well. However, if we run this same program
    in
    two steps: first using " Build >> Create Debugable Executable" menu, then
    using " Run >> Execute OurProject.exe", it can not run and outputs very
    different results. How come does this happen? What's the difference between
    these two kinds of running a program? Please help!

    it might be that there are some variables not initialized. the development environment automatically initializes all variables. an executable program does not.

  • Can Labview Executables(.exe) be recompiled to source code(.vi)?

    We have lost some valuable virtual instruments(.vi's) in a hard drive
    crash. We do have copies of the executables(.exe's). Is there  any
    procedure or software available to return them to their original state
    (.vi's)? Please Help.

    Actually the answer is maybe.
    If you only need to call the VIs and not edit them, the following from
    some old info-LabVIEW posts may help you out.  I have never done
    this and I don't know if it works with newer versions of LabVIEW, but
    it may help you out of a bind.  find the whole thread by looking
    in SearchVIEW for "How do I distribute copy-protected Labview applications?"
    I hope that this helps,
    Bob Young
    <quote>
    There are some requirements...
    To load and run an executable in LabVIEW development, it must have been
    built by the same version and platform. Since the VIs have no diagrams, they
    can't be recompiled.
    Only 6.0 (don't know for 6.1... tell us someone) can open EXE's as LLB's.
    However, you can take a 5.1 executable, rename as an LLB, use the 6.0 VI
    Library Manager to copy VIs from this LLB to a new dir or LLB. Then LabVIEW
    5.1 will be able to open and run.
    <snip>
    Jean-Pierre
    <end quote>
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • To run a executable file

    Hi Guys & Gals,
    I need a small help I need to know how to write a java program to run a executable file at a specified time? For example I need to start Editplus at 4.00Pm.

    Hi You can use this program
    For testing purpose, i have calculated scheduled time by adding 1 minute to the current time, see the bold line, you may change this
    import java.util.Date;
    import java.util.Timer;
    import java.util.TimerTask;
    public class ExecuteEXE extends TimerTask {
          * @param args
          public void run() {
                  //TODO generate report
                    //TODO generate report
                     Runtime r=Runtime.getRuntime();
                    Process p=null;
                    System.out.println("Executing ");
                    try
                 String s="c:\\programe files\\editplus\\editplus.exe"; // Change here accodingly
               //     String s="D:\\Timesheet.bat";
                     p=r.exec(s);
                  catch(Exception e){
                    System.out.println("error==="+e.getMessage());
                    e.printStackTrace();
    class MainApplication {
           public static void main(String[] args) {
             Timer timer  = new Timer();
           java.util.GregorianCalendar cal = new java.util.GregorianCalendar();
           cal.setTime(new Date());
              //adding a minute with current time for testing
              cal.add(java.util.GregorianCalendar.MINUTE,1);
              Date newd = cal.getTime();
              System.out.println("Current time "+new Date());
              System.out.println("Scheduled time "+newd);
            timer.schedule(new ExecuteEXE(),newd); // newd is the scheduled time
             System.out.println("Timer Started");
         }

  • Issue with How Do I Run an Executable in the Background ?

    Hi,
    I am trying to run a LabVIEw executable in the background, but none of the methods described in the discussion forum and on ni.com seems to be working. I am using LV 2011 on a Win 7 64-bit machine in case this matters.
    I tried the method described in "How Do I Run an Executable in the Background as a Start-Up Application?" (http://digital.ni.com/public.nsf/websearch/4A8B626​B55B96C248625796000569FA9?opendocument&Submitted&&​... but I still see a fragment of a window at the bottom near the start-button (Exhibit 1). Exhibit 2 shows that it only consists of the title bar. (I have customized the window appearance as described, and added the two items
    HideRootWindow=True
    UseTaskBar=FALSE
    to the *.ini file.)
    I also tried disabling all the other items in the Customize Window Appearance menu with the same result.
    Then I tried the method described in "Running a LabVIEW Executable as a Background Process" (http://digital.ni.com/public.nsf/allkb/EFEAE56A94A​007D586256EF3006E258B) adding the FP.Open method to the VI and setting the state to hidden. I got the same result (Exhibit 1).
    Is there anything I need to do in addition or different for my windows version? I appreciate your help. Thank you.
    Solved!
    Go to Solution.
    Attachments:
    LabVIEW Executable.zip ‏4058 KB

    (I have customized the window appearance as described, and added the two items
    HideRootWindow=True
    UseTaskBar=FALSE
    to the *.ini file.)
    No you did not
    They need to go in the exe's ini so the exe sees them
    Jeff

  • Running an Executable file

    Hi,
    Is there a way, using ALBPM 5.7 StandAlone on Windows, to run an executable file (.exe or .cmd or .vbs) from within an automated task?
    If so, how is it done?
    Thanks in advance.

    Hi,
    Sure, you have to use the Java.Lang.Runtime (which is a java standard component)
    You can check javadocs at: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html
    If you are using Java language style, the code would be something like:
    Java.Lang.Runtime.getRuntime().exec("c:\myExecutableFile.exe");
    Hope this helps,
    Ariel

  • Plugin 1.3.1 sometimes runs under explorer.exe rather than iexplore.exe

    Mates,
    I've written a large application that can also run as a signed applet using the 1.3.1 plugin. It runs beautifully and I'm very happy with the plugin technology. However, I've noticed that for certain users the plugin runs under the shell executable, explorer.exe, instead of the browser executable, iexplore.exe, even though it's started from the browser. When the applet/application is exited, it calls System.exit(0) (not ideal, I know) thereby shutting down the JVM, the plugin, and the executable the plugin is running under. No doubt you can imagine the shock on a user's face when closing my applet caused the shell to crash! This, of course, is happening because Microsoft tried to blur the lines between the browser and the desktop early in the browser wars. I can't figure out how to turn it off!
    Can any of you help with this problem. If you'd like to test it, just run a small applet through explorer.exe by right-clicking on "My Computer", Open, navigate to the applet, etc. It helps if you have qslice from the resource kit open so you can see the threads opening under explorer.exe (or iexplore.exe if you try it from a browser). My system specifics are Windows 2000 sp1 with IE 5.
    Thanks,
    Ziad
    [email protected]

    Hi Ziad,
    Just wondering if you ever found a solution to this problem?
    I am experiencing a similar situation where browser windows are controlled by the same Explorer.exe process (not IExplore.exe) on certain machines. This means that when the browser windows are closed and reopened, the JVM is not reset. Because the machines are up for long periods of time, the JVM eventually runs out of memory and crashes.
    I am trying to find a way of forcing browser windows to be spawned in separate IExplore.exe processes (instead of running under Explorer.exe).
    Help Appreciated,
    Mark

  • By user login items to run UNIX executable file

    Hi all,
    Here is a plobem, I couldn't deal with for some days, please help me and give some advises .
    I want run a shell script when special user login the system, not all users.
    as I know and by test, the below methods are do the same work.
    1. System Preferences > Accounts > Login Items, add application and can run when user login.
    2. Two files: ~/Library/Preferences/com.apple.loginitems.plist or loginwindow.plist, and add useful items  to any of them.
    Because shell script can only open, but not run by "Login Items",  so at first I write a UNIX executable file , which is run the SH, and  gone into the System Preferences > Accounts > Login Items, add the UNIX file below, and set "Hide".
    When the user login the system again, it can auto open the terminal window, and run the UNIX exe file, but when the file end of exe, the terminal still open,
    and can't close. Here I have write command "exit" in the SH file, and the terminal show "the process has ended".
    I want the UNIX exe file  had better run in the backstage, if by terminal , how can make terminal hide?  or by what command can close the terminal ? 
    If it is not a good method,  whether there have any other way to  run the Shell Script flie in the backstage when certain  user login ?
    Here my Mac OS X workstation system is 10.5.8.
    please help me ,thank you .

    OK. My previous answer still holds. You don't need Terminal to run ssh, or AppleScript either, for that matter. What you do need is a process on the remote machine that will accept remote requests to run some appliction. It just so happens that sshd is such a program. I'm not sure about AppleScript. You may need to be logged on so that the Finder is running. I'm no AppleScript expert, so don't quote me. Again, I would just use ssh.

Maybe you are looking for