path of the image file that links do not correctly in the executable file

I have a jpeg file in a project that I'm building which is not loading when run as an executable file.  The executable seems to be looking in the same directory that the image file was originally instead of the support folder where the image is deployed.  On another machine, the exe will look for the image in the directory, that were found on my machine.  When I drag the image file of the project on the block diagram Explorer, it creates a constant path of file indicates where the file is located on my machine.  This does not seem to update when I build the exe.  The image file is included in the source files.  Any help is appreciated!

A constant path is... Yes indeed constant! It's not automatically change whenever someone might move the file too, whatever his imagination made her do. He does not maintain a link to the actual file it could use later to detect that the file has been moved elsewhere. In fact Windows has quite such a mechanism.

So if you want to access an external file to your executable application to first do a correct path when running. My approach is to put in a directory from a VI file that I put in my application. Then in this VI use the way of getting current VI, band name the VI of it and add the location relative to the other file to it.

If you do something like this:

The project directory

Directory of the utility

My Location.vi

Data directory

MyResource.jpg

in system development, then:

The application directory

MyApplication.exe

Data directory

MyResource.jpg

in the application of the construction.

With this provision, it doesn't matter even if you use the old format of executable LabVIEW 8.x or the new default format since LabVIEW 2009.

My Location.vi is just a VI that takes a relative path in the entry (in this case "... / directory/MyResource.jpg data" called the "Current path to VI" node, use 'Band path' to remove the name of VI, then build to add this entry path, and this is!.)

Tags: NI Software

