Best way to include a jpg file in a project (where to locate the file)

Inside of my main VI - I am "building a path to the current VIs" directory where I have a jpg file. This jpg file displays fine when running this VI.  To do this I get the current path, strip the VI name and then add the jpg name to the path.
Now when I build an exe file and run it the jpg is not displayed.  In the build specification it appears to force the jpg file to be in the support (or data) directory.   Because of this it can no longer find the jpg when running in exe form.  I also notice that the path returned when running a exe includes the VI name as well as the exe name.
     My question is what is the correct way to set up a path to this jpg (and perform an exe build) that will work both when I run the VI normally and when I use it as an exe?

See e.g.: http://forums.ni.com/ni/board/message?board.id=170​&message.id=270985#M270985
Another option would be to add the image data as a diagram constant inside the VI if it the image should be an integral part of the VI. .
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • What is the best way to include an xml file in JSP?

    I have a jsp page that I need to include an xml file. The xml file
              uses an xsl to render the file. What is the best way to include the
              xml file and still maintain the structure of the style sheet?
              Thanks
              Jennifer
              

              The best way is using the tag lib. If you cannot, but you can use JAXP, you can
              try
              javax.xml.transform.Transformer.transform(Source xmlSource,
              Result outputTarget)
              throws TransformerException
              You construct the transformer with you xsl, use you xml file or DOM to form xmlSource,
              and use JSPWriter "out" to form outputTarget (StreamResult). But if your JSP page
              generates the xml itself, tag lib is the only way.
              [email protected] (Jennifer) wrote:
              >[email protected] (Jennifer) wrote in message news:<[email protected]>...
              >> I have a jsp page that I need to include an xml file. The xml file
              >> uses an xsl to render the file. What is the best way to include the
              >> xml file and still maintain the structure of the style sheet?
              >>
              >> Thanks
              >>
              >> Jennifer
              >
              >Or is there a way to parse the xml file with the jsp page to display
              >the information. I cannot use the Java Standard Tag Libraries as the
              >version of iplanet we are running does not support the JSTL
              >
              >Thanks
              >
              >Jennifer
              

  • Best way to include 1-800, 866, 877, 888 into Device/line approach to CSS

    I am running Call Mgr 4.1.3. Due to the number of small remote sites that we are expanding to, I have been using the Device/Line approach to Class of Service to minimize the number of CSSs and PTs. I used the textbook method of defining BlockLocal, BlockLD, BlockIntl, Block nothing. My LongDistance Translation Pattern is 9.1[2-9]XX[2-9]XXXXXX. This blocks 800, 866, 877, and 888 in my BlockLD partition. What is the best way to include these 8xx series toll free numbers into the Device/Line method so that they are included into the COS that allows local calling? My guess is that in the 9.1[2-9]XX[2-9]XXXXXX translation pattern assigned to the BlockLD partition, I would add 9.1800XXXXXXX, 9.1866XXXXXXX, etc, translations and click "route this pattern" and associate it also with the BlockLD partition.
    Is that the correct approach - or is there a better approach? Thank you.

    Thank you so much for the fast reply Preran. But for me the tricky part is to implement the html code from the sample page into actions within Edge and to those images I want to be affected.
    The html-code on the sample file is;
    <div id="cubeCarousel">
        <div id="cubeSpinner">
            <div class="face one">
                 <img class="img_slider active" src="img/black.jpg">
            </div>
            <div class="face two">
                <img class="img_slider" src="img/blue.jpg">
            </div>
            <div class="face three">
                <img class="img_slider" src="img/purple.jpg">
            </div>
            <div class="face four">
                <img class="img_slider" src="img/red.jpg">
            </div>
        </div>
            <div class="nav">
                <div class="left arrow"></div>
                <div class="right arrow"></div>
            </div>
    </div>
    What I don't understand is how write this code in Adobe Edge so the jQuery scripts connect to images in my Edge composition.
    Is there any guidelines for the syntax and how I should write these lines in Edge, or any tutorial that show this? Or do you have anu code example that I can use as "dummy"?
    BR
    /Bengt

  • What's he best way to include Adobe PDFs on my blog?

    What's he best way to include Adobe PDFs on my blog?
    I create worksheets as a teacher and would like to share them from my blog. Currently I am linking to Scribd etc to share PDFs. If I upload the worksheets as an image is there a way to adjust the size/resolution of the PDF for easier viewing? 
    Thanks!

    PDFs are just files. Can you upload files to your blog space? If yes, just upload the PDFs then, in a blog entry, provide the web link (URL) for each file (PDF).
    Or, place the PDFs into your free acrobat.com "files" storage (5GB free). You have one as you have an Adobe ID (needed to make your post here eh).
    https://cloud.acrobat.com/
    You can have acrobat.com provide a "share" link to the PDF. Place that into a blog entry.
    Or - same idea as above (use a "file share" service) -- Microsoft's OneDrive, Adobe's Creative Cloud, Google drive, DropBox, others ...
    Be well...

  • Best way of including timing in a waveform graph?

    Hello all,
    I've been toying with a number of different ways to do this, but so far I haven't had all that much luck. I've posted a picture so you can see what's going on. All I have is 4 plots that need to be plotted with accurate timing information on the x-axis. I guess I'm just wondering what the best way to go about this is. This method seems to be the most cluttered and messy that I've done, but is the only one I've gotten to have the actual correct timing info on the graph. I would put a wait in the loop, but I need to acquire this data as fast as possible. Thanks for any help!
    Geoff
    Attachments:
    Graphing Test.jpg ‏74 KB

    The display options you have chosen are OK on their own.
    If you're looking to get more speed out of the code, try only graphing the data every 10 iterations or so. You can save the processed data (your waveforms) in a shift register where they can then be appended every 10 iterations.
    This will obviously not clean up your code. The best way to clean up your code might be to simply throw the conversions you're performing into a sub-vi. Or create a time input for your "meters" VI and have thr processing done there with correctly-scaled values being outputted.
    Hope this helps
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Best way to upload a large 25 minute video and where to?

    best way to upload a large 25 minute video and where to?

    Just a couple minutes surfing - YouTube only allows 15 minute videos from general users -- to upload larger apparently you have to be a trusted long time source.   There is also a restriction on the file size.
    YouTubes help section should give you all the details.
    I don't watch online videos - so I just used a query in ASK.Com to get some quick tips.

  • I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I have tried a lot to find an app or some way in email to attach multiple of pdf files in one email. I could not find anything that sends multiple pdf file in one email and still keeping the file in simple pdf format for the recipient.

    I am not aware of a way except for photos that allows you to select multiple files in an email. I even checked settings in the Adobe Reader app, and it does not show that ability.

  • Is there a way in an unstructered Frame11.0 file to change all anchored frames in the file to a specific size at the same time?

    Is there a way in an unstructered Frame11.0 file to change all anchored frames in the file to a specific size at the same time?

    Rog,
    This is perfect use case for ExtendScript. You could easily iterate over all anchored frames and resize them. You would probably want to resize the contents as well, though, which would add a few extra lines of code.
    Russ

  • I can not export a Keynote 2014 as a manual advance quicktime.  What is the best way to playback a Keynote on a PC to look exactly like the keynote that I created?

    I can not export a Keynote 2014 as a manual advance quicktime.  What is the best way to playback a Keynote on a PC to look exactly like the keynote that I created?

    There's no really good way for it anymore. Sharing via iCloud is likely the best possible option, but I haven't had an opportunity to try that out yet. I'll need to get my hands on a Windows PC to see how an updated Windows browser displays presentations.

  • I finished adding my transtions to my timeline.  I was having crashing issues so I shut down everything before I rendered the project and now it tells me that the project is unreadable or the file is too new for this version of final cut. What Happened?

    I finished adding my transtions to my timeline.  I was having crashing issues so I shut down everything before I rendered the project and now it tells me that the project is unreadable or the file is too new for this version of final cut. What Happened?

    What Happened?
    No way for us to know.  But if your system was crashing, there definitely was a problem.  The FCE error message you got normally indicates the FCE project file has been corrupted.  This probably happened due to whatever caused your system to crash & shutting down the system.
    First, make sure your system is running correctly.  Then, use the Finder to navigate to /users/yourusername/Documents/Final Cut Express Documents/Autosave Vault and find the most recent backup copy of your FCE project file.  Copy the file to your Final Cut Express Documents folder (copy the file, don't just move it).  Then double-click the copy to open it in FCE.  It should open ok, but will probably not have your most recent edits (transitions).  You may have to rebuild the transitions, but at least you will be back in action.

  • The File name property is not valid. The file name is a device or contains invalid characters

    I have an SSIS task that has run successfully for years. They just moved the dtsx to a new server and now it is failing. 
    Issue:
    The task has a data flow that writes a raw file destination. It then has a subsequent data flow that reads the raw file destination. 
    The path and name of the raw file is passed to each of the data flows via the same variable. 
    The raw file resides in a folder on the server in the same path that the dtsx resides in. 
    The task fails with the "The File name property is not valid. The file name is a device or contains invalid characters" error when trying to access the raw file.
    What we have done to troubleshoot:
    1. I ran the task successfully on my local machine so it is definitely a server issue.
    2. The first thing we were seeing was that it failed trying to write to the raw file. The task is set to "Create Always". 
    3. We saw that the dba's copied over the entire directory structure from the old server which included a previously created raw file, so we deleted the raw file.
    4. We reran the task and it successfully wrote a new raw file but then failed on reading the raw file with the same error as above.
    5. We reran the task AGAIN and this time it failed trying to write the raw file throwing the same error as above.
    6. The dba looked at the directory and the account that performs the task has full control.
    7. The dba looked at the raw file that was created and verified that the account that performs the task has full control of the file and that it is the owner of the file.
    Summary:
    The task fails when trying to access the file EXCEPT when the file does not exist. In that situation it can write the file but subsequently fails in accessing it again.

    Hi Whalensdad,
    Based on my research, the issue can be caused by the following reasons:
    There are some invalid characters in the File name at package runtime. In this scenario, just as Russ said, could you please post the value that is in the File name variable? Also use a Script Task with Messagebox.show to show the variable values at runtime.
    May be it changes to others at run time.
    The account runs the package not having access to all the folders in the path. Since you are moving the dtsx file from one server to the current server, do you also move the raw file to the same folder in the current server? Does the user runs the package
    have access to all the folders in the path? To solve this, please ensure that the user has access to all folders and the raw file in the path on the current server.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support
    Please see the response above. I can't use a message box on a server so I logged the values to the database. The resource account has full control to the folder. I haven't been able to get the DBA to check the SQL Agents permissions, but I was always under
    the impression that if you use "Run As" on the task, it will not use the SQL Agent but the account you identify it to "Run As". The "Run As" account has full control on the folder and file.

  • I had this video file and I was trying to flip it to a format that would work with iMovie.  It used to have the Quicktime image with it.  So, I assume it was a QT file.  But, somehow I've changed the file from a video to a folder.

    I had a video file and I was trying to flip it to a format that would work with iMovie.  It used to have the Quicktime image with it.  So, I assume it was a QT file.  But, somehow I've changed the file from a video to a folder.  I've tried to undo the action.  No luck.  I wasn't running my Time Machine.  So, I can't go back.  Help.  It's the only copy of this video.

    I've tried to undo the action.
    How?
    Please detail ALL you have done so far in the way of troubleshooting?   Need this info to avoid the been there done that scenarios.
    it's the only copy of this video.
    Where did you get the video from?
    From the pic I noticed that the folder is 841.9mb.  What's inside?  Or what happens when you click on it?

  • How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tri

    How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tried to reopen and now it won't work. I am using Adobe InDesign CS5. It is the only version on my comp. I have tried opening on another comp & copying the file – same error comes up. PLEASE HELP

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • Cannot make a cache safe URL for "1025/styles/Themable/corev4.css", file not found. Please verify that the file exists under the layouts directory.

    HI
    i restored a sharepoint web 80 application in our test domain
    and after when i browse the new web application 
    it says 
    Cannot make a cache safe URL for "1025/styles/Themable/corev4.css", file not found. Please verify that the file exists under the layouts directory. 
    adil

    Hi  adil,
    According to your description, my understanding is that you encountered the error “Cannot make a cache safe URL for "1025/styles/Themable/corev4.css", file not found. Please verify that the file
    exists under the layouts directory.” .
    The issue happens in
    We have customized master page
    In the master page, we use path the script/style file like this: <SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/coe/mainCOE.css%>"
    runat="server"/>
    While using the dynamic path in a multiple languages enabled site, language Id(1033 etc) will be added to the path automatically. That cause the file to be not found.
    To solve the issue, please download  the Arabic language pack http://www.microsoft.com/en-us/download/details.aspx?id=3411 ,
    install it on  your SharePoint and refresh your browser.
    Reference:
    http://sharepoint-community.net/profiles/blogs/cannot-make-a-cache-safe-url-for-1036-sytles-themable-corev4-css
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • I downloaded itunes 10.5.  During  install I get a message that states the file cannot be located because it is on a network resource that is unavailable.  I tried to locate the file,but cannot find the apps file under my user name or any other place

    I downloaded itunes 10.5 on my laptop.  upgrade from 10.4.1.  Install was terminated because "the feature you are using is on a network resurce that is unavailable.
    I tried to locate the file under my user name sub file apps, but could not

    you need to specify the database when you exec. the commands.
    ALTER DATABASE database_name SET ENCRYPTION OFF --> user database.
    DROP DATABASE ENCRYPTION KEY --> user database.
    DROP CERTIFICATE certificate_name --> master database
    DROP MASTER KEY --> master database.
    Best Regards,
    Ahmad Elayyan.
    Regards, Ahmad Elayyan Database Team Leader

Maybe you are looking for