Create .exe that sends results to .txt, keeps looking for folder with .exe name

Created a project that logs the results to a .txt file that was setup in "Source File Settings" as a subfolder "Test Results",  but when I run the .exe it trys to write the results to a folder with the same name as my .exe file. I must have something set up wrong under my Build properties.
Thanks Chuck

Even though this knowledgebase's question does not address your question directly, it does expand on what Dennis said about the path being different between the development system and the executable. And how the it adds another layer in the executable.
The part that is most useful to you is this:
" Consider a VI named Application.vi located in the hard drive's root directory (e.g. C:\). In the LabVIEW development environment, the Current VI's Path function returns:
C:\Application.vi
Now consider the same VI built into a stand-alone application named MyApplication.exe. When running, the Current VI's Path function returns:
C:\MyApplication.exe\Application.vi
Therefore,
when you have an executable, you must strip the path twice to get to
the owning directory.  To write a VI which will return the current
directory both as a VI and after being built into a stand-alone
application, use LabVIEW's Application Kind or Application Name properties to determine in which environment the VI is running. "
Hope this helps!
Warm regards,
Karunya R
National Instruments
Applications Engineer

Similar Messages

  • When trying to send a link off firefox via email the system looks for a g mail account that I do not have nor want to have. I've told the settings to use my outlook account but it keeps looking for g mail. how do i correct?

    when trying to send a link off firefox via email the system looks for a g mail account that I do not have nor want to have. I've told the settings to use my outlook account but it keeps looking for g mail. how do i correct?

    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • System keeps looking for a 'server' that does not exist. Is says the old name of my Airport Extreme. Clicking it away (4x) it gets through.

    System keeps looking for a 'server' that does not exist. Is says the old name of my Airport Extreme. Clicking it away (4x) finally  gets through.

    Other weirdness to report: my neighbor upstairs appears to have a Linksys router network on channel 6. My AEBS is on channel 1 so there shouldn't be interference... but according to iStumbler sometimes the signal leaps to 64000 (keep in mind my own Airport never tops 60)! Is that potentially the problem?
    Might it be possible that your neighbor just acquired a 802.11n (pre-N) wireless router recently?
    802.11n effectively increases capacity by doubling the number of Wi-Fi radios and increasing the number of antennas used to push signals out of those radios. 802.11n splits a data frame into multiple pieces. It then transmits these pieces in parallel using multiple radios that are attached to multiple antennas. These antennas blast out signals from virtually the same vantage point – scattering the signals everywhere.
    You may find the following ZDNet article interesting: http://blogs.zdnet.com/Ou/?p=247
    Even if he did not, and you are on good terms, you might want to ask if he can temporarily turn off his wireless, or, at least, reduce the signal strength to see if that will help in your situation.

  • HT1338 My Mac keeps Looking for Networks? The ICON in menu when clicked shows the WI- FI (in gray) ON then goes to Looking for Network again. Shutting down the connection.

    My MAC keeps looking for networks? The ICON in menu bar when clicked shows the WI-FI (in grey) it keeps shuting off and disconnecting. Any Ideas???

    Test after taking each of the following steps. Back up all data before making any changes.
    1. Make sure the network is on the preferred list by following these instructions.
    2. Follow the instructions in this support article under the heading "Symptom: The network connection drops unexpectedly."
    3. Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    4. From the Location menu at the top of the Network preference pane, select Edit Locations. A sheet will drop down. Click the plus-sign button to create a new location. Give it any name you want. In the new location, set up the Wi-Fi service with the same settings you used before. Click Apply and test.
    5. Launch the Keychain Access application. Search for and delete all AirPort network password items that refer to the network. Make a note of the password first.
    6. In some cases, the problem has been resolved by repairing permissions on the startup volume.
    7. Reinstall OS X.

  • Trying to restore from time capsule to nes hard drive, keeps looking for disks ! Can you help

    ccan't restore from time capsule to new hard drive, after changing to new HD, after calculating required space to restore it keeps looking for disks! Have have put original OS X  install disk 1 in it won't Eject , any help

    The very best way to do this is with ethernet to the existing router. Put the TC in bridge mode manually.
    Then plug it in to existing router.. we recommend LAN router to WAN on the TC but even that is not 100% necessary.
    If you want to link by wireless, to a non-apple router that is bad.. recommend strongly against it. Join a wireless network is super slow.
    If you have a desktop Mac you can plug it directly into the Mac by ethernet.
    But we need to know how the Mac is connected to internet.
    I have given some info on one layout here.
    https://discussions.apple.com/thread/4817218?tstart=30
    If you end up relying on an old TC. And any of the models from Gen1-3.. and increasingly Gen4 have all reached EOL.. they can die suddenly and either take your files with them or be hard to recover. Also a TC is slow cf a USB external drive even, which is more reliable. Considering a 2TB is <$100 I would be careful using an old TC simply because you got it free.

  • Since lion upgrade iMac keeps looking for old server

    Hi,
    I have a NAS prior to Lion upgrade which was working perfectly. Now with the Lion upgrade the NAS (Sitecom) ther were some issues. I have reinstalled the NAs and had given it a new name. I can find the NAs now so thats not a problem.
    But almost every hour I get 2 warning that he can not find the "old NAS", it really start annoying me and I've looked everywhere and I don't even find any link (Finder) towards it so I don't know what to do to get rid of this message, receiving it every hour twice really start getting on my nerves.
    Sorry for th Dutch, but the message translates;
    A problem has occured with connecting to the server 'VanBeeckNAS'
    The server doesn't exist or is currently not available. Check the servername or the IP-address of the server, ...
    Any help is highly appreciated.
    Peter

    Same problem since lion. Not only can I not back up to the server it keeps looking for it several times on start up. Real annoying.

  • Macbook air keeps 'looking for networks'

    My Macbook Air keeps 'looking for networks', and the upload speeds are slow -- should be 50 plus, are 25-30 mps.
    Upstairs, my iMac gets 60mps upload and 30 mps download.  So Verizon is providing what they promise, its just
    that the MacBook Air seems to have a bit of a problem.
    Verizon has done what they could to tweek the system, and it make make a small improvement -- from 20 to the 25-30 mps.
    The tech suggested, politely, it was time to talk to Apple, and I will make a Genius appt.
    But I was wondering if other with MacBook Airs had had this problem of the computer constantly 'searching for netsworks'.
    Thanks,
    Hal

    Open System Preferences > Network > Advanced then select the Wi-Fi tab.
    Drag your network to the top of the list.
    Select:  Remember networks this computer has joined
    Click OK.
    Keep in mind, everytime you click the AirPort icon in the status menu bar, it will automatically "look" for networks.

  • HT5622 I just upgraded to a new MacBook and my wife is inheriting my old MacBook Air. How can I change the her MacBook Air to now be fundamentally hers? That is, so the House Icon under Users folder is her name and not mine? Also the default AppleID for p

    I just upgraded to a new MacBook and my wife is inheriting my old MacBook Air. How can I change the her MacBook Air to now be fundamentally hers? That is, so the House Icon under Users folder is her name and not mine? Also the default AppleID for purchase stubbernly remains my own.

    You do not mention it, but I will assume you are running OS 10.9.1.
    Go to: Apple menu / System Preferences / Users & Groups. Click the padlock and enter your password.
    Click the + (plus sign) and set up a new account for your wife. You have to enter a bunch of info. And then create the correct Login Options. Automatic login does not require a password from the selected user.
    When that is done, verify the account works by restarting the computer and login as your wife.
    Make sure that any applications in your own Users folder that will be needed are moved to the Applications folder in your wife's Users folder.
    Now go back to Users and Groups, click the padlock and authenticate, select your own account, and hit the - (minus sign). This step cannot be reversed, so you might want to wait a few days before doing it.
    When your wife is logged in, the App Store will know.

  • I am trying to add a wireless printer and it keeps asking for an "Ipadmin" user name and password rather than my adminstrator password. Any ideas what this is??

    I am trying to add a wireless printer and it keeps asking for an "Ipadmin" user name and password rather than my adminstrator password. Any ideas what this is?

    OS X 10.7 Lion, 10.8 Mountain Lion & 10.9 Mavericks
    Reset Password starting from Recovery HD
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • HT201250 I had turned off the time machine auto back up and now when I try to turn it back on it keeps looking for a disk even though the time capsule is shown, do I have to set it up again as an initial?

    I have been using the time capsule to back up both my iMac and recently added MacAir, it has been working fine but recentlky I had turned the time machine off on the Macair and now when I try to turn it back on it keeps looking for a disk even if I select the time capsule. Do I have to start the backup for the Macair as a new backup?

    That happened to my brother earlier. He went into Facebooand then into another app and the same thing happened. he ended up having to restore it. Mine stayed with the Apple logo for a bit but its back to normal after pressing the buttons a million times. I hope you get your problem sorted. Goodluck!

  • Laptop keeps looking for previous migration machine at start up

    Every time I start my machine it keeps looking for my previous laptop which was used to migrate my information. This slows the start up down considerably. It seems to think that this is a server I want to connect to by default and says it is not, understandably, available.
    Is there any way to stop this? Thanks

    frank120 wrote:
    I started in Safe Mode and the problem didn't happen, which was good. However when I returned to normal mode it was back again. I have a Time Capsule which mounts whenever I start up so I also tried starting in normal mode without the wi-fi on to take this out of the equation, but again the machine was still looking for the missing machine.
    Since it will startup in safe mode, that tells you that there is some third party software that is attempting to startup in normal that is causing the problem. So now that you know that, you are going to have to start looking at what third party software is causing your problems.
    |___________________
    Allan

  • HT1349 hi guys i have 2 ? 1 my daughters iphone is trying to update on my mac cant get it off help please ,,, 2 i have an old apple id and when i try to up date it keeps looking for the password how do i delete this old apple id help

    hi guys i have 2 ? 1 my daughters iphone is trying to update on my mac cant get it off help please ,,, 2 i have an old apple id and when i try to up date it keeps looking for the password how do i delete this old apple id help

    Hi.
    I had a similar problem myself. This is what helped me.
    I went to the App store app, scrolled to the bottom, logged out of the account, re logged in with my Apple ID.  Then went back to app updates. Once I put in my ID password all was fine.

  • A phantom folder with the name of a folder that held photos has appeared in my finders places list.  I can't choose it to delete it.  it won't move.  It can't be found in a search.  How can I choose it and delete it?

    a phantom folder with the name of a folder that held photos has appeared in my finders>places list.  I can't choose it to delete it.  it won't move.  It can't be found in a search.  How can I choose it and delete it?

    Can you drag it off holding down the CMD key?
    Do a search for it with EasyFind  (try different settings in "Operator")
    http://www.devontechnologies.com/products/freeware/

  • Create Folder with the name of expense report number in SHAREPOINT ?

    Hi All,
    iExpence - In expense report confirmation page. There is custom link.
    Requirement
    When user click on link, system should create folder with the name of expense report number in SHAREPOINT and copy copies of expense receipts in the created folder in SHAREPOINT.
    Please suggest.
    Thanks,

    OAF no api as such for this kind of customization. Rather try developing some web service or something similar which can be invoked from the custom link to do the job.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                   

  • OS X keeps looking for missing network drive

    Hi there,
    I notice, I am not the first to ask the question, but is has not yet been answered and I'm a bit puzzled. I am using OS X 10.7 by now and ever since OS 10.6 I have noticed that - sometimes - finder seems to be looking for a network drive (a former time capsule) that is no longer mounted and available. Every once in a while I get the message that the drive "name" cannot be found.
    Where can I check to get rid of any references to that old drive? It must be mapped somehwere, alas, I don't know where.
    It is not in the startup items, I've checked there and there is no file sharing activated.
    Thanks in advance, Alex.

    I think this solved my problem, after having checked Console:
    http://paikialog.wordpress.com/2011/08/23/how-i-fixed-my-mac-os-x-lion-slowness- issue/
    sudo mdutil -i off /Volumes/RootPartitionName

Maybe you are looking for