Similar Questions

  • 2010 user.lib path to the executable file changed since 2009 (1abvi3w)

    Our group has often using VI server to control the other executables LabVIEW for automated tests. We expect the VI to be within the executable to control via Server executable VI screws and screws we need to construct the full path.

    For LabVIEW 2009 user.lib screw the path used to appear as:

    . exe\LabVIEW 2009\user.lib\...

    For LabVIEW 2010 user.lib screw (on Win XP AND Win 7) the path appears now as:

    . exe\1abvi3w\user.lib\...

    It's just information for developers. He really threw a key in our calls to the VI server and are uncertain as to why he's changed and why his "1abvi3w". Who's the funny guy?

    Seriously, why this change and why to use a '1' and '3 '. Is this an attempt of 1337 speak?

    Paths in applications applications are based on the hierarchy of the source of VI. For files in the directory of LabVIEW, the LabVIEW directory real name was used in 2009. It was ok except when creating relies on platforms or on multiple computers where LabVIEW has been installed to a different location. So for 2010, a single, constant directory name has been chosen.

  • Images won't load does not correctly

    Test of charge very well, but all the images are blurred. This includes images in the menu toolbars and bookmarks.
    Have you tried refreshing compensation Mozilla, new profile, all the cache and cookies, complete reinstall. Removed all add on etc, but still problem. Everything looks fine in Safe Mode and in other browsers.

    Make sure that you are not running Firefox in compatibility, or with a reduced screen resolution mode.
    You can open the properties of the desktop Firefox shortcut via the context menu and check under the tab "compatibility".
    Make sure that all items are disabled in the tab "Compatibility" in the Properties window.

    You can try to disable hardware acceleration in Firefox.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    You will need to close and restart Firefox after enabling/disabling this setting.

    You can check if there is an update for your display driver graphic card and search for hardware acceleration of related issues.

  • Exporting Web links do not correctly in IDCS5

    I created a created buttons, interactive newsletter to bind outside URLS and emails. When I use the preview mode in ID, everything works perfectly. However, when I export to a swf file, only the emails work. I can still hover over the buttons and get the effects I created, but the links do not work. I know it's probably something simple, but I am new to create interactive documents and could use very little help.

    Thank you

    Download you the SWF file on a server?

    Bob

  • Some files of presentation that links do not when the project is published and downloaded on the Web site

    Hi all

    I ran into an interesting question and have not been able to solve for a long time... wonder if anyone has any input to share.
    We have created a program of training with Captivate 5 and included within some developed with HotPatotos6 learning activities. Everything works fine, however, when I publish the project I get this warning message:

    The following files/projects are related to the open project. The related files/projects may require export.

    Path:

    [C:\Documents and Settings\maurom\Desktop\CST_III\follow_up.htm (slide 17)]

    It is also important copy all referenced files and projects with their file HTML in output folder.

    I made sure bring more in the folder buplished times the file display htm and HotPatato6 working files and everything works fine when I run the project to the folder on my computer. However, the problem starts when I load the project on the training site. On the site, everything still works perfectly, but these files developed htm wit Patatos6 Hot do not open. At first it seems right that there is a broken link, wait until the link is here.

    Someone has suggestions ideas to share on this?

    Thank you

    :-)

    If I read this right, you have something on slide 17 which points to this .htm, is that correct?

    It seems that the object is pointing to the location on your drive C, an absolute location.  When the .swf is on the web server, it seeks a C:\documetns and folders\etc etc. on the server to training.

    You have to give a relative path.  If you put the .htm files in the same directory as your .swf, you should be able to simply point the target to the .htm itself, remove all C:\documents and settings\etc etc.

  • Image map that links to the framework

    For my site, I want to use the Image mapping to open new pages in the frame below the menu (as can be seen on the link below), however the site opens in a new window, even if I said dreamweaver that the target is box below (called "Content"). Anyone know why it does not work?


    http://portfolio.IO.utwente.nl/student/graatb/

    You are aware of all the reasons would never use images, right?

    Since DW did not load frames entirely for several versions, you need to add manually a NAME attribute for your destination in the frameset frame - then would make you the attribute target link to this NAME, you added, for example,.

    In your case, you would change-

      
    
    on this subject.
      
    
    That should do it.

    Post edited by: Murray * CPA *.

  • buttons that links do not label in the framework

    Hello
    I have buttons in a video called navigation which is then put in scene 1. In scene 1 I frames with labels and I want the buttons to link to the scene as a single, label whatever. Seems the value OK but when I click on the link it seems to just reload the film of navigation instead of going to the frame in stage 1. I can't understand what I'm doing wrong.
    Thanks for any help. Furthermore, I use Flash 8 Professional
    (about 1 meg) Here is a link to the flash file

    Andrew Pearce wrote:
    > Urami thanks for your response. I tried to change it and also tried to change the
    > label image name to the anchor, but the two did not work. I've updated the flash
    > file. My apologies if you had a glance to this cause, I forgot that I removed actions
    > and added another layer in a scene to manipulate buttons. (which works but)
    (> covers animated buttons etc) I have returned now.

    OK, got it.
    Just as before, go play at the stop to add _root and remove the stage name

    example:

    on (release) {}
    _root.gotoAndStop ("tower");
    }

    see the main timeline, _root continuation of action and target.
    You might as well use _parent instead of _root, he pulled UP
    Bungalow on the clip.

    Don't use the stage names. The scenes are just empty frames, giving an end to one
    and the beginning of another delay. They are not included in the final SWF files,
    Think of it more as convenience of creation. That's why you can't target the
    with actions. Now, you can get away sometimes, but on complex projects usually
    do not in order to better learn to not use it.
    I guess that's it, change the actions to the foregoing and you good to go.

    --
    Concerning

    Urami

    --

    Happy new year guys - all the best there is in the 2006 :)


    http://www.Flashfugitive.com


    http://www.Firefox.com

  • Highlighted visited links is not correctly returning on no when the purpose of the link changes.

    I visit a bulletin board (http://www.bogleheads.org/index.htm) which shows wire links that I recently visited in a purple apotheosis (vs blue, not visited links). Normally, these links remain purple until someone posts another response to this thread, and then it will change back to blue link (when the list page is refreshed or I revisit). But what is happening is more - links just stay "purple", even if the new positions will these threads over time and I have not revisited them again. Any clue?

    Yes, I looked at the page source and see only the links with the ID of a forum and a number of topic and possibly a starting incrementing in 50 value.

  • Path to the executable in Windows XP Mode in Windows 7 PRO

    I downloaded and install Windows XP Mode, the system says finshed installation but I see not "Windows XP Mode" train my Start menu. I do not see the "Windows XP" Mode under "Program files."

    When I install Microsoft Virtual PC, it appeared in my Start menu and I can run it too. Where is executable ' Wndows XP Mode' and how to use it?

    Sorry for the delay in responding but I had a look at some of the articles on the web which may help.
    I'm missing something or just not happy to say that all articles are perfect, which not is not in my opion but I posted which are part of the most successful in hopes you will get.

    How to install and setup Windows Virtual XP Mode in Windows 7:
    http://www.SevenForums.com/tutorials/8247-Windows-XP-mode-install-Setup.html

    Installation and use of the XP Mode in Windows 7
    http://Lifehacker.com/5245396/set-up-and-use-XP-mode-in-Windows-7

    Install and use Windows XP Mode in Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/install-and-use-Windows-XP-mode-in-Windows-7
    http://Windows.Microsoft.com/en-us/Windows7/install-and-use-Windows-XP-mode-in-Windows-7#section_3

    Virtual Machine Manager: Frequently asked Questions
    http://TechNet.Microsoft.com/en-us/SystemCenter/VMM/bb871039.aspx

    Before installing XP mode:
    Control Panel of configuration/programs & features/Turn Windows features on or off / Windows Virtual PC: 'ON' before installing XP mode
    Have no security "Enabled" when you are prompted during the installation.

    Also:
    http://www.howtogeek.com/forum/topic/virtual-XP-cant-be-created-as-administrator

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • The value read by visa read that VI is not correct!

    I design a labview program to control the Agilent E5072C Network Analyzer. When I want to get the value of this instrument, I use VI "VISA read" listed in the plate. However, the value read from this VI's latest measurement of time value. For example, the last time that the read value is 1.0 db, and this time the measurement value is 1.2 db. But when I use 'VISA read' VI to extract the value is 1.0 db.

    Agilent also provide a VI for this device to read the measurement value and she was always correct value. If someone could tell me why? need to do any action before the value read from this instrument if I want to use VI "VISA reading" instead of Agilent VI?

    You are probably reading too quickly.  Reading it in NOR-MAX, you do it by hand, it takes more time.  When you do that programmatically, it is "instant".  Try using the * OPC? command to activate your order in a query.  He returned then a '1' in the buffer.  Read the '1' and then create the command fetch.

    For Dennis:

    I've had bad experiences with the drivers provided by the manufacturer to the point where I don't even try to use more.  But Agilent is also anal about their drivers, because they are on their books, they should pose no problems.

  • Walking from Vista to Windows 7 system keeps asking for the product key that key is not correct.

    walking from Vista to 7 system keeps asking for the product key

    Related topics

  • image as a link

    How do I upload a picture to a page and use it as a link to redirect to a page of the application?

    Hello

    Place at the source of the HTML area, something like

    
    

    Replace 'your_link' with the real link and 'your_image' by path + name of image file

    BR, Jari

  • Profile loading Help - profile 'path' in the latest Nightly build of WIN32.

    I was used to a specified path to a folder containing a user profile, who worked for me from a shortcut that points to the path of the executable files of loading and "-'the folder path' profile '.." I am looking to restore the ability of browsers to load the profile said that I rather liked this feature. Thank you for your help and your patience continues.

    wubalubadubdub

    See also:

  • "Call the executable" allows the environment variable "path"?

    Hello

    It seems that when you use the step type "call the executable" you need to enter the absolute path of the executable, or the absolute working directory, in the definition of "call settings" step.  I seem not to be able to put in a *.exe by himself in the path and have the command is found, even if I can't enter this same command on the command line (windows 7).  Is it possible to configure this step to use the windows ' path' environment variable to search for the executable?

    David J.

    You can do the following:

    (1) specify cmd.exe for the file path.

    (2) specify "/c yourexe.exe" for the argument expression

    This will launch a command window and tell it to run your application with the simple file name.

    The reason why you can't put just yourexe.exe in the path of file is that TestStand made its own resolution of file path that is different from what the window command. It uses its directories to search to resolve relative paths. If you do not have to specify an absolute path for the file path parameter, but it must be compared to a TestStand search directory or the current sequence file.

    Hope this helps,

    -Doug

  • Path of the application on the comments?

    I have an application that needs to synchronize data between my network and my MacBook. I have Fusion 2.0.6 and WinXP SP3 running on the Macbook. XP Pro on the server. The database on the Macbook is in a shared folder and the Mac HD is mounted as drive N: on the server. The application runs in Windows on both ends

    Synchronization must be performed from the main database on the server, which then connects to the remote database on the Mac. No problem seen the distance DB, which is at N:\Users\Shared\TMW9

    The application on the network needs to know the folder in which the program can be found on the Mac. It doesn't have the full path of the application including the name of the application.

    I can't understand what is needed in this area. If I put in the path to the .vmx file, without the file name Professional.vmx in Windows XP, the application seems satisfied, but synchronization crashed shortly after the start. I tried ' N:\Users\rbecker\Documents\Virtual Machines. localized\Windows XP Professional. vmwarevm\Windows XP Professional.vmx \"C:
    Program Files
    «TMW9\ «» I tried it escaped, unescaped and preceded by vmrun. Nothing seems to be acceptable. He said that is not the path to the directory of the program.

    How can I tell the program what the path to the executable file on the virtual machine?

    Shared folders have yours, if you need your Mac files available in XP.  It however will help you share your XP files to other computers.  The toggled State of the shared folders does not affect what you're trying to do.

    If you want to go down the road to mount virtual drive on OS X to share, then you need to fix MacFuse so that it works correctly, then the previous instructions, I wrote will work.

Maybe you are looking for