Run Executable in LV 8.2

I have an executable that was created in LV (8.5 or lower) that does X that was created and sent to me by the manufacturer of the device it controls (via USB).  When I open the executable, I have 1 line of user control by entering a string, but everything else is automated.
What I need is a way to open the executable, change the value of the user input (string), run the program and then exit the executable or leave it open in the background, all from a .vi.  Is doing this possible?  I have requested the raw .vi from the manufacturer in order to use it as a sub-vi, but they have been less than forthcoming with it and I'm trying to find a workaround.
Can a .vi open an executable file?
Can the .vi then change a value in that executable?
Can the .vi then "run" the executable?  (note- this executable was created in LV)
OS - Win XP, Vista, 7 (variety of machines needed in the setup, XP may be the only one necessary)
LV 8.5 (common to all machines)
Interface - USB

Yes, it is possible.
Here's an old utility I created long ago that includes the capability of modifying controls on compiled VIs.
Attachments:
App_Probe.zip ‏234 KB

Similar Messages

  • How can I perform a silent install of an application AND use "run executable after installation"

    I am trying to do a silent install of a program I built using LabVIEW 8.5.  I also need to call an exe after the installation, so I am using the "run executable after installation" option on the Advanced tab of the installer.  I then pass the following command lines to the setup.exe:
    /qb /acceptlicenses yes /r
    This installs the LabVIEW program successfully, but does not then run the additional exe afterward.  If I run the setup.exe normally (with no command line parameters), the additional exe gets run.
    Thanks,
    Jason

    jmburns wrote:
    I am trying to do a silent install of a program I built using LabVIEW 8.5.  I also need to call an exe after the installation, so I am using the "run executable after installation" option on the Advanced tab of the installer.  I then pass the following command lines to the setup.exe:
    /qb /acceptlicenses yes /r
    This installs the LabVIEW program successfully, but does not then run the additional exe afterward.  If I run the setup.exe normally (with no command line parameters), the additional exe gets run.
    Thanks,
    Jason
    This problem is fixed in a future release of LabVIEW. Here's the CAR ID 67549 for tracking purposes.
    Message Edited by Bob P on 07-10-2008 09:10 AM

  • Which tablet/s can run executables created in LabVIEW 8.5?

    Background: I have created a VI that acquires data over bluetooth from a specific DAQ device. The VI is created in Windows 7 and LV 8.5. The VI is tested to work on the development machine. I'd like end users to be able to install and run an executable version of this VI from a tablet that has bluetooth capability.
    Question:  Which tablets can run executables created in LabVIEW 8.5? I think tablets running Windows 8.1, such as Surface Pro and Dell Venue Pro, should be okay but need a confirmation before I purchase one. Also, how about tablets that run other operating systems, such as Windows RT or Android?
    Extended Question: What tablets in the market can run LabVIEW 8.5 VIs (or in other words allow LabVIEW 8.5 to be installed)?
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Well since LabVIEW 8.5 isn't officially supported on Windows 7, or 8 you may have issues.
    http://digital.ni.com/public.nsf/allkb/B972242574D4BB99862575A7007520CB
    Of course many on the forums have stated being able to run older versions of LabVIEW on new operating systems without issue but know that from NI's perspective you should not be running LabVIEW 8.5 on Windows 7.  Which means no modern tablet.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • What software do I need to run executables files

    Hi
    I have application where I acquire data from sensors using stain gauge and thermocouple modules with 6225M DAQ card. Also I am writing some data that i get from a joy stick to a serial port in the same application. In order to run executable file of this application what software do I need?  I installed labview runtime engine in the target machine but it didn't run my program. Do I need to install any drivers for the DAQ card?  i am using labview 8.6.

    Of course you need to install the DAQmx driver. If you have LabVIEW 8.x, when you create the installer, you have the option to install different versions of the driver ranging from a full install to a minimal one. If you have tasks saved in MAX, you would want to install MAX and export your current config. Then select to have the installer import the config on the pc with the exe.

  • How to run executable after installation?

    Hi everyone,
    I created an installer from one labview program with the application builder
    of Labview7.1 for my customer, and this installer will be burned
    on a CD. There are several configuration files which should be always
    modified, so I want to give the customer a possibility that he can
    change them by himself without creation of a new installer , I think the
    "run executable after installation" is the way to do it, but I don't know
    how to implement such an executable command to copy some files from CD to
    the destination directory which the program should be installed, could
    anyone give me some tips? Thans a lot!
    Le

    When you setup your build file, add the files using SourceFile Tab>>add support files, then click on custom destination, here you can add support files during installation. Hope this is what you are looking for.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Bought from a friend,  have apple account how do I run executable files  when I cannot  find the administrator sign in . I mean where in system file do i open administrator log in?

    Am wanting to run executable files  where in system is the administrator sign in?

    If you are talking about .exe files, macs can't run those. Look for a .dmg version.

  • How to run execute immdiate with variables

    Hi friends,
    How to run execute immdiate with variables in v_stmt below?
    I dont know how to declare the value of i here.
    Set serveroutput on;
    DECLARE
       i        VARCHAR (20);
       v_stmt   VARCHAR2 (100);
       CURSOR c
       IS
          SELECT sqlid FROM temp1;
    BEGIN
       OPEN c;
       LOOP
          FETCH c INTO i;
          EXIT WHEN c%NOTFOUND;
          DBMS_OUTPUT.put_line (i);
          v_stmt := 'select * from table(dbms_xplan.display_cursor('&i',null))'
          execute immediate v_stmt;
       END LOOP;
       CLOSE c;
    END;
    /Regds,
    Kunwar.

    You first need to use a bind variable (named ':v' in SQL statement in my example):
    set serveroutput on;
    DECLARE
       i        VARCHAR (20);
       v_stmt   VARCHAR2 (100);
       CURSOR c
       IS
           -- modified for a quick test
          SELECT sql_id FROM v$sql where child_number > 2;
    BEGIN
       OPEN c;
       LOOP
          FETCH c INTO i;
          EXIT WHEN c%NOTFOUND;
          DBMS_OUTPUT.put_line (i);
          v_stmt := 'select * from table(dbms_xplan.display_cursor(:v,null))';
          execute immediate v_stmt using i;
       END LOOP;
       CLOSE c;
    END;
    /However because your SELECT statement returns several rows you need to adapt your code to process all rows returned (as already suggested in first reply to your message).
    Instead of using PL/SQL, I recommend to generate a SQL file using only SQL and then to run the generated SQL file.
    For example:
    spool edx.sql
    set serveroutput on
    declare
    v_stmt varchar2(100);
    v_q char(1):='''';
    begin
    dbms_output.put_line('spool edx.log');
    for s in (select sql_id from v$sql where child_number >2)
    loop
      dbms_output.put_line('select * from table(dbms_xplan.display_cursor(' || v_q || s.sql_id || v_q || ',null));');
    end loop;
    dbms_output.put_line('exit');
    end;
    spool ofThis generates a SQL file similar to :
    spool edx.log
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('5rygsj4dbw6jt',null));
    select * from table(dbms_xplan.display_cursor('fsbqktj5vw6n9',null));
    select * from table(dbms_xplan.display_cursor('6q42j0018w7t8',null));
    select * from table(dbms_xplan.display_cursor('a5mmhrrnpwjsc',null));
    select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null));
    select * from table(dbms_xplan.display_cursor('3c1kubcdjnppq',null));
    select * from table(dbms_xplan.display_cursor('9gkq7rruycsjp',null));
    select * from table(dbms_xplan.display_cursor('f0wj261bm8snd',null));
    select * from table(dbms_xplan.display_cursor('ab3swhv5g138y',null));
    select * from table(dbms_xplan.display_cursor('6vgvyh4xw9c5g',null));
    select * from table(dbms_xplan.display_cursor('ak5crjygnpk60',null));
    select * from table(dbms_xplan.display_cursor('9p6bq1v54k13j',null));
    select * from table(dbms_xplan.display_cursor('19x1189chq3xd',null));
    select * from table(dbms_xplan.display_cursor('7sx5p1ug5ag12',null));
    select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null));
    select * from table(dbms_xplan.display_cursor('730vdzhng6m6g',null));
    select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null));
    select * from table(dbms_xplan.display_cursor('0v3dvmc22qnam',null));
    select * from table(dbms_xplan.display_cursor('a1zv6wju3ftgv',null));
    select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null));
    select * from table(dbms_xplan.display_cursor('7ng34ruy5awxq',null));
    select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null));
    select * from table(dbms_xplan.display_cursor('b2gnxm5z6r51n',null));
    select * from table(dbms_xplan.display_cursor('g4gp07gt2z920',null));
    select * from table(dbms_xplan.display_cursor('1gu8t96d0bdmu',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('g00cj285jmgsw',null));
    select * from table(dbms_xplan.display_cursor('bn4b3vjw2mj3u',null));
    select * from table(dbms_xplan.display_cursor('38243c4tqrkxm',null));
    select * from table(dbms_xplan.display_cursor('2abjfnvy5rkyg',null));
    select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null));
    select * from table(dbms_xplan.display_cursor('350f5yrnnmshs',null));
    select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null));
    select * from table(dbms_xplan.display_cursor('3s1yukp05bzg6',null));
    select * from table(dbms_xplan.display_cursor('1tgukkrqj3zhw',null));
    exit
    PL/SQL procedure successfully completed.Edited by: P. Forstmann on 20 mars 2013 19:06
    Edited by: P. Forstmann on 20 mars 2013 19:33

  • Can't run executable file by LV7.1

    Dear all,
    I am surprised I can't build and run executable file by LV7.1.
    I used to write some vi with LV7.1, and built the executable file according to these vi. It was no problem to build and run this executable file that time. Now I can open these vi well with LV7.1, bu I can't run this executable file well, it will prompt a error, please refer to the attachment. I try to build a executable file according to a simple vi, and then I can't run this exe file well any more.
    Can you help me to solve this problem? Thank you in advance.
    Evan
    Solved!
    Go to Solution.
    Attachments:
    Error prompt.jpg ‏2305 KB

    @Christian: That's not correct.
    One reason for this to happen is if LV 7.1.1 is installed and then you install an application including run-time engine built in 7.1. This corrupts the run-time engine.
    See here: http://digital.ni.com/public.nsf/allkb/680E61A4D02158A186256F7A0073C228
    Daniel

  • Troubles with opening attachments when user have restristed priviledge to run executable code only from ProgramFiles and Windows folders.

    I try to restrict users from executing any potentialy dangerous files. So according to Windows policies I set. Users can run any application from Program Files, Program Files (x86), Windows and all users' desktop folder. Users have no permission to write anything in this folders. When user duble clicks for example *.doc document on his desktop - document opens with MS Word just fine. But when user try to open this document from e-mail attachment directly (selecting open with MS Word, instead of saving) - he sees an error - "This action is restricted by local policy. Ask your system administrator." (not exact text).
    So I want, users able to open attachments from Thunderbird automatically, but not able to run any application or link, except Program Files, Program Files (x86), Windows and all users' desktop folder. How can I get this result?
    Thanks in advance.
    Serious Diman.
    P.S. Sorry for my bad english. It's not my native language.

    Thanks for answering.
    I found out what was happening.
    This strange "bug" affects several computers with Windows 7 Ultimate in my case.
    When you create SRP (software restriction policies) it creates two default rules for running programs: windows folder and Program Files folder. Manually I add "C:\Program Files (x86)" in unrestricted locations. BUT Windows and Program Files folder linked in default rules not directly, but through registry keys. And this part seems tricky. You CAN run executables from Program Files. You CAN run executables from Program Files (x86). But if Thunderbird or Firefox try to run MSword, or excel or writer for opening *.doc or *.odt or some other downloaded file - running from Program Files blocked by SRP.
    So to resolve this problem you just need to replace rules for undirect paths like %HKLM/software/microsoft/windows ... etc% with direct ones, such as "C:/Windows" and "C:/Program Files/". After this all works fine. Attachments and downloaded files opens automatically without problems.

  • Run executable before installation

    Hello all,
    I need small information. Please help me.
    In LabVIEW Installer Window at Advanced settings, we have
    Run executable at end of installation
    Run executable before uninstallation
    Is there is any option for “Run executable before installation”?
    I want to run one LabVIEW exe before installing new software (if Runtime engine is exits in deployment PC).
    Please let me know if anyone have idea.

    The NI installers don't give you a lot of control of how things are done.  Let say you want to allow you users to have a minimum, complete, or custom install of tools.  The NI installers don't have that option.
    In the past when I need more control of how installers run, and their options, I've used a couple of free tools that I've mentioned in the past.  Inno Setup, and the helper program ISTool.
    Using this method I can make an installer, that runs a different installer first, then runs the NI installer.

  • Does hide a frame means do not run/execute that frame(and its query) ?

    Hi Everyone
    Does hide a frame means do not run/execute that frame(and its query) ?
    Thank you
    Bryan

    No. It means setting the Format Trigger of it to reurn FALSE, so it won't display.

  • Running executable on clients,Share your experience

    I have installed Oracle 9i AS on application server environment and deployed my forms and big application on this env.
    Now I tried to run my reports (created as executable files) and they opened at the server and hangs the client till I close the exe. on the server.
    Any body knows how can I deal with the client to run executable or share your experience.
    Many Thanks
    Adel Yousef

    I've done some evaluation of Forms and Reports 6i. Of the two, Reports seems to have most of the problems, but that is another discussion. From my notes I can recall:
    Forms layout: If you delete a frame, all prompts dissapear. Reappear
    when you close and open layout again.
    Forms generic: Readme says 6i is patch compatible with 6.0. If you modify a form with a static record group in 6.0.8 it works ok. If you then recompile with 6.0.5 all static record group values are gone!
    The bug where you may not get the property palette by pressing F4
    before other windows have been activated still exists.
    It appears that the (layout) window has focus, and from GUI point
    I think it does, but cant receive events.
    This behaivour can something be noticed in runtime also.
    I don't think it is a problem with Windows as no other application
    has this behaviour.
    The issue of existing state of package
    still exists, must try it with sql+
    If you change a stored procedure in a way
    that its signature doesnt change, forms
    runtime still complains the first time
    you call the procedure. The second time
    it works ok. Strange.
    Could not generate form with Ctrl+T. Tried Sh+Ctrl+K but got
    PDE-PER001 Internal error (depep 2).
    Tried again, worked.
    Runtime: Why are all my prompts with background=white?
    Charles M Kivio
    Carus Ab
    Certified Oracle Solution Partner
    null

  • Run executable at end of installation. Admin privileges?

    Hi all,
    As always, please forgive this questioning if it has already been answered somewhere.
    Here is my scenario:
    I have a batch file with the following in it:
    cd C:\Temp\install\anotherInstaller
    setup.exe /q /AcceptLicenses yes
    "anotherInstaller" is an installer for a different LabVIEW application that I am including with the main one.
    I run the batch file from the "Advanced" page of my installer under "Run executable at end of installation."
    I run my top level installer with admin privileges in Windows 7 x64.
    The installer hums along and everything works as expected until the batch file gets called.
    The batch file gets called successfully by my top level installer, but "anotherInstaller" doesn't run.
    The batch script works fine if I run it by itself with elevated privileges, but doesn't run anotherInstaller if it is called by my top level installer.
    My theory is that the executable called under "Run executable at end of installation" does not execute with elevated privileges, even if the top level installer does.
    Can anyone verify this?
    Is there any other reason why my second installer won't work?
    Thanks in advance,
    Jim

    Okay, it does appear to execute with elevated privileges, and I have a new clue:
    When I turn off the "/q" option on anotherInstaller, the following message appears in a dialog:
    "Error: Another Installation/uninstallation session, deployment session, or NI Update Service is running. Finish that session and try again."
    Ugh.  Anyone know of a good way to "piggyback" another LabVIEW built installer as part of a batch file?  (I have a whole ton of other housekeeping I handle in my batch file, so I can't very well avoid using the batch file.)

  • Running executable

    Hello,
    I'm attempting to run executable jar in device emulator, but I'm having some difficulty. I have broken the invocation to run executable into 2 files: MyApp.lnk and args.txt.However, I'm receiving the following error:
    java.lang.ClassNotFoundException: Files\Company
    at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
    at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
    at sun.misc.Launcher$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.CVM.runMain(Unknown Source)
    Here's what I have in the 2 files:
    MyApp.lnk:
    255#"\Program Files\Company Name\AppName\bin\cvm.exe" -f "\Program Files\Company Name\AppName\args.txt"?\Program Files\Company Name\AppName\bin\IconsLib.dll, -101args.txt
    -Xbootclasspath/a:"\Program Files\Company Name\AppName\database\jsr169.jar" -classpath "\Program Files\Company Name\AppName\MyApp.jar" MyApp.MainAny help is appreciated

    Hello,
    I just wanted to give an update on some the changes that were made to correct the problem. I changed to using relative paths. Here's what was done to the args.txt file:
    -Xbootclasspath/a:".\\database\jsr169.jar" -cp "\.MyApp.jar" myapp.MainThe error I'm receiving now is:
    java.lang.ClassNotFoundException: myapp.Main
    at sun.misc.Launcher$AppClassLoader.findContainer(Native Method)
    at sun.misc.Launcher$AppClassLoader.access$400(Unknown Source)
    at sun.misc.Launcher$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at java.security.AccessController.doPrivileged(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.doClassFind(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.CVM.runMain(Unknown Source)
    any help is appreciated.
    Edited by: wrappingduke on Nov 29, 2008 11:53 AM

  • Running executable files - which is the best way?

    Is it best to operate three of the same re-entrant vi files from three independently running executable files or is it best to run all three of the same vi files from a single instance of labview?
    I have a re-entrant vi that I created with NI Developer Suite 2006, V8.2.  I saved that vi as three different named vi files for the purpose of creating an executable file from each of them.  These executable files control three identical devices via three serial ports from a USB to serial port hub.  The executable files are run simultaneously on one laptop and they do operate for the most part as expected.  There is a concern about 1 possible IRQ conflict (best guess is that two of the three com ports might be using the same IRQ; com5, com6 and com7 are being used) because one of the three com ports didn't appear to be passing commands as expected like the other two ports did when I first started running the vi.  I'm using a separate port monitoring program to view the transfer of commands to and from the device conected to the serial port to show me the command code being generated to the device and received from the device to validate the proper operation of the executable vi and to time stamp the transfers.
    /BCU002
    Hardware Engineer•Design Reliability/Performance and Validation Group•Wavecom, Inc. - Research Triangle Park, N.C.•http://www.wavecom.com

    Megan,
    Thanks for the reply!  First I want to answer your questions.  I do have three independent executables operating simultaneously and each one has been assigned it's own Com port.  The text file is intended to time stamp the ADC reading every two hours.  Each UUT has it's own file that documents the ADC value independently.  I do this to validate the operability of the UUT during the test and doing so also shows me when the UUT fails to operate.  However this problem that I'm havinig with the VI has been providing me with misleading results about the durability of the UUT and I can't figure out why it happens after 12 hours.
    The UUT is  working okay.  I checked Friday it and reset the program and the power to it and it's been running ever since through the weekend.  However the one problem that remains consistent is that after 12 hours the readings for the ADC, which is what I use to verify that the unit is transmitting RF into a dummy load while in factory test mode, just start showing up as 0 when they should be in the high 100's.  One of the UUTs has an RF power meter connected to it's RF antenna and it's been working as expected when I start the test I have a software engineer running the exact same test on the same type of UUT using an entirely different software tool and it's not having any of these symtoms after running for days on end, uninterrupted.  Unfortunately I can't use that software tool for my work because I can't control it with Labview...yet.
    I'd be happy to email you a copy of the VI that I created directly if you think that you can look over it to see if there are any design problems that I need to repair.
    I've attached a compressed file containing a bitmap of the control panels that I use during my test and I've included two NI spy files for you to see what's happening while my VIs are running and the 3 text files that recorded all of the ADC readings from the UUT over the weekend.  I hope you have the time to look at them because  can use the help.
    /BCU002
    Hardware Engineer•Design Reliability/Performance and Validation Group•Wavecom, Inc. - Research Triangle Park, N.C.•http://www.wavecom.com
    Attachments:
    FTM Control 123.zip ‏467 KB

  • Running executable in batch file as administrator when UAC is high

    Hi Team,
    I have a requirement of running executable in batch file by passing the current windows login username as parameters. Below is the content of my batch file:
    cmd /c start setup.exe http://testsite:7001/mobile  %username%  %username%
    But, when the UAC is set high in windows 7 machine, this executable is not running properly, and giving me warnings. And, if I am running the same start command after opening command prompt as administrator, then executable is running smoothly.
    So, is there any way I can run the executable as administrator by giving some options in batch file, when UAC is high?
    I tried runas option, but its prompting for admin password, which we can't provide as users will not know.
    Do we have some option in batch file as 'Run As Administrator' right click option, where it doesn't prompt for password but run the file with admin privilege?
    Thanks,
    Tina Soni

    Hi,
    When using Runas command, you can add a switch option /savecred
    /savecred will make it ask for admin password on the first run only, after that it should be saved
    Yolanda Zhu
    TechNet Community Support

Maybe you are looking for