Wrong "Current VI's Path" in LV 2009

Same program built with application builder works in LabVIEW8.2.1, but does not work in LV2009.An example is included in the attachment.
The VI "Current VI'2 Path" returns correctly in development environment:
F:\Projekte\LabVIEW\Test_2009\EvaluateProgramPath.vi
If run as exe built in LV2009 (and also built as installer), it returns an unusable output:
F:\Projekte\LabVIEW\Test_2009\builds\EvaluateProgramPath.exe\EvaluateProgramPath.vi
In LV8.2.1 and all earlier versions, the *.exe returned exactly, where the *.exe resides.
Many of our existing LV programs depending on this VI can't be migrated to LabVIEW2009.
Does somebody know a solution or patch without changing existing sources?
Thanks for any tip.
Klaus 
Message Edited by Mezger on 08-25-2009 06:31 AM
Solved!
Go to Solution.
Attachments:
PathProblem_2009.zip ‏162 KB

Mezger wrote:
In LV8.x there was the path to the *.exe only, what also made sense.
Klaus
Maybe in a parallel dimension but NOT in any time and space that I have been in.
I have a a re-use VI that I have been using since LV 6.0 to resolve the differences in paths between the development and exe environments. i see no difference or bug.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Current VI's Path Constant Error 7

    im using current vi's path like the answer to question# 34 in the CLD-R sample exam, but does not work? can anyone explain...
    here is what i got, it's trying to append to the main vi itself....
    the correct vi is....
    does it have anything to do with it being a "LV 2011 ser. pack1, development system"? or is question #34 the wrong answer? Append File Path for a File in the Same Folder
    Attachments:
    cldr_sample_exam.pdf ‏1145 KB

    I'm not digging up the exam that you referenced, but if it is saying what you said it is, the exam is wrong (not a big surprise).  The Current VI's Path is the path to the VI itself.  So it would be "c:\temp\blah.vi" (just as an example).  You need to strip off the VI name in order to get its folder.  It has always been this way.
    Now in the EXE, the rules are a little different since the VI is inside of the EXE.  It gets a little more complicated.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Current VI's Path returns location of original source file, not running exe.

    Running LV 2010.
    I have a VI that opens a PDF style manual when the user clicks a button.  My development project is set up with a main project folder, and 3 sub folders called Source, Application and Installer.  Of course, the source code is in the Source folder.  I also have a copy of the manual in the Application folder with the app.
    When run, the VI uses the Current VI's Path object as a starting point for where the manual is located.  The Current VI's path includes the Source folder in the path it generates.  This is not a problem when running the source code, as the VI is running from that folder.  Problem is, the Source folder is also included in the generated path at run time on the target machine running the exe.  There is no Source folder on the target machine, so I'm at a loss to explain why this is happening.  It's probably a setting in my application builder, but I can't find it.  Never had this problem before.  Can anyone help?  Thanks.
    Solved!
    Go to Solution.

    Start reading here.
    LabVIEW Champion . Do more with less code and in less time .

  • Hi i am currently using a white macbook mid 2009 with 10.6.8 version and i wanted to upgrade it to yosemite? So wanted to know if it would be alright?

    hi i am currently using a white macbook mid 2009 with 10.6.8 version and i wanted to upgrade it to yosemite? So wanted to know if it would be alright?

    Hi Shubham Nahar,
    The system requirements for Yosemite are listed here.
    How to install OS X Yosemite on your Mac
    Before you install Yosemite, make sure you have one of these Macs:
    iMac (Mid-2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Xserve (Early 2009)
    Your Mac also needs:
    OS X Mavericks, Mountain Lion, Lion, or Snow Leopard v10.6.8, already installed
    2 GB or more of memory
    8 GB or more of available disk space
    I don't have that Macbook, so maybe others can chime in as well.
    Take care,
    Nubz

  • Can I upgrade the RAM (currently 4GB) on my MBP 15", 2009

    Can I upgrade the RAM (currently 4GB) on my MBP 15", 2009?

    Yes, you can upgrade RAM modules.
    http://eshop.macsales.com/shop/memory/Apple_MacBook_MacBook_Pro/Upgrade/DDR3
    http://support.apple.com/kb/HT1270?viewlocale=en_US

  • My MacBook Pro with Retina display shows wrong current location

    I purchased my MacBook Pro when I was a student at a particular university in Hawaii. After I graduated, I moved back to my home country in the Philippines. When I use Google Maps or Bing Maps to show me my current location which is now in the Philippines, it still shows that I'm still at that university in Hawaii. I tried using the Find My iPhone App, it shows my iPhone's and MacBook Pro's location in Hawaii but not at my current location in the Philippines. I tried resetting the PRAM, changing region settings, and even my timezone manually, but still having that wrong location info whiich I need in case I lose my iDevices and try to locate them and they'll all point to Hawaii!
    Please help! Thank you!

    It works now with other browsers - Chrome and Firefox. They show my location, but in Safari, it still shows I'm in Hawaii and even in the Time Zone settings in Sys Preferences. This bugs me a lot. I reset Safari and still shows me I'm in Hawaii. I used Google Maps and Bing Maps to locate me at my current location but the system still shows I'm in Hawaii although Chrome and Firefox now shows that I'm in the Philippines. So I tried resetiing the CoreLocationAgent service again and got an error. It said Failed to reset the database. I tried Find My iPhone again but shows my Mac in Hawaii. I'm just concerned about this since it can't locate my Retina MacBook Pro in case it gets stolen!
    I don't know if this is a bug in Mountain Lion or am I missing something?
    Please help again... Really appreciate it.

  • Strange current VI`s path returned in standalone application

    I know that there is a difference in the path returned when using the "Current VIs path" in the development environment and in a standalone application, but this is not what I had expected: This is the path returned from the Current VIs path in the standalone application:
    C:\LabView-programmer\RADHAZ-programmer\RADHAZ\builds\rad.exe\RADHAZ-programmer\RADHAZ\rad.vi. Why is this the correct path to the VI?
    If I strip this path once, and build a new path with the name of my dynamically called VI  I get: C:\LabView-programmer\RADHAZ-programmer\RADHAZ\builds\rad.exe\RADHAZ-programmer\RADHAZ\instr.vi. It starts from this path, but It won`t load some text-files located at C:\LabView-programmer\RADHAZ-programmer\RADHAZ\builds\kal-data without making changes to the instr.vi.
    I tried to used the App.Dir property to find the correct top level directory, and it returns C:\LabView-programmer\RADHAZ-programmer\RADHAZ\builds as expected. But this is not the path that the dynamically called VI need.
    Any suggestions is appreciated..
    I searched for a detailed tutorial for setting up the build specification, but didn`t find any that helped much.
    Gunnar
    Solved!
    Go to Solution.

    HI Gunnar,
    have you tried the last point of the Advanced AppBuild settings as described in the help?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Folders on the desktop are wrong-Contain all File Paths

    My wife insists that the desktop folders originally only contained any files that were stored in them.  Last week the folder when opened, shows a complete path from the HD > desktop > Folder > Files.  This makes for a very busy Finder display and I am unable to identify what caused it or how to get rid of this unwanted display.
    Can anyone help?

    Hi.
    You're getting this?
    Instead of this?...
    The key is the "Show items as..." group of buttons in the toolbar... (as seen directly above the printer icon in the screen shot above).
    Make sure the Toolbar (and Side Bar) are visible so you can select the view.  ⌥⌘T (option-command-T) is the toggle to display the Toolbar.
    I hope this is helpful.

  • Wrong JRE Runtime Lib Path on Win2K--Admin Server Won't Start

    Running Sun One Web Server 6.0 SP6 on a Windows 2000 server, I inadvertently entered a typo in the iPlanet Administration Server's Global Settings, "Configure JRE/JDK Paths" link.
    In the "JRE Runtime Lib Path" field I typed "jjk1.3.1_03" instead of "jdk1.3.1_03". Now the Sun One web server won't start, so I can't go into the Administrative Server to fix the Jre Runtime Lib Path. I havent' been able to find any file where I can change that erroneous setting either. Is it a Registry entry?
    I also tried adding the correct JRE Runtime Lib Path at the end of the Windows PATH environment variable on the server, but that didn't help.

    Yes we checked the Registry settings and fixed the typo in the path associated with the key NSES_JRE_RUNTIME_LIBPATH. That should have fixed the problem, but the Sun One web server still wouldn't start.
    Moved to plan B and removed then reinstalled the Sun One web server. Now it starts and all is well.
    Thanks for helping everyone. This also raised the issue for us of whether or not we are entitled to individual support from Sun since we paid for the Sun One web server. According to the web site, the answer is NO - unless we pay $3,000 for a support contract. Other vendors who recommended using Sun One with their products say YES. We're still tracking that down.

  • Moving to new country, wrong current position on maps

    Hello expert,
    I have been moving from switzerland to brazil a month ago. Everything went fine (thanks for asking), and a week ago I have received some of my furnitures including my airport extreme. I plug my airport extreme on my network, close the wifi from the ISP and use the wifi of my airpot extreme, and since then my current position on maps is incorrect (it is my old address in switzerland).
    I have made a hard reset, change the address links to the mac address of my airport extreme on www.skyhookwireless.com, change the address on my contact. Indeed I have done everything suggested on this thread :
    http://forums.macrumors.com/showthread.php?t=1597209
    Anybody has another suggestion before I definitively  smash my airport extreme ?
    Kind regards,
    Manu

    The issue has come up several times lately.. it will self correct in a few months.. more or less.. it is unknown but the old registration of the unit to its old IP will not be updated in world IP maps for several weeks. Eventually it does..
    Apple provide no help.. and you cannot even move your place of identification to Brazil. This is why automatic systems without manual override is such a pain.. most routers allow you to spoof the MAC address of the WAN. Until apple do that it won't work.
    Buy an airport in Brazil if it bothers you.

  • I recently updated my iPhone 3GS now my maps application always gives me the wrong current location. It worked fine before it was updated during my last sync. How do I fix this?

    I have an iPhone 3GS 16gb not jailbroken, that I just synced and updated to the latest fix.  Before my google maps was working perfectly but since I updated it always gives me a current location that is about a half mile off in any direction.  I have tried several hard resets to no avail. turning off my wifi, nothing. Turning off my location services-reset-then turn them back on, again nothing.  Tried resetting network settings with the auto lock on never.  Rebooted.. Nothing again..
    Help!!! What's the score here?  What comes next?

    yes, you can update to the latest iOS, that would be the first thing AppleCare would have you do
    doing a restore and then putting your information right back on the device is not a troubleshooting step. If anything, you wipe out the issue and then have put it right back on your phone. It would be better to restore as new

  • Retrieve current executable jar path?

    I have several classes put together into an executable jar, which is working fine.
    I would like to obtain the path to the location in which the jar is located at runtime in order to check for the existence of a text file in the same directory as the executable jar. For example, if my jar was started from c:\temp\aa.jar I would like to be able to retrieve c:\temp\aa.txt at runtime - how do I tell the program to look for aa.txt in c:\temp as opposed to some other directory?
    I have experimented with java.lang.System.getProperty("user.dir"), but this directory is not the same as the one in which the jar is located.
    Any ideas? THANKS!

    I still would like a way to retrieve the path to the location of the jar file that was executed, if possible.
    This may be partly an IDE issue. I'm using Sun ONE Studio 4 update 1, Community Edition. When I execute the jar outside of the IDE (double-clicking it in File Explorer) my program is able to find preferences.txt properly in the same directory as the jar. However, when using the IDE java searches for the text file in the Sun ONE studio's bin directory.
    section of program that is looking for the text file:
    File filePref = new File("preferences.txt");
    System.out.println("preferences.txt path: " + filePref.getAbsolutePath());
    standard output when run from within the IDE:
    preferences.txt path: C:\Program Files\s1studio_jdk\s1studio\bin\preferences.txt
    standard output when run from outside the IDE:
    preferences.txt path: directory in which jar is located\preferences.txt
    What I would like to do is retrieve the path to the directory in which the jar is located automatically, so that I could write code like the following:
    String strPath = path to jar;
    File filePref = new File(strPath + "preferences.txt");
    I can work around this by pulling the path to the jar from the file object (.getAbsolutePath()) and always testing my jar from outside of the IDE, but this seems like an awkward solution.

  • Infopath wrong current status

    Hello,
    I have Forms Library with Default View called "Summary" which grouping by column called Status.
    For some reasons 2 forms with status "Approved", appear on "Pending" group.

    Hi Azamat,
    Is Status column a custom column added in the form library?
    For this issue, I recommend to verify the things below:
    Create a new form in the library with Status set to Approved to see if it will be displayed on Pending group.
    Create a new view which will group by Status column in the library to see how it works.
    Check the view settings of Summary to see if there anything has been changed.
    Could you please provide a screenshot of the view with issue?
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Get current swf path

    I'm developing an extension use Extension Builder for Photoshop CS5. I have to use an executable file in my extension. In general, if you use the Adobe Extension Manager to install the extension, the extension's swf file will put to USERPATH\AppData\Roaming\Adobe\CS5ServiceManager\extensions\YOUR EXTENSION NAME.
    However, some time it isn't. And I don't know the reason. My executable file will be copy to the path as same as the swf file. So I want to get the swf file's path.
    In Flex, the File class has two static variables File.applicationStorageDirectory and File.applicationDirectory. But they don't match the swf file's path.
    How can I get the path in runtime? Solution use Flex or Javascript Script is ok.
    Any help will be appreciated. Thanks!

    "panell" <[email protected]> wrote in
    message news:e97o6o$18i$[email protected]..
    > Hi
    > How to get current flash movie path?
    > ex. C:\Movie1.swf? or
    http://www.test.com/Movie.swf?
    myTextBox.text = _url;

  • Application - current vi path different - config file

    If I want to use config files (ini files) with an application, to store settings between runs of the application,
    I would like to name the conifg file the same as the application, just with a different ending:
    application.ext with config file application.ini
    For this, I am using the 'current vi's path' and work from there.
    I realised that the 'current vi's path' of the application is different from the one of the vi itself, even with the original vi being in the same directory as the application.
    The application returns the vi in a path that includes the applicatinon as a directory.
    e.g.
    \programs\application.exe
    gives path
    \programs\application.exe\original.vi
    Thus, it seems that I need a different way of stripping/appending the path for the original vi and for the application, when creating the path for the configuration file.
    Is there a way around it?
    Is the only way to program a 'smart' stripping tool, that checks if the current path includes an xxx.exe part, and then creates the path for the config file accordingly? (This is what I will do, if there is no simpler solution)
    Thanks for any help,
    Stephan

    Hi Stephan
    You don't need a 'smart' stripping tool. Just check in your main vi if it is run by the LV runtime environment or the LV dev. system. Depending on this, either strip the path once or strip it twice.
    Thomas
    Message Edited by becktho on 12-21-2005 03:12 PM
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    StripPath.vi ‏16 KB

Maybe you are looking for