How to find a BMP file included with Applicatio​n in LabView?

I have a VI that I would like to build into an application (.EXE).  The VI has a Picture indicator, whose source is a BMP on my local hard drive.  Using "Read BMP File.vi" and a Path constant, it's relatively easy to read the BMP and display it in the indicator.  I know how to include the file with the distribution (Build App or DLL -> Installer Settings -> Files), but how does one determine the location of the file after users install the EXE? I tried using just the filename of the picture in the path constant, hoping it would look in it's current directory, but I received an error.  With the full path in the path constant, everything works just fine.
Thank you,
...jerry

You can reconstruct the path. Use the "Current VI's path" to get the
path of the caller VI. Then use the "Build path" and Strip path" to
build the path to your file.
Note that in an executable, the VIs path includes the executable, like
the following:  C:\directory_name\my_exec.exe\main.vi
The attached code (image) should do it (or at least give you a start).
Regards;
Enrique
www.vartortech.com
Attachments:
path_to_file.gif ‏2 KB

Similar Messages

  • How to find PG.xml file name and path associated with a FUNCTION

    Hi,
    I am having a function:IRC_VIS_HOME_PAGE with Web HTML value as below:
    OA.jsp?akRegionCode=IRC_VIS_HOME_PAGE&akRegionApplicationId=800&OAPB=IRC_BRAND
    How to find PG.xml file name and path assoicated with above funtion.
    Thanks,
    ashok

    Ashok,
    Function IRC_VIS_HOME_PAGE will have 2 parameter defined for it which are OASF and OAHP where
    OASF=<SelectedFunctionName> - this tells the Framework to select this function in the given "Home Page" menu context.
    OAHP=<HomePageMenuName> - this is used ONLY with the OASF parameter, and it is used to establish the current menu context. It should point to a "Home Page" menu.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to find out the file name

    Hi,
    In selection screen (parameter) user will give input TXT file from presentation server to upload to SAP. I need to capture the file name only but not the path and need to concatenate with date stamp and need to download error log in XLS file to presentation server.
    How to find out the file name from selection screen?
    I searched SCN threads but not found relavant solution.
    Thanks,
    R Kumar

    Hi
    This code gets only filename from selection screen :
    REPORT x.
    PARAMETERS p_file(100).
    DATA : gv_full_path LIKE  ibipparms-path,
           gv_full_path_string TYPE string,
           gv_filename(100),
           gv_file_ext(3).
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Ask user to select file with a popup :
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = gv_full_path.
    Get filename from path :
      gv_full_path_string = gv_full_path.
      CALL FUNCTION 'CH_SPLIT_FILENAME'
        EXPORTING
          complete_filename = gv_full_path_string
        IMPORTING
          extension         = gv_file_ext
          name              = gv_filename.
      CONCATENATE gv_filename '.' gv_file_ext INTO gv_filename.
      p_file = gv_filename.
    I hope it helps.

  • EA Could Not Find The .html File Associated With...

    After naming folder names, I now get the "EA could not find the .html file associated with..." message when I open the .edge file. When I open the .an file, I have all elements and the timeline are gone! How can I restore it? Surely, it is just a question of changing a path, or? Please help. Thanks!

    From the File > Open menu, browse to the that same folder (the newly renamed one), and select the .html file.
    Darrell

  • Newbie: How To find Core Dump files on Unix?!  URGENT!

    Hi, i would like to know on How To find Core Dump files on Unix?!
    I know they should be found in  /usr/sap/<SYSTEM-ID>/<INSTANZ>/work
    but there are no "core" files and also in tmp is nothing unusual but disk space is totally full.
    So how to find the big files which i could delete to make system running again?!
    can someone provide me with some infos?!
    br

    1. which user i should use to search and destroy?! root-user or SYSID-User?!
    Always use the user with the least permissions to do the job, don't use root if your sidadm can do it. If you want to find / delete SAP files use sidadm.
    2. I found no core files and the harddisk is still 100% full, what files might also cause this problem
    In your first post you wrote that /usr/sap/SID/INST/work dir is full, it is most likely that some trace files got to large. Check for files like dev_*, dew_w0 for example is the trace file of work process 0, dev_disp is the trace of the dispatcher and so on. You either have to increase the size of the filesystem, or find the cause for the growing file. It can be due to an increased trace level.
    3. What on database-side could cause this problems?! can i search for sth here.
    This does not look like a database issue so far.
    4. i was unable to use the given scripts (noob!), what can i do else?!
    Which one, please post what you typed and the error you got.
    Best regards, Michael

  • How to find the Display Template associated with a JSP ?

    Hi All,
    We have a requirement to alter the text on few buttons and headers for a Published Site. I have modified the Seeded JSP and saved as xxseeded.jsp and deployed in $OA_HTML. Now i want to add this custom JSP to the Display Template but i don't know how to find the Display Template Associated with the Seeded JSP. So, i need to know the Programmatic access name for the Display Template which uses this Seeded JSP as Source file. Is there any where i can check?
    Thank you

    Hi,
    Use the below queries
    Use the below query to get the Template name for the associated JSP file.
    SELECT I.ACCESS_NAME, A.FILE_NAME FROM JTF.JTF_AMV_ATTACHMENTS A, APPS.JTF_AMV_ITEMS_VL I, IBE.IBE_DSP_LGL_PHYS_MAP M, IBE.IBE_MSITES_TL S WHERE A.ATTACHMENT_ID = M.ATTACHMENT_ID AND I.ITEM_ID = M.ITEM_ID AND M.MSITE_ID = S.MSITE_ID and a.FILE_NAME like 'Jsp file name here'
    Same query can be little modified to get the File name from the Template name.
    SELECT I.ACCESS_NAME, A.FILE_NAME FROM JTF.JTF_AMV_ATTACHMENTS A, APPS.JTF_AMV_ITEMS_VL I, IBE.IBE_DSP_LGL_PHYS_MAP M, IBE.IBE_MSITES_TL S
    WHERE A.ATTACHMENT_ID = M.ATTACHMENT_ID AND I.ITEM_ID = M.ITEM_ID AND M.MSITE_ID = S.MSITE_ID and I.ACCESS_NAME like ‘template name here’
    Thanks
    Pradeep
    Edited by: Pradeep Kalyan on Feb 9, 2012 9:40 PM

  • How to find number of files in a folder using pl/sql

    please someone guide as to how to find number of files in a folder using pl/sql
    Regards

    The Java option works well.
    -- results table that will contain a file list result
    create global temporary table directory_list
            directory       varchar2(1000),
            filename        varchar2(1000)
    on commit preserve rows
    -- allowing public access to this temp table
    grant select, update, insert, delete on directory_list to public;
    create or replace public synonym directory_list for directory_list;
    -- creating the java proc that does the file listing
    create or replace and compile java source named "ListFiles" as
    import java.io.*;
    import java.sql.*;
    public class ListFiles
            public static void getList(String directory, String filter)
            throws SQLException
                    File path = new File( directory );
                    final String ExpressionFilter =  filter;
                    FilenameFilter fileFilter = new FilenameFilter() {
                            public boolean accept(File dir, String name) {
                                    if(name.equalsIgnoreCase(ExpressionFilter))
                                            return true;
                                    if(name.matches("." + ExpressionFilter))
                                            return true;
                                    return false;
                    String[] list = path.list(fileFilter);
                    String element;
                    for(int i = 0; i < list.length; i++)
                            element = list;
    #sql {
    insert
    into directory_list
    ( directory, filename )
    values
    ( :directory, :element )
    -- creating the PL/SQL wrapper for the java proc
    create or replace procedure ListFiles( cDirectory in varchar2, cFilter in varchar2 )
    as language java
    name 'ListFiles.getList( java.lang.String, java.lang.String )';
    -- punching a hole in the Java VM that allows access to the server's file
    -- systems from inside the Oracle JVM (these also allows executing command
    -- line and external programs)
    -- NOTE: this hole MUST be secured using proper Oracle security (e.g. AUTHID
    -- DEFINER PL/SQL code that is trusted)
    declare
    SCHEMA varchar2(30) := USER;
    begin
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.io.FilePermission',
    '<<ALL FILES>>',
    'execute, read, write, delete'
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.lang.RuntimePermission',
    'writeFileDescriptor',
    dbms_java.grant_permission(
    SCHEMA,
    'SYS:java.lang.RuntimePermission',
    'readFileDescriptor',
    commit;
    end;
    To use:
    SQL> exec ListFiles('/tmp', '*.log' );
    PL/SQL procedure successfully completed.
    SQL> select * from directory_list;
    DIRECTORY FILENAME
    /tmp X11_newfonts.log
    /tmp ipv6agt.crashlog
    /tmp dtappint.log
    /tmp Core.sd-log
    /tmp core_intg.sd-log
    /tmp da.sd-log
    /tmp dhcpclient.log
    /tmp oracle8.sd-log
    /tmp cc.sd-log
    /tmp oms.log
    /tmp OmniBack.sd-log
    /tmp DPISInstall.sd-log
    12 rows selected.
    SQL>

  • How to find the Standard Program associated with a Standard IDOC

    Hi,
          I am going work on enhancing the standard IDOC. Any body can suggest how to find a standard pogram associated with a Standard IDOC. And can any body send some exaple code for extending a standard IDOC and to implement the logic in the standard program .....

    Hi,
    For outbound IDoc the program can be found:
    1) For master IDoc via transaction BD60. Here for the message type you can find the function module used to generate the IDoc. Within this function module you can find the user exit where you can code your logic.
    2) For IDocs with message control (output control) we maintain settings for proces code in WE41. This process code will lead to outbound IDoc generation program.
    For Inbound IDoc the program can be found:
    Via WE42 where inbound process and its related inbound function module is maintained.
    In each cases above we can go the function module and find the customer exit where idoc enhancement logic can be coded.
    For extending IDoc look at the following links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/content.htm">Extending IDoc - SAP help</a>
    It can be summarized as follows:
    Enter transaction WE30 (ALE->Extension-> IDOC types->Maintain Idoc type)
    - Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.
    - Click on Create new and enter a description and press enter.
    - Click on ZIDOCTYPE01 and then on the Create icon.
    - Enter ZIDOCTYPE as the segment type, click on Segment Editor.
    - Enter a description for your segment type and create.
    - Enter a description for your segment, enter each field required in your IDoc and press enter to validate.
    - Save and generate, press back
    - To release the segment choose Goto, Release from the menu.
    - Check the box on the line of your segment.
    - Save, back and enter.
    - Your Idoc type structure should be displayed with your new segment.
    - Save and back.
    - To release the Idoc type choose Extras, Release type from the menu and Yes.
    Hope this helps.
    Regards,
    Gajendra.

  • How to batch convert bmp files into jpg by dos command or c# program language?

    How to batch convert bmp files into jpg by dos command or c# program language?
    Many thanks for replying.

    Try
    GraphicsMagick.

  • How do I open raw files taken with Canon 70D.  Not supported in Elements 12.  Is there a download?  Thanks.

    How do I open raw files taken with a Canon 70D?  Elements 12.  Version 8.0 Windows 7 64 bit.  Thanks in advance for any help.
    JWT
    Lamar, CO

    Thank you so much for you quick answer.  Works fine, now.  Thanks again, Barbara.
    JWT

  • How to find payroll results using includes

    hi all,
          I have a requirement to get the payroll results of number of data clusters using includes not by using function modules.
    I know by using function modules.
          How to find out the exact include for given data cluster. If there is any path please let me know.
    thanks & regards,
        sekhar.

    Hi,
    You can define macros in the program and call depending on the cluster you need.
    For Eg  for B2 cluster,
    rp-imp-c2-b2.
    before calling macros,
    You should fill the key
    move pernr  to b2-key-pernr.
      move year         to b2-key-pabrj.
      move period       to b2-key-pabrp.
      move '1'          to b2-key-cltyp.
    rp-imp-c2-b2.
    For payroll
    RP-IMP-C2-RU
    Regards,
    Manoj.

  • How to find geometry that have intersection with polyline?

    Hello,
    How to find geometry that have intersiction with polyline?
    I hava a lot of polygon, i want to find wich of polygon have intersection with polyline.
    What shall i do to find out this?
    Regatd,
    Thank's

    is that correct when i use such query?
    SELECT
    FROM aaa c
    WHERE SDO_RELATE(c.geometry,
    SDO_GEOMETRY(2002, 1, NULL,
    SDO_ELEM_INFO_ARRAY(1,2,1),
    SDO_ORDINATE_ARRAY(0,0,12,12,25,25)),
    'mask=anyinteract') = 'TRUE'
    Thanks

  • Ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx

    ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx.

    You need to put all of your info on your computer and then sync it to iphone.

  • How to find out average files i am getting every day in a month?

    How to find out average files I am getting every day in a month?

    Do you mean average count of files received?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to make a PDF file short ( with less memory)?

    How to make a PDF file short ( with less memory)?

    @nalinss
    There are two ways: "Save as.." usually optimises size, but there is also "Optimize PDF" in the menu with many options what to exclude and to reduce in quality. Be careful here, as pictures can become very bad.
    A note: the size of a PDF vastly depends on from what source it is created. For example, if you draw some vector graphics in Visio and print to Adobe Printer, the resulting PDF is usually quite small in file size. Opening it in Illustrator and saving it again after you, let's say, just moved one line, can make it 10x as big. This is due to big overhead, Illustrator creates and this can not be reduced anymore in Acrobat later on. Sometimes it helps to convert or "save as" such an inflated PDF to a different format like EPS or HTML and print or convert again to PDF.
    So, if you created the PDF yourself and you still have the source, you may adjust settings in the export/print dialog to make it smaller.

Maybe you are looking for

  • Odd EMV Credit Card Receipt

    When I use my USAA Visa chip/signature card at Wal-Mart, the receipt says "Visa Credit" before the truncated account number, and when I use either of my Amex chip/signature cards the receipt reads "American Express" before the truncated account numbe

  • Is the #{bidings} object accessible during  the ADF prepareRender phase ?

    Hi everyone. I am using JDeveloper 10.1.3.3 and my application uses ADF/BC-JSf. I want to create a page with a button whose "disabled" property will depend on the value of a view object attribute of the same page. So what I did is I used a backing be

  • Dynamic field catalog

    Hi all,      i have a strange problem, in table WITH_ITEM the field ITT and wt_qbshh , we have different kinds of tax codes and tax amounts. i was displaying these as two columns in my report. but my client ask me to display the wt_qbshh field in dif

  • Uploading Numbers spreadsheets from Mac to iCloud

    I have Numbers spreadsheets developed on my Mac running the latest version of Mavericks OS. I just bought an iPhone 6 and downloaded Numbers. How can I upload my Numbers spreatsheets from the Mac to the iCloud so I can read them on my iPhone?

  • "Logging level" - what exactly is logged at a given level?

    Wanting to log activity from an Airport Express I have been searching for a list of which types of events actually are logged depending on the "Logging level" selected in the "Airport Admin Utility" software at the "Airport" tab, "Base Station Option