Lean how to run the stop code when the highest level VI ends

Hi people.

I am a newbie of LV with 30 years of experience in embedded SW engineering.  I searched for how to run the stop code when a VI of highest level ends.  I found many examples, but they are horribly complicated.  A little birdie told me that such a model of simple design should not be so compilicated.

My application is an application of high tension control to disable all HV checkpoints when the SW ends.  My VI code is running in a while loop with a stop button that leads out of the loop.  I can easily accomplish my requirement by programming with a sequence of plate that runs after the end of the main loop.  The technique of flat sequence does not work when the user clicks the Cancel button in the toolbar of façade, more than that market when the user clicks the close button of the application (X button) when you run the exe application.

Can someone tell me please a simple technique, the code example that can show me a lean and elegant way to accomplish my task?  It doesn't have to be an obvious solution (for example a stop induced watchdog seems simple enough).

Thank you - John Speth

1. place this code in a VI:

(also attached)

Calling code in your VI of highest level like this:

Tags: NI Software

Similar Questions

  • I want to run a vi that has a switch that passes between when run in vi It gives meeesage the highest level VI stopped for the unknown

    I want to run a vi that has a switch that passes between when run in vi It gives meeesage the highest level VI stopped for the unknown

    What should do?

    bisso92,

    You must be more specific...  When you say that you want the cover to be visible when it is called, I suspect you mean sub - vi.  You can go to the menu:

    File > properties VI then select the appearance of the window, followed to customize and select "display panel when called.  You can also select close thereafter, while initially closed.

    There are other "tricks", such as the incorporation of secondary school within your main VI, in this way, you can see both.

    Normally, a hand VI (or main function in other languages), would still present so that the operator can perform other operations.  If so you should look at using a Structure of the event with a producer / arrangement of consumer, where the consumer in a loop has the case structure where the sub-vis.

    To learn more about LabVIEW, I suggest that you try to watch some of these tutorials.

  • How to run the Extendscript .bat file?

    I have a file with some instructions .bat and I want that it runs from Extendscript.

    How to run the Extendscript .bat file?

    I tried execute(); order and it seems that .bat ran but no result, but when I double click on the .bat file all worksout very well.

    How used runtime.exec () extend the script?

    Can I communicate with Java JDK thru ExtendScript and run commands such as runtime.exec ()?

    can someone please?

    You can do it like this:

    var batFile = new File("C:\\path\\to\\my\\batfile.bat");
    batFile.execute();
    

    Note that this will only work if your system is configured in such a way that by double-clicking the .bat file runs it in reality.

    You can also use

    system.callSystem()
    

    but note that this is only available in AE.

  • [CS4:JS] How to run the file ".sh" via Javascript

    Dear all,

    How to run the file ".sh" through Adobe InDesign Javascript, I used the code below:

    //================== Code =============================//

    var myFile = File("xxx/xxx/xxx/Test.sh");

    var Exec = "sh" + "" + "\""+myFile+"\;"

    Leader (exec). Execute();

    //================== End =========================//

    codes above does not work, I checked before without the "sh" in addition, it does not work.

    Please can someone give me the solutions and the suggestion, and I'd appreciate it.

    Thanks and greetings

    SudhaN T.R.Harihara.,.

    Have your IDMLExportparse.sh file runs permission set?

    If you open Terminal.app and type

    /Applications/MacXinPro/IDMLExportparse.sh

    It work? Or do you need to run "sh"? If so, either adjust the

    permissions with

    chmod a + x /Applications/MacXinPro/IDMLExportparse.sh

    or modify the JavaScript code for:

    shell("sh "+myFile);
    
  • How to run the query on load

    Hello
    I have a form based on the table that store only 1 card. I have created a form page, but may not know how to run the query and display the record in the table. If there is no record in the table, I want that the user can use this page to create a record.
    Thanks in advance
    NRI

    Hello Nri,

    What value does P18_SCHOOL_ID?
    If you look at the State of Session (toolbar) developer. If that does not have a value, it's your problem.

    You can create a calculation before the process that gives the correct value. (In one case more often, you have a report and when you click on the link change that id is activated and you see the recording in your form)

    Dimitri

  • How to run the VI developed in labVIEW 2011 in its previous versions

    Hi all

    I am currently using LabVIEW 2011 in my PC at home.

    But, all my school's computers are installed with LabVIEW 2010 and 2010 SP1.

    How to run the VI developed in LabVIEW 2011 in its previous versions?

    Is there any conveter why?

    Concerning

    Prasanth T

    Open the VI in LabVIEW 2011 and use the file menu option, save for the previous Version.

  • What is tdrc.tdrcfacade and how to run the installation wizard?

    What is tdrc.tdrcfacade and how to run the installation wizard?  My desktop creative cloud application does not open properly... it is just a blank window.

    Much obliged,

    Angiecrichards@gmail.com

    ! !

    Are Angie, you a blank white screen? What version of OS are you using?

    Here's what you can try:

    1. Blank white screen. Sign in | Creative cloud Packer
    2. New application Cloud Creative unusable: it is empty!
    3. Creative cloud Packager white screen after the Adobe ID Login
    4. Re: screen creative black cloud

    Waiting for your response.

  • I downloaded items on my mac and it installed. How to run the program?

    I downloaded items on my mac and it installed. How to run the program.

    Hi David,

    You can simply click on the application to launch from the folder "Applications".

  • How to run the repository creation utility (11.1.1.3.3)

    Hi experts, I downloaded utility creation (11.1.1.3.3) at oracle.com repository as I was told to run it before installing Oracle Business Intelligence, v. 11.1.1.3.0, I already unzipped the UCR, my problem is I do not know where and what run.i I ask the name of the file to be executed, the location of this file because there are so many issues after having unpacked the downloaded file. Finally, how to run the file (for example by double-clicking). Thank you

    Visit this link,

    http://obiee101.blogspot.com/2010/08/obiee11g-installation-on-32-bits-XP-Pro.html

    He noted the location of the controls on the remote file, double click will start the process.

    Thank you
    Vino

  • How to run the Config tool?

    We are Linux running Essbase 11.1.1.3 - can someone tell me how to run the Config tool?

    Hello

    Try. //common/config/9.5.0.0/configtool.sh

    More information:-http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch04s05.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to find the child level for each table in a relational model?

    Earthlings,

    I need your help, and I know that, "Yes, we can change." Change this thread to a question answered.

    So: How to find the child level for each table in a relational model?

    I have a database of relacional (9.2), all right?
    .
         O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
        /↑\ Fks
       O"O O" <-- level 2 for first table (circle)
      /↑\ Fks
    "o"o"o" <-- level 1 for middle table (circle)
       ↑ Fk
      "º"
    Tips:
    -Each circle represents a table;
    -Red no tables have foreign key
    -the picture on the front line of tree, for example, a level 3, but when 3 becomes N? How is N? That is the question.

    I started to think about the following:

    First of all, I need to know how to take the kids:
    select distinct child.table_name child
      from all_cons_columns father
      join all_cons_columns child
     using (owner, position)
      join (select child.owner,
                   child.constraint_name fk,
                   child.table_name child,
                   child.r_constraint_name pk,
                   father.table_name father
              from all_constraints father, all_constraints child
             where child.r_owner = father.owner
               and child.r_constraint_name = father.constraint_name
               and father.constraint_type in ('P', 'U')
               and child.constraint_type = 'R'
               and child.owner = 'OWNER') aux
     using (owner)
     where child.constraint_name = aux.fk
       and child.table_name = aux.child
       and father.constraint_name = aux.pk
       and father.table_name = aux.father;
    Thought...
    We will share!

    Thanks in advance,
    Philips

    Published by: BluShadow on April 1st, 2011 15:08
    formatting of code and hierarchy for readbility

    Have you looked to see if there is a cycle in the graph of dependence? Is there a table that has a foreign key to B and B has a back of A foreign key?

    SQL> create table my_emp (
      2    emp_id number primary key,
      3    emp_name varchar2(10),
      4    manager_id number
      5  );
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table my_mgr (
      2    manager_id number primary key,
      3    employee_id number references my_emp( emp_id ),
      4    purchasing_authority number
      5* )
    SQL> /
    
    Table created.
    
    SQL> alter table my_emp
      2    add constraint fk_emp_mgr foreign key( manager_id )
      3         references my_mgr( manager_id );
    
    Table altered.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by prior child_table_name = parent_table_name
    SQL> /
    ERROR:
    ORA-01436: CONNECT BY loop in user data
    

    If you have a cycle, you have some problems.

    (1) it is a NOCYCLE keyword does not cause the error, but that probably requires an Oracle version which is not so far off support. I don't think it was available at the time 9.2 but I don't have anything old enough to test on

    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by nocycle prior child_table_name = parent_table_name
    SQL> /
    
           LVL CHILD_TABLE_NAME               PATH
    ---------- ------------------------------ --------------------
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
    

    (2) If you try to write on a table and all of its constraints in a file and do it in a valid order, the entire solution is probably wrong. It is impossible, for example, to generate the DDL for MY_EMP and MY_DEPT such as all instructions for a table come first, and all the instructions for the other are generated second. So even if NOCYCLE to avoid the error, you would end up with an invalid DDL script. If that's the problem, I would rethink the approach.

    -Generate the DDL for all tables without constraint
    -Can generate the DDL for all primary key constraints
    -Can generate the DDL for all unique key constraints
    -Can generate the DDL for all foreign key constraints

    This is not solidarity all the DOF for a given in the file object. But the SQL will be radically simpler writing - there will be no need to even look at the dependency graph.

    Justin

  • How to show the ink levels on the computer for Officejet 6600

    How to show the ink levels on the computer for Officejet 6600

    What is the full product name or product number?

    is your printer?

    This is the Manual of your printer the following image was derived.

    You can use the printer's built-in web server to get the status of the printer information from a browser.

  • How to get the battery level and status in the cpp file?

    Hi all

    BatteryInfo class so I can I know how to get the battery level and the State in .cpp class?

    Hi Benecore,

    I have Add method below,

    #include

    But I only variable BatteryInfoPrivate not get variable BatteryInfo. You can also check on your side.

    So let me know how to get batteryInfo instance?

  • PL/SQL error - the highest level of program management

    Hi all

    http://download.Oracle.com/docs/CD/B10501_01/AppDev.920/a96624/07_errs.htm
    You can avoid unhandled exceptions by coding an OTHERS handler at the topmost level of every PL/SQL program.
    What is the highest level of the PL/SQL program?

    Why reading old documents?
    Are you still using version 9 of the database?
    Why not read from:
    http://www.Oracle.com/pls/db112/homepage

    The APPELLANT (or INVOKER) should deal with unexpected errors as explained here: http://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:4684561825338

  • How to run the alert box when opening the document

    I use Acrobat 9 and here an alert box come when the document is opened. I have successfully obtained an alert box is displayed by using the script below when recording using actions of the document, but do not know how to run when the document opens. Can someone tell me how to change this option to add Javascript actions, so it will be run when the document opens? Thank you!

    app.alert ("save your completed form and send it as an attachment to [email protected]", 0, 0,)

    It is not a question to change it, but put in the right place.

    You must go into Advanced - processing of Document - Document JavaScripts...

    Then create a new script, clear the contents of the window that opens (the

    Function declaration) and paste this line of code instead.

    Save the file and that's it.

Maybe you are looking for

  • The projector noise Camileo H20 movie while watching a movie

    I recently bought a Camileo H20 and when I visualize a movie it makes a noise of engine as it was a film projector. At first, I thought it was a fun feature, but later, I tried to get rid of this noise. I tried to turn off the sound, but it always sa

  • Forgotten password wireless.

    Origunal title: password wireless I just brought a kobo reader and need to pair it with our WiFi connection, it asks for a password and I forgot it completely and those I've tried does not work

  • Remote in history registry

    would like to know how to find who and when they loged in computer, would be of remote connection, like to know who or what computer did the newspaper

  • Get rid of a program that "does not exist"!

    Advanced Registry Optimizer Ideas: You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the problem

  • 17 R3 GTX980 limitation problem

    I have an Alienware 17 r3 gtx980 i7 16 GB of ram I get a really fast fps drop like 10 minutes of game shows and beta BF1 (when he was out) its really boring I'll leave as 100-200 fps 10-30 and when I look at the Task Manager, it says it's like on 0.7