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.

Tags: NI Software

Similar Questions

  • Photo folder to move off the screen when I try to open

    When I open an image file I recorded on my desk, she opens off the screen on the right side. Only that I know it's because when I click to open or minimize the folder on the taskbar, it flies across the screen when minimize. I can't get into any of my files as they open no where I can see or even not to the folder level. Help!

    Hold down the SHIFT key and right-click on the folder icon in the taskbar.

    And select move.  Use the arrow keys to move the folder in the display.

  • Received the error when compiling my forms

    Hello.
    I use Oracle 10 g on windows 7.
    I created a simple login page
    While I tried to compile my file
    I am getting following error

    Error:
    FRM-30118: cannot create file MODULE1.err warning message

    Hello

    I think that u have no authorization in the same folder where you saved, you're the FMAS
    Please check the security permission, then try to compile.

    Sarah

  • Cannot access the file when compiling with MINGW c ++

    OK, so I'm a developer and had to use MINGW before on linux.  Whenever I am compile my programs in c ++ and try to run them it says 'access denied' at the command prompt.  My permission are set up right COMPLETELY.  I have full access to the file.  When I click on the EXE, I created it said that I could not access permissions. I checked again and again my permissions.  Impossible to find something wrong with them.  I am set up as administrator and logged as administrator and have full access to the file.  The only thing I can think is that I have Visual Studio installed on my computer and it is perhaps in conflict with MINGW.  If you guys can help me would be great.  Thank you

    -Seth

    Hello

    I suggest you to ask your question in the MSDN forum: http://social.msdn.microsoft.com/Forums/en-US/categories

    Thank you.

  • When compiling capture date to use for the version of the application

    How can I capture the date when compiling for use for the version of the application (to view it on demand)

    Thank you

    This is a requirement which is located on the territory of a construction such as ANT, Maven or Gradle management tool. You have the management generation tool generate a file properties with the date of construction and then you can load this file of properties in your application.

  • Adding layers to the folder used to go to the bottom of the stack

    Not sure if I'm going crazy, but I swore that when the layers were added to a folder that they would automatically go to the bottom of the stack. It seems that in the current versions of layers photoshop, added to a folder appear at the top of the stack. Is - this newish? Is there a preference or a shortcut to increase this behavior? I prefer a lot it to appear at the bottom of the stack.

    Based on the reviews on this subject in the next version of PS (no ETA I can share, sorry), you will be able to control the behavior with a keyboard modifier:

    (1) (no modifier) fall on the group will place on top of the stack of layers in the Group

    (2) (shift-output) fall on the group will be at the bottom of the stack of layers in the group.

    But at the present time, in 2015.0.1, only (1) is available.

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

  • PowerShell script to delete files based on the current Date

    I know using PowerShell Get-Date will look at the current date.  I would like to make a very basic PS Script that will remove a file over 8 days based on the current date.  According to me, with the help of a if/then the function will be necessary.  I am very new to scripting if Im not sure how the syntax is written.  Any help is appreciated.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • FTP command does not when the current folder is not on the system drive

    I have the following problem when I activate FTP from the command prompt when the current folder is not on the system drive.

    I have a similar problem when you use a client FTP (ftprush)... It is installed on the D:\ and activation with the startup in D:\ folder reports 10038 (invalid socket handle)... It works fine when the startup folder is c: drive

    (MON C:\ est un petit SSD où j'ai mis les programmes opérationnels et les applications les plus utilisées)... my D: drive is a program for non-intensif progs disk)

    I have check the environment variables but can't find anything wrong with them, and I never touched at these

    Current folder is on my c drive windows :\---> works OK and I can open an FTP site

    C:\Windows\System32>FTP

    FTP > quit


    I change the folder to the very second disc---> broken, the report "ftp:socket" and the existsd.


    C:\Windows\System32>d:

    D:\>FTP


    FTP: socket

    D:\ >




    I managed to solve my problem by making a

    command "netsh winsock reset."

    This solves all my problems... including ftprush, filezila, starting the ASP.NET Server in Visual Studio (which also refused to)

    implementation)

  • I am on a trial with Acrobat Pro DC on a Mac and when I try to combine files for example a pdf file and a word doc it says "additional permissions to access to" the word doc, so I have to select a folder and grant access, etc.  It's too long - is the

    I am on a trial with Acrobat Pro DC on a Mac and when I try to combine files for example a pdf file and a word doc it says "additional permissions to access to" the word doc, so I have to select a folder and grant access, etc.  It's too long - is there a way to get around this?

    Hi Alex,

    This is not related to Acrobat, Microsoft, you can see this problem with Microsoft Word is known: grant access file: cannot open the document: user - Microsoft Community it is a sandbox application. It restricts user with several workflow.

    Unfortunately, there isn't much we can help at this stage.

    Kind regards

    Tariq Dar.

  • analysis of filter based on the current date to the exercise YYYYMM

    In a filter for an analysis, I want to put in place so that the settings are based on the current date and format field I want to filter is based on a July - June fiscal fiscal month.  (IE. Today, 22/04/2014 should feed the month of exercise with 201410 field)

    Is there a simple formula that can be set, based on the date of the day that will work like this?

    Use this

    Replace (Cast (Year (CURRENT_DATE) as char) |) (case when month (current_date))<10 then="" '0'||cast(month(current_date)="" as="" char)="" else="" cast(month(current_date)="" as="" char)="" end),'="">

    Instead of these functions concat and casting If you use exercise and exercise name is good to go

    Thank you

    http://cool-bi.com

  • 2-way and 3 corresponding path based on the amount of the claim?

    Hello

    In vanilla R12, is it possible to achieve the corresponding receipt based on the amount of the claim.

    Amount of requisitions to say so is less then $ 50, it will be 2 corresponding way.

    Otherwise, it will be 3 corresponding path.

    Kind regards

    Emma

    Emma

    It is not possible to vanilla R12, match PO option is set at the level of the organization. However, invoice match option examples at the level of the item as well. So if there are specific items which should be 2-way while at the level of the Organization, there must be 3-way matching, which can be taken in charge.

    I hope this helps.

    Thank you

    Roger

    (PS: Please tick the correct answer or useful if the answer)

  • Select the query to select the month range based on the current date.

    It's the database 10 g oracel.

    I want to choose two months of data in the table. But these two months should be based on the current date.

    For example.

    If I run the select query on July 7, 2013, then the query must ignore the current month being July 2013 and last month, which is June 2013 and it shoud select only may 2013 and April 2013.

    Can someone help me how to make this request.

    SELECT *.

    FROM my_table

    WHERE my_date > = TRUNC (ADD_MONTHS (sysdate,-3), 'MY') - first day of the month 3 months ago

    AND my_date< trunc(add_months(sysdate,-1),'mon')="" --="" first="" day="" of="" last="">

  • How to get the 'DAY' based on the territory of current account held a number between

    Hi all

    Looks like I'm at the end of my intelligence here but how to get the 'DAY' based on the territory of current account with a number between 1 and 7? Oracle has functions to extract the day of the week, but I can't find the other way around.
    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    
    SQL> alter session set nls_territory=AMERICA;
    
    Session altered.
    
    SQL> select to_char (sysdate, 'D') from dual;
    
    T
    -
    3
    
    SQL> alter session set nls_territory=GERMANY;
    
    Session altered.
    
    SQL> select to_char (sysdate, 'D') from dual;
    
    T
    -
    2
    I need a way to know that the number '3' on the database with NLS_TERRITORY = AMERICA means a 'Tuesday' or the number '2' on a database with NLS_TERRITORY = GERMANY means "Tuesday" as well.

    Hope I am clear enough.

    And wish you all a happy new year :)

    Kind regards
    Smail

    Use the format "IW" to get the date of Monday and the format "DAY" to get the "first day of the week. Then compare dates to see if they are identical.

    ALTER SESSION SET NLS_TERRITORY = 'AMERICA';
    
    SELECT TRUNC(SYSDATE-LEVEL, 'IW') "Monday",
    TRUNC(SYSDATE-LEVEL, 'DAY') "NLS First day of week",
    MOD(TRUNC(SYSDATE-LEVEL, 'IW') - TRUNC(SYSDATE-LEVEL, 'DAY') + 7, 7) "1 if day 1 = SUN, 0 if MON"
    FROM DUAL CONNECT BY LEVEL <= 7;
    
    Monday    NLS First day of week 1 if day 1 = SUN, 0 if MON
    --------- --------------------- --------------------------
    31-DEC-12 30-DEC-12                                      1
    24-DEC-12 30-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    24-DEC-12 23-DEC-12                                      1
    
    alter session set nls_territory = 'FRANCE';
    
    SELECT TRUNC(SYSDATE-LEVEL, 'IW') "Monday",
    TRUNC(SYSDATE-LEVEL, 'DAY') "NLS First day of week",
    MOD(TRUNC(SYSDATE-LEVEL, 'IW') - TRUNC(SYSDATE-LEVEL, 'DAY') + 7, 7) "1 if day 1 = SUN, 0 if MON"
    FROM DUAL CONNECT BY LEVEL <= 7;
    
    Monday   NLS First day of week 1 if day 1 = SUN, 0 if MON
    -------- --------------------- --------------------------
    31/12/12 31/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    24/12/12 24/12/12                                       0
    

    Or it could be simpler:

    ALTER SESSION SET NLS_TERRITORY = 'AMERICA';
    
    WITH DATA AS (SELECT LEVEL INPUT_DAY FROM DUAL CONNECT BY LEVEL <= 7)
    SELECT INPUT_DAY,
    TO_CHAR(TRUNC(SYSDATE, 'Day')+INPUT_DAY-1, 'DAY') "Day label"
    from data;
    
    INPUT_DAY Day label
    --------- ------------------------------------
            1 SUNDAY
            2 MONDAY
            3 TUESDAY
            4 WEDNESDAY
            5 THURSDAY
            6 FRIDAY
            7 SATURDAY
    
    alter session set nls_territory = 'FRANCE';
    
    WITH DATA AS (SELECT LEVEL INPUT_DAY FROM DUAL CONNECT BY LEVEL <= 7)
    SELECT INPUT_DAY,
    TO_CHAR(TRUNC(SYSDATE, 'Day')+INPUT_DAY-1, 'DAY') "Day label"
    from data;
    
    INPUT_DAY Day label
    --------- ------------------------------------
            1 MONDAY
            2 TUESDAY
            3 WEDNESDAY
            4 THURSDAY
            5 FRIDAY
            6 SATURDAY
            7 SUNDAY
    
  • How to create the current header primary and secondary based on the title of each chapter?

    Hello
    I want that every page has a primary header running IE title of the book, while each subsequent page after that, also has a header running, but based on the title of a chapter.

    Book title                                                                 |  1

    First chapter title.  2

    Book title                                                                 |  3

    Second chapter title |  4

    Book title                                                                 |  5

    Third chapter title |  6

    Book title                                                                 |  7

    Fourth chapter title |  8

    .. and so on...


    Would be very happy for any help.

    Like, rachida

    Text variables - YouTube

