Dynamically short VI of the executable

I try to run one of the screws of a source distribution that is outside the main executable file. When my program is not an executable (only source code), everything works fine. But the VI does not run when it is called executable, unless I open the front panel of the VI before running the EIS.

Is it possible to run the VI without actually opening the front panel? I can probably hide after that opening but it would be better if he never shows up.

abdel2 wrote:

[...] -Now manually open dynamic Vi.vi. You will see that it is not executed. [...]

And this is expected behavior. The reason is simple: you open a new vi, not that what we called the executable.

LV uses "Instances of the Application" in order to distinguish between the different contexts of execution.

The executable is running in another instance of the application then the VI in the development environment.

If you want to transfer data between the development environment and exe, you must follow the instructions of this KB.

hope this helps,

Norbert

Tags: NI Software

Similar Questions

  • Can I save clips short, renowned for the active project folder in 14 elements?

    Hello!  I have a ton of renowned, short clips in a project I'm working on that.  Problem is, I have change the longer movie clips go ziping up to the far right (off the monitor), which causes a lot of blue air here because I get what I need.

    And a lot of my audio clips (narration) took off for the hinterland law-neighborhood, lost of the workspace until I go through the laborious search for them.  Seems to me that it wastes a LOT of time.

    Can anyone help?

    I'm not sure of your narration. I think that we need to solve the problems that as a separate issue.

    But here's how you create small clips of a longer clip:

    (1) define the components panel of project for the display of the list by selecting it in the Panel Options in the upper right corner of the Panel.

    2) double-click your videos in the active project (before placing on your timeline).

    (3) in the monitor of the Clip, the points value and exit to set your short clip.

    (4) drag this short clip from the Clip monitor into the active panel. It appears as if it were something new, shorter.

    You can do as many segments of this clip for as long as you want.

    There are also automatically that can work for you. Once more, make sure that you are in list view. It works as well in grid mode.

    Right-click on a clip in the active panel of the project, and then select Execute Auto Analyzer. This will create a new folder in your project assets with the longest clip automatically cut to shorter clips, based on changes in the content.

  • Dynamic image appears in the report of BI

    Hello

    I developed a BI letter when I display the logo dynamically. I have the image file stored in a BLOB of table field and then download the image using a procedure. I used the URL in my SQL report and changed the text of replacement on the image, but I still not able to view the image.

    I created a test in oracel.apex application

    PKTEST workspace

    user pktest

    pass 123test

    I checked the old post and is therefore but it does not work.

    Solve the problem.

    There are several cause to the problem.

    to start the process

    PROCEDURE SAMPACC. "" DISPLAY_COMP_LOGO "(number p_refno)

    is

    l_logo blob.

    number of l_length;

    Start

    -You can select one of your own table where you store the image

    Select

    colo_logo, DBMS_LOB. GetLength (colo_logo)

    in l_logo, l_length

    from company_locations where colo_refno = p_colo_refno;

    owa_util.mime_header('image/jpeg',false);

    HTP.p ("' Content-Disposition: attachment; filename =" ' |') Logo ' |' « ') ;

    HTP.p ("Content-length: ' |") l_length);

    owa_util.http_header_close;

    wpg_docload.download_file (l_logo);

    end;

    /

    create a public SYNONYM DISPLAY_COMP_LOGO for . DISPLAY_COMP_LOGO;

    Grant execute on DISPLAY_COMP_LOGO to anonymous, public, APEX_PUBLIC_USER

    then connect to aid the user in the system database, and then set it to the current schema

    for example, Alter session set current_schema APEX_040200

    for apex 4.2

    change the following function to include the name of the procedure you

    APEX_040200.wwv_flow_epg_include_mod_local

    After modification, the function should look like this. If you have a false return after start this comment.

    function wwv_flow_epg_include_mod_local)

    Procedure_name in varchar2)

    return a Boolean value

    is

    Start

    --

    -Administrator note: the procedure_name input parameter can be in the format:

    --

    -procedure

    -schema.procedure

    -package.procedure

    -schema.package.procedure

    --

    -If the input parameter expected is a procedure name, the code IN listing below

    -can be modified to list expected procedure names. Otherwise, you must analyze the

    -parameter procedure_name and replace the simple code below with the code that will evaluate

    -all the cases listed above.

    --

    If upper (procedure_name) in)

    "SCHEMA. DISPLAY_COMP_LOGO') then

    Return TRUE;

    on the other

    return FALSE;.

    end if;

    end wwv_flow_epg_include_mod_local;

    Then, create the sql code

    connect to apex select your application-> shared under query components select report and create a query

    and call the procedure with parameter example

    Select apex_application.get_g_base_href |' #OWNER #. DISPLAY_COMP_LOGO? P_COLO_REFNO =' | COLO_REFNO as company_location COMPLOGO

    create a template and insert an image where you want to display the logo.

    Select the image and right click and select Format on the property dialog box and the image passes to the last tab and enter the following text in the alt text field

    URL: {//COMP_LOGO}

    Save the template and upload in your application, then go to the report query and select the model.

    You can run this in your application. If you test in the report query report then you must change the #OWNER # of your schema name.

    I used my own company site table in the explanation. I created an application in apex.oracle, but it does not work because I can't change the function as

    as well as the public synonym creation. Hope this will help.

  • Dynamic action to refresh the region-> see the message to user

    Hello

    I have a page in the apex 4.2.2.

    In this page, I have an interactive report and a filter sets, users can choose.

    When users choose one of the filters, I implemented a dynamic action to refresh the interactive report region, so it should refresh the data being shown without submitting it.

    So far so good... but... when the region is refreshing there is point 'charge of circle' which displays and allows the user to know he is done on the page. But this icon is not so obvious.

    What I want is to add a message, for example to display a region, which showed a message like "being the updating of the report, please wait" (something like that).

    I tried to insert in my dynamic action, as 1st action, to SHOW this area and as the last action to HIDE. But nothing is done, the region is never shown.

    How can I perform this task? All I need is to be able to display a message, for the duration of the dynamic action, to inform the user that he or she must wait until the task is completed.

    All real common actions have been reported to "wait for result", if I didn't get this wrong, it means that he expects the previous real action remaining to be done, in order to trigger the next... This should show the region and then hide it, but it does not work.

    Can someone help me with this? Maybe give an idea?

    Kind regards.

    You can actually go several routes with a solution for this. A refresh of the IR will start forward and after updating the events that you can hang on to dynamic actions or jQuery, so you can show something at the start of the update and then hide it again. And since you can do all this in jQuery you could easily hold it in a javascript file and attach it to every page of the ir. This is probably the cleanest solution and more independable.

    Another way is to use the already existing waiting icon and play with his presentation a little. You know, that you are talking about loading icon. You can change this to something much better with minimal effort!

    Example:

    Run when the page loads, to execute javascript code:

    $("#apexir_LOADER").append("
    Please wait. Refreshing the data.
    ");

    Add this css to inline css in the page:

    span#apexir_LOADER {
    display: block;
    width: 150px;
    text-align: center;
    background-color: white;
    border-style: solid;
    border-radius: 5px;
    border-width: 2px;
    top: 20%;
    }
    

    It'll make a little white box with black borders rounded around the loading icon and put a text below.

    You can get the html code to add a bit more generic, or you can raise some html of the page if necessary. You can put it in a dynamic action on the load, put in a js file, or whatever. The css can be put in a page template or a css file.

    It's only less independable hanging in front or after updating because we are taking advantage of the system in place, which means that maybe he could change in the future - but this is hardly on the same scale as the 'hacking' the ir for example javascript.

  • The concatenation of the EXECUTE IMMEDIATE statement.

    Hi all

    The situation is that I am trying to find all customers whose Date of birth (DOB) is greater than or equal to 150 days. Unfortunately, when I run this SQL I get the error message:
    (1) ORA-00904: "FEB": invalid identifier
    (1) ORA-06512: at line 4 level

    I'm not sure what I should do to solve this problem, I hope you can help.

    Note: I have to encapsulate this statement in an immediate execution due to problems of roles/Privilidge. In the full version, I also use AUTHID CURRENT_USER.


    DECLARE
        curr_date Date := SYSDATE;
    BEGIN
        EXECUTE IMMEDIATE ' SELECT  cust_name,
                                    cust_dob, -- date of birth
                                    cust_shoe_size
                            FROM    tblCustDetails c
                            WHERE   SUBSTR(c.cust_name, 1,7) = ''Bob''
                                    AND cust_dob >= NEXT_DAY(' || curr_date ||' - 150 , ''SATURDAY'')
                             ';
    END;
    Edited by: DaveyB February 23, 2012 08:39

    The right way to use dynamic queries like this would get stuck in the variables you use... for example

    DECLARE
        curr_date Date := SYSDATE;
    BEGIN
        EXECUTE IMMEDIATE ' SELECT  cust_name,
                                    cust_dob, -- date of birth
                                    cust_shoe_size
                            FROM    tblCustDetails c
                            WHERE   SUBSTR(c.cust_name, 1,7) = ''Bob''
                                    AND cust_dob >= NEXT_DAY(:1 - 150 , ''SATURDAY'')
                             ' USING curr_date;
    END;
    

    However, you also have to take into account the fact that the results of the query are currently disappearing into the ether, so you need an INTO statement...

    DECLARE
        curr_date Date := SYSDATE;
    BEGIN
        EXECUTE IMMEDIATE ' SELECT  cust_name,
                                    cust_dob, -- date of birth
                                    cust_shoe_size
                            FROM    tblCustDetails c
                            WHERE   SUBSTR(c.cust_name, 1,7) = ''Bob''
                                    AND cust_dob >= NEXT_DAY(:1 - 150 , ''SATURDAY'')
                             ' INTO var1, var2, var3 USING curr_date;
    END;
    

    ensure that your variables are declared as appropriate, and then...

    ... you have to take into account the possibility that there is more than 1 line returned, in which case you will have the results of the query to a collection.

    Of course, it is useless for dynamic SQL statements in the first place...

    DECLARE
        curr_date Date := SYSDATE;
    BEGIN
      SELECT  cust_name,
              cust_dob, -- date of birth
              cust_shoe_size
      INTO    var1, var2, var3
      FROM    tblCustDetails c
      WHERE   SUBSTR(c.cust_name, 1,7) = 'Bob'
      AND     cust_dob >= NEXT_DAY(curr_date - 150 , 'SATURDAY');
    END;
    

    still, you should always take into account the bulk collection in a collection if it were going to be more than one row returned.

  • Pass Pl/sql table in the USING clause in the EXECUTE IMMEDIATE statement

    Getting error when I try to pass the PL/SQL table in the USING clause in the EXECUTE IMMEDIATE statement:

    Declare
    result NUMBER;
    TYPE values_tab IS TABLE OF NUMBER INDEX OF directory;
    lv_tab values_tab;
    lv_exp varchar2 (300);
    lv_exec varchar2 (300);
    BEGIN
    lv_tab (1): = 5;
    lv_tab (2): = 48;
    lv_tab (3): = 7;
    lv_tab (4): = 6;
    lv_exp: = ': + b1: b2 + (: b3 *: b4)';
    lv_exec: = 'SELECT'. lv_exp | ' THE DOUBLE '.

    IMMEDIATE EXECUTION
    lv_exec
    IN
    result
    USING
    lv_tab;
    DBMS_OUTPUT. Put_line (result);

    END;
    /

    Error on line 1
    ORA-06550: line 20, column 12:
    PLS-00457: expressions must be SQL types
    ORA-06550: line 15, column 8:
    PL/SQL: Statement ignored


    I am trying to evaluate the expression ': + b1: b2 + (: b3 *: b4) "which is stored in the table. This table has different expressions (expressions about 300). I want to use the bind variable in the expression because each expression evaluated thousands of time may be more in some cases. If I use bind variable can he fill pool.

    Is there a way I can pass parameters with the HELP of (IN) dynamically instead of write "help lv_tab (1), lv_tab (2), lv_tab (3), lv_tab (4)? As number of change of the input parameters depend on the expression in the table.

    If it is possible please suggest any other ideas/approaches

    Help, please...

    Published by: satnam on June 11, 2009 11:50

    Well, you keep changing faster reqs that I can follow. In any case, assuming that N-th variable bind (left to right) corresponds to n-th collection item:

    Declare
        result NUMBER;
        lv_tab values_tab := values_tab();
        lv_exp varchar2(300);
        lv_exec varchar2(300);
        lv_i number := 0;
    BEGIN
        lv_tab.extend(4);
        lv_tab(1) := 5;
        lv_tab(2) := 48;
        lv_tab(3) := 7;
        lv_tab(4) := 6;
        lv_exp := ':5000135+:5403456+(:5900111*:5200456)';
        lv_exec := lv_exp;
        While regexp_like(lv_exec,':\d+') loop
          lv_i := lv_i + 1;
          lv_exec := REGEXP_REPLACE(lv_exec,':\d+',':b(' || lv_i || ')',1,1);
        end loop;
        lv_exec := 'BEGIN :a := ' || lv_exec || '; END;';
    DBMS_OUTPUT.PUT_LINE(lv_exec);
    EXECUTE IMMEDIATE lv_exec USING OUT result,IN lv_tab;
    DBMS_OUTPUT.PUT_LINE(result);
    END;
    /
    BEGIN :a := :b(1)+:b(2)+(:b(3)*:b(4)); END;
    95
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

  • Creating external Tables using the EXECUTE IMMEDIATE in PL/SQL

    Hi guys,.

    I am trying to create an external Table using the EXECUTE IMMEDIATE in a procedure and I managed to compile and no errors were generated. But when I try to run it from sql using the exec command I get the following error:

    ------------------------------------------------------------------------
    ERROR on line 5:
    ORA-00911: invalid character
    ORA-06512: at "GEO. TEST_DDL', line 4
    ORA-06512: at line 5

    -------------------------------------------------------------------------

    I tried to check the whole statement to create the external table, but I can't find where is the error. Surprisingly, if I simply run the command table create external on sqlplus it works, but not a procedure.

    If anyone can help with ideas or experience?

    Geoffrey Kossami

    The error means that there is an identifier somewhere that starts with a nonalphanumeric. This is a typical mistake of editing. A procedure compiles correctly is not of course because the underlying dynamic sql running is OK. Which of course only be resolved when you try to run it.

    There is certainly a problem with the text you provide to be run as a piece of dynamic sql code. You should try to watch it with dbms_output and run this code in sqlplus. But your problem is with the code you run as dynamic PL/SQL, it is not itself compilable.

    Jack

  • Pavilion a1250n: what is the executable media center

    I have a pc media center in Windows XP.  A rogue program wiped out my Start menu, and I can't find the executable file for the HP media center program which I preferred for Windows Media Player.  Anyone know the name and location of the executable?

    America, welcome to the forum.

    Here are some instructions that can help you find the file you need:

    1. go to START.

    2. click on SEARCH.

    3. click on 'files and folders...'.

    4. from "what you want to search for?" list on the left, click "all files and folders."

    5 type file names in the search box, and select "local hard drives" (normally, it's the disk C :).

    6. click on "Search".

    I type in Media Center to see if that helps.  I have not used XP for years.  So, I'll memory that it is correct.

    Please click on the button + Thumbs up if I helped you and click on accept as Solution If your problem is resolved.

  • My Avira Antivirus has been removed and the executable file Recovery Disc Creator

    Hello

    I want to create recovery DVDs, but I can't use Recovery Disc Creator because Avira deleted the executable file. How to do it?

    Thanks in advance

    I use Avira if a long time now and I've never experienced something like that. It's pretty bad situation now.

    Creator of recovery disk Toshiba cannot be downloaded and what you can do now is to reinstall the OS using the HARD drive recovery option, then when the laptop has once again factory settings, you will be able to start this tool and create the recovery disk.

    Out of curiosity, what model of laptop you have exactly?

  • Error 7 only during the executable to call the library node function

    Hello

    I'm having some trouble with LabVIEW, creating an executable work of my application. The program communicates with a sensor of moving laser Keyence LK-G5000 series with drivers provided by Keyence. When you run the program in the development environment, the program runs without any problem. However, when the construction program and run the program with an executable file, the program generates error 7 as shown below:

    After looking through the previous posts on error 7 and executable environment on the forums AND I found that a lot of people mentioned that the development environment and runtime environment use different path structures. I also found a guide of NOR to solve this problem here:

    http://digital.NI.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363

    However, after following these instructions, I always get error 7 only when executing the program in an executable environment.

    I've never used any .lvlib library in the past before, so I don't know if this may have been the issue (it was provided by Keyence.) The library includes 2 private screws that can only be called within the library, so I don't think I can go without using the library. There are screws in the library that use the DLL files (which are also included in this same library) through the node library function call in LabVIEW that appear not to be included when I create an executable file. Adding even manually the DLL files to the folder where the executable generates the same error 7.

    Is this what I remember in my code to allow the program to function within the executable?

    Fasteners are drivers for Keyence, my top level VI (GeoREF-Keyence controller.vi) and all my sub live

    Best regards

    Victor

    Executables are taking a different path, as a start to debug the path as an indicator and see which path is being planned in executable mode?

  • How to close a cmd window 'call the executable '.

    Hello

    I have the following sequence in the 2013 Teststand

    1. the installation program

    "Call the executable" call a java program in a cmd window. --> This step works

    2 main

    A call to the java program "n" dll .net times--> this step works

    3 cleaning

    How to close the cmd window opened by "executable call?

    TKS

    You can create another not executable call.  The file path is TASKKILL and arguments are "/F /IM cmd.exe/t.  This will close all open windows cmd.

    Pulido Technologies LLC

  • Problem of size and form of policy on the executable in Windows 7

    Hello

    my colleague has a problem with his application on a Windows 7 computer. It's an executable built with LabVIEW 2011 on a XP machine.

    Please see the attached screenshots for the appearance of the same exe under Windows XP and Windows 7 (where the fonts are more grand/resized).

    Do you have ideas about how to avoid this? One solution could be the use of screenshots of screen/bitmaps instead of text, but it is very uneasy about future changes.

    Best regards

    Manu

    Hi, manual,.

    This has been asked several times before:

    You must include some keys over in the INI of the executable file. I usually use those:

    FPFont = "Tahoma" 13
    BDFont = "Tahoma" 13
    appFont = "Tahoma" 13
    dialogFont = "Tahoma" 13
    systemFont = "Tahoma" 13

    Best regards!

  • With the help of the child in the executable class

    I'm kinda stuck and don't know how to solve and could not find a solution online.

    I have a parent class and its children to the class. The child class only overrides a method, but not the run method. I want to compile the executable project, where the run method is called, but the class type is the child, not parent. How to do this?

    I tried three things, but all in vain:

    (1) in the build properties when I select start VI the run method of the parent, I get in the executable the parent, not the child's class class. It's logical. However, I couldn't find the option to use the child as a type's class.

    (2) when I add the run method of the child class and appeal to parents, I get two windows pop up. The run of the parent and the child method. Too many. Even if for the class child run method (see below the block diagram of a child, red run method's parent), I put not to show the façade when it is called in the properties of VI.

    (3) when I tried with a separate VI calling the run method of the parent class, but the class type is the child, I get the façade of this separate VI and the run method of the parent. See below (Blue class is child, red of parent).

    In both cases 2 and 3, I chose to put the checkbox 'See the façade when it is called' a FAKE, but still the front panels appear.

    Someone don't know either: i) the use in the executable version of the options to generate an executable when a different class method is used, or ii) when you compile an executable file with a certain start VI, to not show this starting VI?

    I understand if I say "you want to configure the RUN method of the class as 'start-up VI' in the EXE file, but it should run the RUN method for a child object"?

    If this is correct, your third approach is the right one. This new boot VI is often used as 'Splash Screen' that covers the task of a demon "spawning" for your application.

    You must simply close this VI once it's over. This can be done using VI server on its own front panel functions.

    hope this helps,

    Norbert

  • error 1004 during the VI of the executable call

    I'm implementing the tutorial "create a windows NT service using LabVIEW", but I had no success. When I start my VI client I get the error 1004: the VI is not in memory. I always work with the normal executable, not the service again. Later, I will cross this bridge.  I made sure the data that generator VI has been included in the executable file (see attached files - no cookie generator VI, just a random number generator), and I have configured the server of VI in Project Explorer.  If I run the service VI in LabVIEW (not executable) and change the customer VI to search in memory rather than communicate through ports, then everything works perfectly, so I think that the problem is related with a certain configuration of the executable file.  Any help will be appreciated.

    There are several points here:

    (1) change the Boolean constant in svcSrvr.vi to a control, otherwise the VI does not appear in the exe file (even if it is specified in the build specification) [this looks like a bug to me]

    (2) in the application, use a different port (if not the project is still listening on this port as well as the application cannot listen on the same port), that is to change the port number in the application.ini. Solution: close the project before you run the exe.

    (3) wire "localhost" (or the name of the computer) the reference of the application open machine name entry.

    Hope this helps,

    Daniel

  • Reminders does not work in the executable LabVIEW front panel

    I have a couple of reminders in the process template that trigger an event in the event structure to update of the lights on the front panel for the user. Everything works fine until I have create an executable file. This can also be an indication of the other points, I have not discovered yet.

    Any ideas?

    Thanks for all the help.

    Found!

    Not unlike most of LabVIEW developers, I have a range of utility screws that I use over and over again. Such vi is vi uses a property node to find out what environment the application is running in, i.e. .llb, exe, development, publishing student, etc.. This vi is used because SEO screws in an executable file have a way different than when their listing in the development environment. Using this vi allows your code to reference the screws properly when developing and when the executable is built. The code still works because it automatically adjusts the referenced path of the vi. See attachment 'Path Finder.vi environment'.

    Now for the fun part! For some reason, perhaps because of the friendly character of NOR and the relationship it is with its developers :-), AND decided to change the path of the executables in LabVIEW 2009. After hours of troubleshooting and countless rebuilt, I came to the conclusion that the ' paths of the band of "work magically stopped working. It was at this time one of my friends happened to walk and ask why I had everything in my monitor across the room (figuratively speaking of course, I'm sure we've all been there). I explained what could be the only conclusion, band paths do not work!

    My friend immediately began laughing, having recently had the same problem. He explained that in LabVIEW 2009 executable paths are different and our 'find the path vi' would not work. He added that NOR, after finding this funny, however gave the developers a way to solve this problem with a check box within the app Builder. The box is called "Layout using LabVIEW 8.x file." See attached photo named "App Builder."

    The only thing I could say to my friend was, ' silly me, I should have know what that.»

    Laughing out loud

    Thank you for trying to help, it launched my butt.

Maybe you are looking for

  • H8-1130sc: graphics card Exchange end up in problem

    Hello My GTX550Ti is in the week and I bought a new GTX960. After Exchange system is not initialized. He's stuck in the setting of the page! How to come forward?

  • How can I change only the selected reference indicators?

    I need to change the benchmarks of several pieces on a Multisim / Ultiboard design, but I don't want to have to re-export to Ultiboard involved much more own your work. Any suggestions? Thank you very much, Tod

  • Synchronization results pane will not 'clear' in Media Player 11

    The first time I have connected my Walkman mp3 player to Windows media player 11, the default setting means that media player started to synchronize the content of my library to your walkman.  I stopped it and the parameters are now on the manual syn

  • OPU Test doesn't have a DVD - RW drive: HL-DT-ST DVD +-RW GT32N

    It's been a while since my dvd - rw drive stoped to function as it was supposed to. I never thought about it until today.So, I did the test and it says "Test of OPU - failed". What it means? I put something in the drive, it goes on and then my pc say

  • Having a hard time updating video driver.

    Hi all! So, I've been doing reviews of various games that I play my graphics/video driver is outdated and needs an upgrade. I pushed a little this turned off until I could not really play a game that I wanted to because my graphics driver was not abl