Current path of the VI is empty when connected to the indicator

I'm building an ActiveX executable from another language (Visual Basic, C++, etc.).  So I need to create the object, the path of the vi.  I don't know why, but the planned path gives an error.  I wanted to check the way VI so I added an indicator to the current path of the VI.  The indicator is empty when I run the VI.  How can this be.

LabVIEW 2010 SP1, Windows XP SP3

VI was originally in LabVIEW 2009 and I have improved.  Some screws sub hepatitis was added from previous LabVIEWs (as far as version 6 if necessary).

Thank you

Javi

So much worse... It follows from several things.  One is that when you click on a vi through a project the application path is different if you opened to the top of the vi.  And the other thing was using the open vi reference and methods to initialize controls.  Is it possible to delete an ad?

Tags: NI Software

Similar Questions

  • 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.

  • What is the current path before the login for file (image)?

    Hello

    Once I login, I get the background images providing paths relative to the tag in the page, as follows:
    inlineStyle="background-image:url('Images/welcome.jpg');
    that points to:
    C:\Myproject\public_html\Images\welcome.jpg

    Note that I have not specified any root "/" in the above path. This works.

    Now the problem is before sign you, it's in the login page. Here, for some reason, the image above is not find and load.

    The curious thing is that once I am logged in, if I go back to the opening page of initial session with the back button of the browser, now the image is found and loaded! Of course, now the only difference is that I don't have a current session, since I am already connected.

    For this reason, I think that I specify an another relative path, since the paths vary depending on the State of the session (no current session vs session) or perhaps paths must be absolute (but different from/Images/thanks, since it does not either)...

    You have an idea?

    Your web.xml would be this tag in this case that protects the unauthorized root access-



    allPages
    /*


    valid users

    By https://blogs.oracle.com/jdevotnharvest/entry/solving_jdeveloper_11gr2_issue_with
    Protect the path Java EE application root against unauthenticated access means however also that the resources of the web such as photos or stylesheets or deferred loaded JavaScript libraries.
    are blocked until the user is authenticated. For the same reason clients often report absent from the images on their web login pages.

    Or you can remove the tag above if you don't really care about unauthorized access or add the following line to your web.xml file
    **
    images*.
    /images/images*.
    *
    *
    **
    valid users
    *
    *
    **

    Published by: detrilles on May 18, 2012 Sudipto 17:16

  • Course VI Path returns the location of the original source file, exe does not.

    LV-2010 running.

    I have a VI that opens a PDF style manual when the user clicks a button.  My development project is configured with a project folder main and 3 subfolders called Source, Application and install.  Of course, the source code is in the Source folder.  I also have a copy of the manual for the Application with the application.

    When operating, the VI uses object traced the current VI as starting point for where is the manual.  Current path of the VI includes the Source folder in the path that it generates.  This is not a problem when you run the source code, like the VI is running in this folder.  Problem is that the Source folder is also included in the path generated running on the target computer running the exe.  There is no Source folder on the target computer, so I am at a loss to explain why this is happening.  It's probably a parameter in the constructor of my application, but I can't.  Never had this problem before.  Can anyone help?  Thank you.

    Start reading here.

  • Path of the DLL

    A vi need to call a dll. Can I know where to place the dll.

    The vi is inside a vi library. Later perhaps need compile all the screws in exe.

    Any suggestion, thank you.

    Custom DLL must not be in the project directory, but can reside in the same directory that your library are screws. As long as you copy the entire library, including the DLL only once, it should work properly. The LabVIEW application builder will be for all the DLLs where you have not entered only the DLL name alone (it always shows the current path in the path of the library, but it is important, how you entered it) include them in the support directory and fits to any node Library Call in the executable file to point to this location.

    For DLLs where you entered only the name of the DLL, LabVIEW assumes (rightly) that it is a system library like any DLL that would be in the directory orSystem (32) Windows or in any directory in the PATH environment variable and does not include it in the application of molding, but allows to locate the right also DLL in the Windows executable file

    Especially for Windows system DLLS, it is very important to NEVER include in your built application. Outside the license issues (you have not the right to distribute the Windows DLL components) a system DLL different one installed in a system will almost always cause serious problems. Especially if an application uses its own version of a DLL as kernel32.dll it will fail badly as the version of the DLL has no idea on the already created system objects in the DLL loaded correctly elsewhere in Windows and will simply crash on many function calls.

  • 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:

  • All fields are empty when the button is clicked

    Hello

    I have the result and 2 window search criteria. all the fields in the search window are not visible when the user enters some search criteria and click on the button Search opens the window of results, the opening of the result window, I want to say is not no button text box are visible in the search window, the window is empty. Please can someone tell what is wrong, what I have to change any property of window or controls.

    Thank you

    Vish

    Hello

    Oh no problem, you must use 1 table of main content & display the search result in the stacked with the next consideration...

    Please note on canvases stacked that you have the following properties of the view-port, which explain the key solution do not display the form elements in your case.

    1- T it position from view of the piled in canvas (Viewport) on the table of contents of the current window. (Display X, Y Position window)

    a.Viewport X, position Y on the window:

    Specifies the coordinates x, y to the left corner of the canvas stack relative to the top left of the display of the contents of the current window.

    -This means that the position of the top left of your canvas stacked on top of the canvas content.

    b.Viewport WIDTH, HEIGHT

    Specifies the width and height of the display for a stacked canvas.

    -This means that the actual size and the position of the view that defines the part of the drawing area is displayed in the window running.

    2- T it position from view of the piled in canvas (Viewport) on stacked canvas itself. (Display X, Y Position on canvas window)

    Viewport X, position Y on canvas

    Specifies the location of the top left corner of the view from the upper left corner of the canvas. The size and location of the window define the view; in other words, the part of the canvas which is currently visible in the window which is attributed the canvas.

    This parameter specifies what part of your willingness to stacked canvas the viewport (visibility) will cover.

    These properties help you make your most visible form elements on your canvas without using the scroll bar.

    You should try for yourself & recognize more clearly.

    Amatu Allah

  • IPad no charging current after the update to IOS 10, when connected to the laptop.

    My Ipad no charging current after the update to IOS 10, when connected to the laptop. But fine load with Bank charger or battery with the same cable brightening.

    PL suggest how to overcome this problem.

    Have a look here If your iPhone, iPad or iPod touch won't charge - Apple Support

  • TestStand 2014 freezes when I select a path from the project during an Action LabVIEW using LabVIEW TERM 2014

    In the company that I work, we have a solution that uses the two TestStand 2014 and 2014 LabVIEW.

    We work with the development version of the two, but we are deploying our automation using TestStand and Labview Runtime engine 2014.

    We tried to deploy a new station, but during the analysis of our project, the User Interface for Teststand (version Deploy) froze.

    I tried several things and decided to install a full version of TestStand 2014 and 2014 LabVIEW to try to debug the problem.

    What I've discovered is that when I create a new sequence in TestStand, add a VI Action and try to load the path to the project, the TestStand freezes if I use the adapter Runtime.

    If I go to the LabVIEW development system adapter in TestStand, it works. However, I need to use the Runtime since it's free while the LabVIEW Development is paid.

    We already use our solution in other places, and this is the first time, it never happened. The only post I found online that had something to do with this issue is this.

    If I remove the path of the project and call the VI himself, as "dvu", said in his second post, it works.

    However, it is something not good to do in our automation together, since we have several calls from LabVIEW.

    Any ideas on how to do this only works with 2014 DURATION and 2014 Runtime LabVIEW TestStand?

    Thank you!

    Thanks a lot Stop_Luke_and_Listen, but the guy where the deployment was made called the support NEITHER and they couldn't find the problem, so they formatted the PC.

    Now it works very well, so I won't be able to generate the report. It would have been a great idea.

    Thank you!

    SOLUTION: Format the PC and reinstall.

  • When I download a document or image on the WEB, see other my path of the file?

    Privacy when downloading from a web site

    When I download a document or image on the WEB, see other my path of the file? To help you remember specific things about a company or a person, I have nicnames for their files well, it woud be embarrassing if they were able to see those names somehow. Not that they are offensive... just ridiculous ;)

    Number of files - particularly documents created by word processing programs and images created by digital cameras - contain "metadata", which may include personal or location information that'd rather you keep private.  It's completely outside any file name you have given to the file.

    There are different methods and tools available to "scrub" the files before sharing.  For example, only Word 2010 has a built-in "document inspector" that allows you to watch and remove metadata.  See also http://lawyerist.com/how-to-quickly-and-easily-remove-meta-data/ you can use your favorite search engine to find more ways to remove document metadata.

    Regarding the images, the files created by digital cameras usually have "EXIF" metadata included, which not only contains information such as the date parameters, time and camera, but may also include GPS information if the camera has this feature (for example, a camera in a smart phone).  See, for example, the results of this Google search: http://lmgtfy.com/?q=remove+jpeg+metadata

    Some - but not all - file sharing web sites automatically scrub metadata.  It is safer to do it yourself before you download files.

    And just to be pedantic, 'lung' sounds as if your system memory involves a lot of hot air.  The word you're looking for is "mnemonic".

  • Error: "file 9xmigrat.dll on (unknown) is needed type the path where the file is located, and then click ok" when you try to install Windows Media Player 9.

    original title: WMP9 re-setup

    Hello. I use XP SP3 with all post-SP3 updates critical. Windows Media Player 9 does not work. When I try to reinstall, I'm stuck: the 9xmigrat.dll of file on (unknown) you need to type the path where the file is located and then click ok. I like WMP9 and do not want to use a newer version of WMP. I was not able to find 9xmigrat.dll

    This happens when I try installing to wmp.inf.

    If I try to install the MPSetupXP.exe, it does not either.

    Any ideas? TIA

    Thank you, David. It seems that the problem was caused by incorporating the updates for WMP9 using nLite. I made another CD of installation excluding these updates. A clean install of XP SP3 and WMP9 is working. Thank you for your response.

  • When I opened the Windows Security Center it says "the Security Center is currently unavailable because the Security Center Service is not started or was stopped.

    When I opened the Windows Security Center it says "the Security Center is currently unavailable because the Security Center Service is not started or was stopped.  I can't see if any firewall or antivirus works etc.  Anyway to reinstall the Windows Security Center or is there something else I can do.  Concerning

    Hello

    · Do you remember all the recent changes on the computer before the show?

    · What is the service pack installed?

    Follow the procedure described at the link below and check if it will help: error message when you try to open the Windows Security Center in Control Panel on a Windows XP computer: http://support.microsoft.com/kb/919291

  • The battery shows empty when battery full icon

    Original title: laptop battery

    Hi I have installed a new laptop battery folling the calibration it according to the instructions. the battery shows empty when battery full icon

    someone help please John

    This means that the charging system in your laptop is broken and needs repair or replacement.  Since you have replaced the battery, you know that is not the problem.

  • How to display the name of file or the path of the photos on my screensaver when the value for 'My images' using Vista?

    I simply marked the box in 'settings' of the screen saver under Windows XP, but Vista does not display this option!

    When an image appears on my screen saver, I want to find it among the thousands of photos by reading the name of the file or the path at the top of the screen.

    Hello

    This screensaver Vista version doesn't have this option.

    The feature is now part of the Windows Live Photo Gallery.  You can go to http://get.live.com to download the program.  .

  • My folders appear empty when I discovered by something other than the folder view.

    My folders appear empty when I discovered by something other than the folder view.  But in the folder, I can see and use files.  The search engine does not work.

    I use Windows 7 Home

    See if that helps,

    http://Windows.Microsoft.com/en-us/Windows7/advanced-tips-for-searching-in-Windows

Maybe you are looking for