Maybe you are looking for

  • Problem plugin with a Web site on my new Firefox browser.

    This is my second problem of the day:When I'm on a site swelled on the 'chat' page (which is a continuous and real-time conversation ' room'), a gray-black box pops up that says "Plugin is required to view this content," with an action button, "insta

  • Cannot update apps because "Apple ID invalid". Help!

    I Went to manually update the apps and the phone says that Apple ID has been disabled. I did some research and found that the password requirements have changed... I had only 9 letters no ceiling and no number so I changed it to adapt to the new requ

  • Aspire V 15 Nitro sound very low even when the value to 100%. Does anyone have a solution?

    Dear community, I tried clicking on the sound icon. By selecting "playback devices". Clicking Tealtek High Definition Audio, and then click Properties. In "Improvements" all I have is a box unchecked to "disable sound effects everything" and nothing

  • stuck cursor to start windows

    Whenever I have start (windows XP) laptop w / recent updates installed, the hour glass cursor stuck in the middle of the screen or custom, shot after I like user login.   Sometimes he is not stuck, I'm fine, but get annoyed that I have to force close

  • I have no sound. All the updates and driver controls show "device working properly.

    All the updates and driver controls show "device working properly. When the sound icon is clicked - I see the sliding green scale showing "audio output". I also see the green bar moving on 'Realtek HDMI output' and it is marked as default. Our sound