Doesn't find System Exec.vi

Hello!
i've made a vi that calls an exe-file with one or two arguments... to realize it i used the system exec.vi
it works fine on a developement system.
if i create an executeble and i start the exe my program searches for the system exec.vi
what made i wrong?
thx for help
Attachments:
call_exe.vi ‏32 KB

Don't know...
I downloaded your little VI and (after changing the name of the program to launch to Notepad.exe), built it into a standalone program and everything worked as expected: Clicked the "Program" button and Notepad opened...
(By the way, nice panel design...)
How exactly are you building it into an executable? Are you using the option to save the subvi's in a seperate library? If so that library needs to be in the same directory as the .exe .
Otherwise I would say you are doing everything right. Attached is the build file my app builder (V6.0.2) created, and the application it created. See if it works for you...
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Attachments:
call_exe.bld ‏1 KB
call_exe.zip ‏25 KB

Similar Messages

  • System exec - Not finding a file

    Hi,
    I am using the system exec vi to call a patch file that prints a .txt. or .prn file depending on the request of the user. I was ahving some issues with it not being able to find the batch file however I have solved that but now i get this error from the standard output string:
    Error: could not open print_test.txt for reading
    print_test.txt is the file it is trying to print. I am not sure what is causing this
    any ideas would be appreciated
    Thank you

    Hi Adam,
    Thanks for the post and I hope your well today.
    There are maximum limits, imposed by Windows , on how long you can have an ASCI file name and the full path as follows:
    MAX_FILE_NAME is 256
    MAX_PATH is 260
    I beleive this is correct ... however does seem to be some confusiong. You can make your own mind from a very resources...
    Forum
    Max length of VI file paths and file names
    http://forums.ni.com/ni/board/message?board.id=170&message.id=28207&requireLogin=False
    Hope this helps alittle,
    http://www.british-genealogy.com/forums/archive/index.php/t-8252.html
    msdn
    Naming a File or Directory
    http://msdn.microsoft.com/en-us/library/aa365247.aspx
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • 2007 Intel Imac, installed a new Hdd. Started up with the install disc but it doesn't find my Hdd when asking for a destination volume to install the Mac OS.  The Hdd is recognized in system profiler. Any ideas?

    2007 Intel Imac, installed a new Hdd. Started up with the install disc but it doesn't find my Hdd when asking for a destination volume to install the Mac OS.  The Hdd is recognized in system profiler. Any ideas?

    Welcome to Apple Support Communities
    The hard drive is not formatted, and it must be formatted in "Mac OS Extended (Journaled)" in order to install OS X.
    Close the OS X installer, and go to Utilities menu (on the menu bar) > Disk Utility. Then, format your hard drive in "Mac OS Extended (Journaled)" as Format > http://pondini.org/OSX/DU1.html Finally, close Disk Utility and install OS X

  • Access system exec standard out before function returns

    Hello,
    It would be enormously helpful to me if I were able to parse the output from the system exec vi before the invoked command fully returns. Is it possible to do this?
    Thanks

    Just about any question you can think of has probably already been asked before.  So doing a search will get you the results without relying on someone repeating themselves 100 times.
    Unfortunately, the search engine on the forums is not that great.  If you search for a pluralized word, the singular form of the word doesn't show up.  And of course there can be misspellings which can keep you from find useful information.
    Also, if you used your exact title as your search phrase, then you probably used too many words.  Sometimes adding too much to the search restricts it to the point that you can't find anything.  So the best strategy is to start with just a couple, then if you find the search yields too many results, then narrowing that with another word or two based on some of the words you just saw in the results.
    Also, sometimes it is better to go to Google and search for your subject.  The discussion forums are all indexed by Google, and it does a much better job catalogging the search terms then the forum's search engine does.
    Please forgive us if we say "do a search!"  It just seems that so many times, people come on, ask a question where we know the answers exist and that if they just did a good search for 5-10 minutes they can find them, but a lot of people just go the lazy route, don't bother to search, and ask the question.

  • When I launch I photo it wants me to choose a library but it doesn't find one which is impossible, because i still have no storage. before i can clean up i want to back up them. how can i find my library?

    When I launch I photo it wants me to choose a library but it doesn't find one which is impossible, because i still have no storage. before i can clean up i want to back up them. how can i find my library?

    You may very well have damaged your library - or even your system by not having adaquate storage available
    And never select all of the pitcture and move them - that will destroy your library - the iPhotolibrary is a SQLite database and must always be kept intact as a single entity -
    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • System exec cmd window

    Hello, first time posting a question!
    I have spent a good while trying to find an already posted answer to this, and looking on the wider web, hope i have not just missed it.
    I am using XP Pro SP3, LV 8.6.
    I am not very familiar with Windows command lines and structures etc. 
    I am using the System Exec VI to start a third party piece of software. I have wired the path in to the path input, and if i wire cmd /c start xxx to the command line terminal the VI will run and start the software application (xxx.exe). As the VI executes the cmd window clunks open and closed. If i run the VI without the cmd /c part of the command then an Error 2 is returned (as widely reported by others).
    Is it possible to open an application without the cmd window opening and closing?
    Using the System Exec VI it is possible to open NotePad just by wiring 'NotePad' to the comand line terminal. Is it possible to place the third party software somewhere, or register it with the OS somehow so it could be started in the same way as NotePad (i.e. without the cmd window flashing up)?
    Thanks...
    Blue 
    Message Edited by BlueTwo on 09-25-2008 09:22 AM

    Hi Thoric, thanks for the suggestions, Success!
    I tried the True boolean to the Run Minimized, but it did not help.
    Changing the Environment Path string to include the path to the directory containing the application did work (once i had worked out the syntax).
    On to the next problem....
    Cheers,
    Blue 

  • ICal search doesn't find anything

    when I test this by creating a future event with a particular word in it, then return to today and search for that word in the little "search" box at top right, it doesn't find that word.
    Why not?

    I have also had long standing problems of not being able to search for calendar events, either from within iCal or Spotlight or using mdfind.
    None of the suggested solutions worked for me (removing Calendar Cache file, adding and removing folders or drives to the privacy section of Spotlight to re-index, or running mdimport ~/Library/Calendars.
    One clue was that mdimport -d2 ~/Library/Calendars would not even look at the individual .ics files within any .calendar/Events directory (no output). I suspected that this was due to LaunchServices not associating these files properly with iCal. My system had previously been upgraded all the way from 10.0 through 10.6.
    What finally worked for me was the following, using the Terminal, rebuilding completely the LaunchServices database:
    rm /Library/Caches/com.apple.LaunchServices*.csstore
    *defaults delete com.apple.LaunchServices*
    *sudo /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServi ces.framework/Support/lsregister -kill*
    *sudo /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServi ces.framework/Support/lsregister -R -domain local -domain system -domain user*
    (note the capital -R in the previous line.)
    This step will take a few minutes to complete, with a message about I/O throttleing
    reboot (not sure if that is necessary)
    *mdimport -d2 ~/Library/Calendars*
    This last command should now show the successful indexing of all calendar events.
    After this search finally worked again for me!
    Regards,
    Heiko

  • I have an issue with time machine, it doesn't find the Lacie external driver it use to use. it is the same drive that I usaly use for time machine back ups. It is corectly plugged. What can I do ?

    Hi,
    I'm trying to back up my macbook with time machine on the Lacie external driver I usualy use for this, but today my computer doesn't find the driver. I haven't done back up in 6 month.
    Today, the Lacie driver is pluged and running, but the computer just does'nt find it.
    what shall I do ?

    Some things to consider:
    Is the drive mounted, i.e., visible via Finder and/or on the Desktop?
    Is the drive still selected in System Preferences, Time Machine? If not, use the "Select Disk" button.
    Is Time Machine still turned on (System Preferences, Time Machine)?
    Can you see the drive (and mount it) using Disk Utility (in your Utilities folder)?
    charlie

  • Windows system exec error in application causes app to crash

    The basics:
    LabView 11.0 (32-bit)
    Windows 7 enterprise
    Because I have to control an elevated app I run my built app elevated on a Win7 64 machine.
    I have an application that uses the system exec.vi (attached) to get a portion of the arp table. When I run this in development it works great. However when I build an app and run it this vi causes the app to be unstable and crash.... sometimes. I have a troubleshooting vi that I wrote that I place at the start and end of vis. This puts a log file on my desktop so that I can trace where it crashes. I've attached the log as well.
    Basically we have a power controller that we control by Telnet but 1st I have to get the IP. I have the MAC of the controller which is DHCP but not the IP. To get the IP I fill the ARP table and search it for the MAC.
    get ARPCache.vi throws the error messaage: System Exec.vi . Command was "cmd /c "arp -a | find "192.168.120"" but only in the built app.
    Update: While getting more info to complete this post I did a build where I changed "get ARPCachs.vi" to show when called so I could see the error cluster. Now it pops up but no errors. hmmm
    Norm
    Attachments:
    get ARPCache.vi ‏22 KB
    Log program message start finish.vi ‏24 KB
    Program Log.txt ‏2 KB

    It depends on how the exe deals with the arguments. Some do honor escape characters, some not.....
    Afaik, there is no difference regarding the System Exec in development environment vs. exe. But it is possible, that these are executed using different user rights?
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Software Update doesn't find 10.5.7 Update

    I have a 3-month old MacBook Pro and software update doesn't find the 10.5.7 update, About This Mac says my system is 10.5.6. I also have an orginal MacBook Pro running Leopard and this finds it.

    Forget software update, it's better to update through combo (or directly downloaded from apple site) anyway.
    http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx1057comboupdate .html
    Make sure to verify/repair the disk, and repair permissions from the OSX install disk Disk Utility before updating.
    Also if you have Disk Warrior run that before and after install.
    Lastly, most importantly...CLONE your drive before any install.
    Use Superduper! or Carbon Copy Cloner.
    http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html
    http://www.macupdate.com/info.php/id/7032/carbon-copy-cloner

  • Spotlight doesn't find search results in .HTML file contents

    When I use Spotlight to search, it doesn't find any .HTML file contents. If I rename an .HTML file to use a .TXT extension, the contents are found. Is there a way to enable Spotlight to find contents in .HTML files?

    I remembered that used to be problem, so I just checked on my local version of my site, and Spotlight found the files on the basis of content without a problem. So I took a look at my installed mdimporters in /Library/Spotlight, to see what may have led to this happy turn of events. I thought perhaps the iWeb mdimporter might be doing it, but was unable to find a reference to HTML in its type declarations. I then took a look at in /System/Library/Spotlight and discovered that RichText.mdimporter has a declaration for public.html as a content type. You should have that mdimporter installed by default, but you might take a look to make sure it is there.
    If the mdimporter is there, but the html files aren't being indexed, it could be that whatever program you are using to create them isn't giving them the appropriate content type. I code by hand using TextEdit, which saves them with the following metadata entry:
    kMDItemContentType = "public.html"
    kMDItemContentTypeTree = (
    "public.html",
    "public.text",
    "public.data",
    "public.item",
    "public.content"
    They are then evidently indexed without problem by the RichText.mdimporter. You might try opening one of your html docs in TextEdit (as plain text), resave, and see if Spotlight then picks up the content of the file. Of course, the content means the words that people see when they look at the page in a browser. If the content you are talking about is stuff that is inside an html tag, you are out of luck. I know of NO way to get Spotlight to find that. EasyFind will though, but it is a brute force search and will take awhile, even when restricted to a particular folder.
    Francine
    Francine
    Schwieder

  • System exec+ problem

    I'm using the system exec+ file to read in a msdos executable into labview, and to have it stay open until the user exits. Whats happening now is that when its reading in my program (awc.exe), it pops up an error message (in dos) that says "cannot find fonts." The font files are in the directory (c:\awc) with the executable. Do I need to link the font files somehow to awc.exe, or is this being caused by some other problem?

    jdaltonnal wrote:
    > I'm using the system exec+ file to read in a msdos executable into
    > labview, and to have it stay open until the user exits. Whats
    > happening now is that when its reading in my program (awc.exe), it
    > pops up an error message (in dos) that says "cannot find fonts." The
    > font files are in the directory (c:\awc) with the executable. Do I
    > need to link the font files somehow to awc.exe, or is this being
    > caused by some other problem?
    Not sure about your awc.exe prog but I have had similar problems with
    other exe progs.
    The awc program is probably expecting c:\awc is set as the dos current
    directory; I don't think exec+ does this.
    Try this:
    Open a dos session manually in Windows.
    Don't change directory; keep the default one dos gives you.
    Type in the
    command you are passing to exec+; maybe c:\awc\awc.exe (or
    just awc.exe if c:\awc has been set in your path?) What happens?. Same
    problem? So now try running awc.exe again but first change to c:\awc
    directory. Does it now work ok. If so you need to set c:\awc as the
    working directory from within exec+. To complicate things you must set
    this current directory in the same dos session as awc.exe is called so
    you can't do this by running two exec+ commands.
    I use the following technique. Write a .bat (just a text file saved with
    the file extension .bat). You could call this awc.bat
    In this file put something like:
    c:
    cd \awc
    awc.exe
    then call exec+ to execute awc.bat instead of awc.exe
    You will need to tell exec+ to wait for execution to finish but I guess
    you already know that.
    Hope this works for you.
    Dave.

  • "System Exec" command in NT / W95 How to use?

    Hi LVers,
    I can start the shell with the System Exec command with LV, but how can I put
    additional (batch) commandos into it?
    I already tried:
    - piping "cmd < dir"
    - batch files "mybatch.bat"
    Where are the differencies btw. NT and W95
    thanks
    tom

    I am not sure that I understand what you are trying to do.
    Anyway, in LVWUtil32.zip you can find some VIs that improve the use of System Exec[http://digital.ni.com/public.nsf/3efedde4322f​ef19862567740067f3cc/824b3db43031317686256aaf00713​218/$FILE/LVWUtil32.zip]. As far as I remember you have some good documentation inside.
    Also, you can use a KeyGenerator [http://hamiltondesign-consulting.com/ftpfiles/Sen​dKey.zip] to send commands to a shell window (via keystrokes).
    Hope this helps

  • "dba_extents" doesn't find just created segment... Why ?

    Hello,
    below you can see a sequence of commands and queries from my operating system and SQLPLUS promts. The question is : Why "dba_extents" doesn't find just created "newtab" table ???
    syspath>sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Mar Apr 9 15:36:12 2013
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create table hr.newtab(c1 date);
    Table created.
    SQL> select tablespace_name, file_id, extent_id, block_id, blocks, bytes from dba_extents where lower(owner)='hr' and lower(segment_name)='newtab';
    no rows selected_
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    syspath>sqlplus hr/hr@orcl11g
    SQL*Plus: Release 11.2.0.1.0 Production on Mar Apr 9 15:39:13 2013
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from newtab;
    no rows selected
    SQL>
    -----

    998982 wrote:
    Hello,
    below you can see a sequence of commands and queries from my operating system and SQLPLUS promts. The question is : Why "dba_extents" doesn't find just created "newtab" table ???
    syspath>sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Mar Apr 9 15:36:12 2013
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create table hr.newtab(c1 date);
    Table created.
    SQL> select tablespace_name, file_id, extent_id, block_id, blocks, bytes from dba_extents where lower(owner)='hr' and lower(segment_name)='newtab';
    no rows selected_
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    syspath>sqlplus hr/hr@orcl11g
    SQL*Plus: Release 11.2.0.1.0 Production on Mar Apr 9 15:39:13 2013
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from newtab;
    no rows selected
    SQL>
    -----because no segment was created.
    http://tkyte.blogspot.com/2011/02/deferred-segment-creation.html

  • System exec in LV 5.0

    I'm trying to run a MSDOS based program in labview. Will I have to move to a certain directory where the executable is located? For example, to open labview.exe. I created a sequence which first inputs "cd\labview\" into system exec and then in another sequence frame have another system exec file with "labview.exe". But both system exec give me an error 42 when I try to use it in my application.
    In addition, after I open my executable, I want it to stay open until the user goes to file and quit within the program. There is no "wait until completion" option in lv 5.0. Any other suggestions?
    If you do have suggestions, some source code would be nice to see so I can follow along with what you are saying.
    Thanks a lot.

    Ok, I actually got that working. I found the system exec+ file and that has the wait function on it. Whats happening now is that when its reading in my program (awc.exe), it pops up an error message (in dos) that says "cannot find fonts." The font files are in the directory (c:\awc) with the executable. Do I need to link the font files somehow to awc.exe, or is this being caused by some other problem?

Maybe you are looking for

  • Error when creating a RoboHelp 7 topic: "Cannot copy from..."

    Please help! A co-worker receives the attached error when she tries to create a topic in an existing RH 7 project. Any ideas on how to solve this? Thanks in advance.

  • Windows 8.1 update doesn't recognise my ipod

    my laptop had the windows 8.1 update and now it does not recognise my ipod.  I've followed the directions to uninstall all apple files on my pc and done a reinstal and it still won't sync?  Help please - I use my ipod to download my lectures on and I

  • CS4 Upgrade price

    Just about to buy a CS4 Upgrade price and I notice that it's more to download than to ship the box! £168.88 Download £159.85 Ship the box Is this right? Rich

  • Help, I lost my library.

    I got a new 80G ipod for Christmas. I think I did everything I had to do to get it up and running. I loaded lots of music and quite a few podcasts into i-tunes and synced them to my ipod ok. When I went back to the i-tunes to add more all the previou

  • User manual for MBP Retna?

    Is there a User manual for the MBP Retna? If so, Where do I find it? Thank you for any helpful reply.