Lot "of the current VI 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 2 current path' VI returns correctly in the development environment:

F:\Projekte\LabVIEW\Test_2009\EvaluateProgramPath.VI

If executed as exe built in LV2009 (and also built like Setup), it returns unusable output:

F:\Projekte\LabVIEW\Test_2009\builds\EvaluateProgramPath.exe\EvaluateProgramPath.VI

LV8.2.1 and all prior versions, the *.exe returns exactly, where resides the *.exe.

Many of our existing programs of LV according to this VI cannot be migrated to LabVIEW2009.
Does anyone know a solution or a fix without changing existing sources?

Thanks for any advice.

Klaus


Tags: NI Software

Similar Questions

  • CP8 Question: can I get the current URL path in a variable?

    Hello

    I want to get the current. HTM path and name of the file into a variable.

    An example would be http://mycompanyserver/training/health_and_safety/infection_prevention.htm

    I created a user variable called myurl

    In slide 1 to the output, I used some javascript I found on the internet var myurl = window.location.pathname;

    On slide 2, I set a text caption to display the myurl

    I published and took my server project.

    The result was an empty box of legend.

    Please, someone could suggest what I should use.

    (I don't want to use the Captivate system variable $$cpInfoProjectName$ $ like is not what I want)

    Thank you

    Peter

    Cardiff (cold, covered, wind and rain. A dark day)

    In Wales

    UK.

    Run this onSlideEnter of the first slide:

    If (window.cpAPIInterface)

    {

    window.cpAPIInterface.setVariableValue ('myurl', document.location.href)

    }

  • Get the path to the current document. Automation plugin

    How to get the path to the current document? (C++ Plugin)

    I used headset and getter - but I do not see that information.

    I understand that there is something in the opposite direction of:

    FullPathToAlias ('... filename.psd ', aliasValue);

    error = sPSActionDescriptor-> PutAlias (someDesc, keyFileReference, aliasValue);

    But how to someDesc so there is a lot of open document

    I'm sorry.

    the answer is:

    logfilename Char [MAX_PATH];

    Manage aliases.

    error = PIUGetInfo (classDocument, keyFileReference, & alias, NULL);

    AliasToFullPath (alias, & filename [0], MAX_PATH);

  • Property path to the current step running

    Hello
    I see an "access point" error for a step property path, only when the step is a sequence that is a subsequence call.  When these properties of the stage are access from the sequence of high level (the one that is open when the pass is started), I don't get the error.  These are the same steps, copy / pasted.  The code of step module is actually labview, write values of teststand using the tool 'set the value of property.  The property path that I use is:

    ThisContext.RunState.Sequence.Main ["" "].

    When executing the step of a sous-suite called by the sequence of high level, I can put a breakpoint on the market, made a right click Navigate to the property of the step and copy / paste the above path.  If the property does not exist whether the top-level or a sous-suite.  When breakpointing in labvew on the error, I can browse the above property at the same time I get the error on also.  I see that there is, but still, I get an error.
    I guess my question is, is there a property path that can reference always reliable for the current step, no matter where it is in the hierarchy of the sequence?  I went through and all I can find is the path of the above property.

    Thank you
    David Jenkinson

    Hi Dave,.

    After talking with a co-worker of mine, we came up with a way to get the current context of the sequence in your code module.  Basically, we have the frame of the sequence of when the code module was called initially.  Then, you can use the context of the sequence to get running, allowing you to get the current thread.  Of this, you can get the context of the sequence of this thread and have access to everything you need from there.  We have created an example program that has a sequence that launches a VI that passes just a while loop and displays the current name of the sequence.  Here is a screenshot of the code module:

  • additional folder added based on the current path of the vi when compiled in executable

    I found a new problem (for me) with the 'current path of vi' work today. When I compile the source code into an executable, I get a strange response from the service.

    I expect to see 'application.exe\application.vi '.  What I see is "application.exe\folder\application.vi. It's ruining my normal routines that address automatically step of removal of additional path that is required when moving between executable files and source code. I understand that I can use the "Application Directory" function and it does not solve this problem. However, as a test, I created a separate program with only the 'path of vi current' function and it worked again normally (application.exe\application.vi). There seems to be something specific to this one application that I don't understand.

    I tried a force all recompile (ctrl-shift-run arrow) and this did not help. I created a new project with the same source, and this did not help. I recorded the source under a different file name file and created a new project for this new source file and it did not help. I was using the function of the path of the current vi twice in top level vi, then I changed to use it only once and it did not help.

    I'm running out of ideas, and it is a project big enough that I really don't want to start over. The extra folder is the path to the file source vi. Any ideas on what would cause additional file information to be inserted in the path returned by the function of the current path of the vi?

    I use LV2012

    Generally, you shouldn't care how exactly screw are stored inside the EXE. If you care, this means that your code relies on it, which is a problem. What follows is general and can be inaccurate, simply because I don't like enough to actually check OK how it is:

    1. The EXE file is basically a folder zipped with the screw and the runtime of LV simply loads and works.
    2. If you use the indicator 8.x, you get a flat structure in the EXE. This is not your case, and I would not recommend it in any case.
    3. If the flag is set to false, LV basically takes all the screws that must go into the exe (static libraries dependencies and included screws) and places them in the EXE file using the same exact folder structure as code. This allows to undress and to build paths and having the code works the same way.
    4. Code that is located in the LV folder (such as the vi.lib code) is placed in a top-level called 1abv1ew folder, so it can be found.
    5. If you need to get the path of the folder, use the app dir VI.
    6. If you need to get a path to VI, use a static reference to the VI and a property node to get its path property. It works in dev and EXE.
    7. Virtual folders are not relevant (that they are not paths). AutoFill files are linked on the disk, so they do not reflect the path, but it's not really relevant. Jeff was simply pointing out that this may reflect the path and that he does not like them.
    8. Most likely your problem (since you say that something is changing) is that you are sometimes a VI that is not in the same top-level VI folder hierarchy, which then changes the top-level folder in the EXE (I'm guessing a VI of another project?). It's pretty easy to check by going to the project files tab and see if you have screws to another folder.

    I hope this helps explain, but as I said, you should generally not care on this issue. The only good reason I can think to need to know is if the paths inside the EXE exceed the limit on the length of path of the operating system, and then you start dealing with that. Except that just use the golden rule that screws inside the EXE will have the same structure as they did before, and to put you outside the EXE should use the app dir VI.

  • How to get the current path of file (jsx) running?

    Hello.

    I want to be saved in the path of the current running jsx file.

    Is there a way?

    Thank you.

    Hi, is it ok for you?

    It seems "app.activeScript" or "$.filename ' is what you wanted.

    #target indesign
    try {
      // not active in ESTK
      // return script path if run from ScriptPanel
      alert(app.activeScript);
    }
    catch(e){
      alert(e);
    }
    
    // return bridgetalk if run with double clicking jsx
    // return script path if run from ScriptPanel
    alert($.fileName);
    
    alert($.includePath);
    

    Thank you

    mg.

  • Path to the current Script

    Is there a way to return the pathname of the script that is running?

    In the instance that you want to be able to run a script from anywhere outside of a hard drive or network by double-clicking it, but have to load files from and the Save to subfolders of the folder which the script is run, instead of hard-coding paths?

    That you will get the folder of the currently executing script...

    alert(File($.fileName).parent);
    
  • Windows path on the desktop of the current user

    Under MacOS ' ~ / Desktop "is the path to the current user's desktop. I would use in Windows? I tried Folder("%username%/Desktop"), but that has not worked. Any suggestions?

    You would use neither Extendscript allows instant access to the office of the current user through the predefined folder class member:

    Alert (Folder.desktop);

    Folder.Desktop is a fully functional pointer in a regular folder, as seen with

    Alert (Folder.desktop.getFiles().join("\r"));

    (see http://jongware.mit.edu/idcs5js/pc_Folder.html#desktop)

  • How to get the current file name and & or path

    How can I get the current path or the file name?

    I have really found the answers in the net. This.Path or app.path have been proposed, but I couldn't make it work.

    Thanks in advance for your answer!

    LiveCycle Designer ARE 8.2.1.3144.1.471865

    Hello

    event.target.path.toString ();  will give the full path, including the file name.

    event.target.documentFileName.toString ();  will give the file name only.

    Good luck

    Niall

  • How can we get the path of the current document?

    Hello

    I want to store the path of the current document file in a string, I tried the AIDocumentSuite, and

    AIAPI AIErr(* AIDocumentSuite::GetDocumentFileSpecification) (ai::FilePath & file).

    His ended in prameter conversion error (c 2664). Can someone guide me to get the current path.

    Thanks in advance

    Farida kaid

    file ai::FilePath.

    Error AIErr is sDocument-> GetDocumentFileSpecification (line);.

    If (error! = kNoError) {}

    There was a problem
    }

  • What is the path of the CT 3.1.20 upgrade to the current version?

    Just installed TB 3.1.20 import Netscape 7.2 emails and address book, which worked well. Component software plug-in "MoreFunctionsForAddressBook" was able to load the "Imported addresses" address book backup. Now, I need to bring current TB. How to upgrade to the current version 31.4.0 version 3.1.20 TB? Is it possible in one step, or I have to install interim versions?

    I think that you can just update directly from 3 TB to TB 31.

    To be on the safe side, you could make a backup of your profile beforehand.

    I have a vague memory of some important changes to 5 TB, but I don't think they've hit the profile.

  • How can I determine the full path and name of the currently open file .ai?

    In Photoshop, right click the file name of the current open file shows an option 'Reveal in Explorer' so I know exactly where the file was opened from.

    In Lightroom, it is displayed in the metadata.

    New to illustrator, I looked in the options of the menu get charge can not see how to find this information.

    Would appreciate the help.

    agckent,

    Is it ALWAYS the case where the folder opened by "Save AS" is the file of the source code for the file that I am saving?

    I believe, with a reservation for the strange behaviour of the different OS versions: in the contrary case, the save option under would lead astray you.

    Edit: Hi Carlos.

  • Is it possible to get the name of the folder that contains the current document?

    Hi all!


    I know how to get the name of the active document


    app.activeDocument.name;


    but I was wondering if you could also get the name of the folder that contains the current document. Not sure if this is possible or not, so I thought I'd ask, if so it save me a lot of time.


    Thanks in advance!

    Hi djbgraphicdesign,

    does this work for you?

    if (app.activeDocument.saved){
    alert(app.activeDocument.path.name);
    }
    

    Have fun

  • History shows that the current session. No history of a previous session.

    Firefox 41.0.1 Windows 8.1.
    Since the update to version 38 (?) 'show history' shows only the current session.
    I have since uodated against 41 with no improvement, bookmarks have remained stable.
    I tried: -.
    Delete Places.sqlite
    Re-install
    SafeMode (no addons)
    Disablimg AVG and defender
    Wisecare and CSA Disablimg

    Changing privacy options:
    Toggle the custom setting remember history/use
    Toggle Private mode on/off
    Clear history displayed/hidden power

    Created a new profile with the Profile Manager.

    Checked the owner and access control of all files and folders in the profile, all full access and read only =.

    Installed the "Housekeeping" module and run it.

    Can anyone suggest any other delicious dishes, or is this a bug of FF running under Win 8.1?

    It creaks! Finally! I think so. I did a positive negative control.
    After a lot of installation and reinstallation of FF. (Why the standard uninstall leaves as many orphaned files program / files / registry entries?) When I decide the uninstall, everything must be removed!)
    Finally, I uninstalled the newer version of the CSA. Even if all the options for the 'cleaning' and 'monitoring' Firefox were off, it seems that it was ups that prevented the record of history. Once that was removed and then history began to be recorded. She did not used to happen. I used the previous versions for many years without problem, but it seems that one of the recent updates (version unknown) started blocking the history of FF.
    (For obvious reasons, I have re - install CSA just to prove the point.)
    PS at the moment, I'm also stay with the version of FF 39

  • Projection Shockwave Flash as v16.0.0.287's plugin check but he updated the current 16.0.0.305 and restart Firefox (v36.0) do not change the situation.

    Shows a check as v16.0.0.287 Shockwave Flash plugin, but it updated the current 16.0.0.305 and restart Firefox (v36.0) do not change the version number or status when rechecking the plugins. Control of Adobe and the Flash Control Panel website confirms 16.0.0.305 is installed. All the solutions to this?

    I noticed in the information in the topic: plugins page under Shockwave Flash, path: line was showing.

    < path: C:\WINDOWS\SysWOW64\Macromed\Flash\NPSWF32_16_0_0_287.dll,C:\WINDOWS\SysWOW64\Macromed\Flash\NPSWF32_16_0_0_305.dll >

    For outdated version 287 .dll file was still there and listed before the current version of 305. I deleted the 287 .dll version and restart Firefox and check the plug-ins again the problem seems to have been resolved.
    Greetings - Spindrift

Maybe you are looking for