Loading new labview exe files from a running vi

Hi! Me again
I've been thinking about another way to reset my running application (some data doesn't get reset due to it being in a case structure...(see   http://forums.ni.com/ni/board/message?board.id=170&message.id=145525&requireLogin=False    for details   ).
What I would like to do is to be able to open a simple menu labview exe file, while closing the main file.  This would enable the user to quit labview at the click of a button, or reload the main exe, freshened up , and then the menu closes.  I can get vi's to open and close but an exe file would be supurb, as it can be used from the start, without needing a run button.
I've been fiddling with invoke method : open fp and loading a vi rather than an exe file.  I'm sure it can be done.  Bear in mind I'm a chemist, not a programmer, so some terminology may be lost on me, but examples are not

Hi Fios,
Why don't you just use the system exec.vi, found at All Functions >> communications >> system exec.vi
then you just put the full path to the executable in "command line" and set "Wait until completion?" to False
This will open your LV exe and then you can use VI server as you described in your post.
Regards
JamesC
NIUK

Similar Messages

  • How to run and pass parameters to exe file from the .txt file

    hi,
     i am facing problem with passing parameters to the .exe file which is run by labview.firstly i have  .txt script with parameters which i have to pass to .exe file. This .exe file is also a software and that script is written for it.And now i have to create  programm in labview which should fullfill following points.
      1. I have to use one knob named 'Run script'.If i pressed the knob ,it should open the Browser where i can choose .txt script file.
      2. .exe application should open(Path already chossen).
      3. after passing the parameters .exe application should closed.
      4.And labview now should update his parameter
    I can just open .exe file using Exce.vi but i dont getting any idea to do more than this.can somebody please help me?
    Solved!
    Go to Solution.

    This depends on the exe file. Does it retrieve the information as standard input or does it require the information as command line arguments?
    Depending on this, you can read the txt-file in LV (using the file functions) and pass the content to the System Exec.vi.
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • 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...

  • How to disable .EXE files to be run from Group Policy

    I would like to know how to disable .exe files from GP?
    Thanks in advance

    All exe files icluding calc.exe, notepad.exe and explorer.exe or just some exe files?
    There are different approaches to this.
    If you're trying to block a single executable that you're familiar with you can disable it from a GPO using the setting:
    User Configuration/Administrative Templates/System/Don't run specified Windows applications
    Another option is to specify only the applications you want to allow Using:
    User Configuration/Administrative Templates/System/Run only specified Windows applications
    This one would probably take a lot of work to populate for a system with many applications installed or for a corporate environment.
    None of the two mentioned settings takes into account that a user can name their exe file what they want so renaming mydangerousapp.exe to explorer.exe would make it a perfectly legitimate executable.
    A more robust and managable way of securing your systems by controlling which applications that can be launched is Software Restriction Policies.
    Check this article for an introduction to Software Restriction Policies: http://technet.microsoft.com/en-us/magazine/2008.06.srp.aspx

  • Run EXE File from Developer

    hi all
    i am looking for code to run a program(any EXE File ) from developer Form (Developer 6i)
    thanks a lot

    look at the documentation for the HOST command in Forms.
    Regards
    Grant Ronald
    Forms Product Management

  • Running an exe file from java

    Hi , can anyone tell me how to run an exe file from my java program. the exe is in the same directory as my java files . When i click on a button i want to put something in the actionPerformed() method which will launch the exe file - prog.exe
    Hope someone can help me.
    Thanks Jim

    Hi !
    Look at the RunTime class...

  • How to run exe file from inside java

    I wan to run an exe file from inside java code. How can I do it?
    Thanks

    Hi Oakam
    This is very simple. Just go through the given code below
    in place of FILEANDPATHNAME just give the exe's path and name
    Note :- adding ".exe " is not necessary
    public class exep
    public static void main(String args[])
    Runtime r = Runtime.getRuntime();
    Process p = null;
    try{
    p = r.exec("FILEANDPATHNAME");
    catch(Exception e)
    Give ur feedback
    Thanx
    Ottran

  • Launch EXE file from IC WebClient

    Hi All,
    How can we call .exe file from IC WebClient.
    we want to launch the .exe file from the navigation into application work area.
    any suggestion would be great.
    Thanks,
    Raj.

    Hello Raj,
    The best way to do this would be with the Transaction Launcher. Depending on the version of CRM you are running, you might need to modify the handler class -- as some newer version of CRM seemed to append the http preface to the front of any non-URL file name. Of course, if your EXE program runs as a web application, you could just call the URL.
    Best regards,
    John

  • Aggregator EXE files won't run

    Hi,
    I'm new to using Captivate and I recently created my first Captivate-based lesson. I have 5 discrete learning modules each with their own multiple-choice quiz, so I decided it would be best to make 5 different projects and then stitch them together using Aggregator. I want to publish both an APP file for Mac users and an EXE file for PC folks. The APP file I create in Aggregator runs just fine, but the EXE file won't run. There are no error messages, it just doesn't do anything when you try to run the file.
    Here is what I have tried (without success):
    Both XP and Win 7 (won't run on either)
    Installing newest version of Flash Player
    Running the EXE file as an Admin
    Oddly enough, if I publish each of the 5 projects as an EXE separately, they run just fine. My back-up plan is to make the PC users open each of the 5 modules separately, but I'd prefer to avoid this if I can.
    Am I doing something wrong in Aggregator? It seems pretty simple and the APP file works...
    Thanks for any help!
    Jess

    Hi Rod,
    That was a great idea. Unfortunately, none of the 5 Aggregator EXE files (each with one of the 5 projects missing from it) worked. I double-checked the 5 EXE files that I published individually directly from Captivate (without Aggregator) and all of them work just fine. It's looking like I need to go with plan B and just force my users to return repeatedly to the CD-ROM to open each subsequent module.
    I asked a friend to run the Aggregator-created APP file on his Mac and it wouldn't run for him even though it will run for me on my Mac. So I'm thinking I will need to publish each of the 5 projects as separate APP files as well and the Mac and PC folks will be in the same boat.
    Thanks,
    Jess

  • Restrict .EXE files from being uploaded

    Hi,
    Can we restrict .EXE files from being uploaded to Business Partner Attachments.
    In our project we have a set of extensions that can be uploaded to the Business partner attachments, Can someone explain me how to restrict this.
    Thanks in advance,
    Karunakar.K

    There is technology known as RMS which you could set series of policies like only members in the company could access certain documents and if someone copy them and attempt to run them in another PC or outside company, it won't work. Take a look at:
    http://blogs.technet.com/b/rms/archive/2013/08/29/the-new-microsoft-rms-is-live-in-preview.aspx
    https://technet.microsoft.com/en-us/library/dd277361.aspx

  • Can we load and unload the files in the run time?

    Can we load and unload the files in the run time?
    For example there are four files named "test1.h & test1.c" and another set "test2.h & test2.c" (I attached them as attachment to this post).
    test1.h contains code:
    int variable; //variable declared as integer
    test1.c contains code:
    variable = 1; //variable assigned a value
    test1.h contains code:
    char *variable; //variable declared as string
    test1.c contains code:
    variable = "EXAMPLE"; //variable assigned a string
    So here, in this case can I dynamically load / unload the first & second group of files so that the same variable name "variable" can be used both as integer and string? And if yes, how is that to be done?
    Solved!
    Go to Solution.
    Attachments:
    test.zip ‏1 KB

    What do you mean by "dynamically"?
    If you want to have a variable that either is an int or a char in the same program run, I'm afraid your only option is to define it as a variant and assign from time to time the proper data type in the variant according to some condition. Next, every time you access the variable you must firstly check which data type is stored in it, next access it in the proper way.
    If on the other hand your option or to have a run in which the variable is an int, next you stop the program and in a following run it is a char, you may have it by using some appropriade preprocessor clause:
    #ifdef  CHAR_TYPE
    #include "test1.h";        // variable defined as a char
    #else
    #include "test2.h";        // variable defined as int
    #endif
    Next, every time you want to access the variable you must proceed in the same vay:
    #ifdef  CHAR_TYPE
      variable = "string";
    #else
      variable = 1;
    #endif
    Does it worth the effort?
    Additionally, keep in mind that this "dynamical" approach can work only in the IDE, where you can properly #define your CHAR_TYPE or not depending on your wishes: when you compile the program, it will have only one #include depending on the definition of the macro.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • .exe file from java

    Hi all !!!
    Is it possible to run a *.exe file from java.....
    if yes how??
    if no why not??
    regards
    ad

    Yes. It's possible. One of the Runtime.exec() methods are probably what you want:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    You can't instantiate a Runtime object, so you'll need to call it up by:
    Runtime.getRuntime()
    For example, if you want to run the Calculator in Windows, try:
    Runtime.getRuntime().exec("calc");

  • Reg : Executing .exe file from application server

    Dear Experts,
                        i have a requirement to execute an .exe file from application server,i tried with method CL_GUI_FRONTEND_SERVICES=>EXECUTE but it executes .exe file from presentation server only.can
    anyone kindly clarify to execute .exe file from application server?
    Thanks in advance,
    Sujay

    Hi,
    Did you search before posting?
    Re: Execute a .exe file present in the Application Server
    Vikranth

  • Just bought an ipod touch and it wont sync with itunes. Tried resetting sync history but doesnt work, plus when i try to access itunes preferences it freezes for ages and creates loads of distnoted.exe files?????

    Just bought an ipod touch and it wont sync with itunes. Tried resetting sync history but doesnt work, plus when i try to access itunes preferences it freezes for ages and creates loads of distnoted.exe files?????

    Just realised when reading other peoples problems that it is not actually letting me reset sync history???

  • Where can I download full version of photoshop i.e. iso or exe file from Adobe?

    Where can I download full version of photoshop i.e. iso or exe file from Adobe?
    I am planning to install it on multiple PC and I don't want to download it everytime
    Thanks

    you can only activate your adobe single user license products on (at max) two computers concurrently.
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

Maybe you are looking for

  • T60 Wireless drops out randomly

    Hi, We have several Lenovo T60 Thinkpads in our company. Every now and then the wireless disconnects and users are limited to work locally. As we have all our documents on a server that is very annoying to our users. As far as I could investigate the

  • Function module to monitor Job Status (SM37)

    Is there a function module or a table that I can use to monitor JOB STATUS in BW? Thanks in advance! Cristina.

  • Buying a camera, here's my requirements and my list.. suggestions?

    i'm sorry i've been posting these questions alot.. i just want the right camera for my needs.. i've gone thru alot of these cameras as far as online research.. i thought i almost had it with the hv20 but i didn't.. here's what i need *frame rate manu

  • ITunes- Error 1606

    OKay, so you had me try to download itunes and I did try. When it did start to download it was checking for something on my computer and gave me this error- Error1606: Could not access network location bin. Then when I closed the download is said Err

  • ORA-03113 with pool and stored proc

    We are experiencing a strange error when calling a stored procedure using a connection pool (WLS 5.1 SP10, Oracle 8). Everything works fine until the stored procedure raises a user-defined exception. When the connection is used again, we get the 0311