Commande d'onglet et execution bouclé

Bonjour,
Je bosse en ce moment sur un programme de gestion/supervision d'un Ball-trap je dois envoyer vers un automate les cycles de tirs (une partie peut se disputer à 1,2,3,4 et 5 tireurs) saisi via mon IHM (les cycles de tirs de chacun des tireurs doivent etre chacun dans un
onglet different).
Mon probléme est le suivant; comment executer les programmes de mes differents onglet en fonction du nombre de tireur (selectionnés via un menu déroulant).
Exemple : si l'utilisateur choisi  "4 tireurs" le programme doit éffectuer les actions contenues dans les onglets 1,2,3 et 4.
Merci d'avance 

Re,
Pour boucler, utilise une boucle (while par exemple)
Jette un oeil ici: States machine
Il s'agit d'une solution simple à mettre en oeuvre (une boucle while, un registre à décalage et une structure condition) qui est évolutive et qui permet de choisir dynamiquement le séquencement des étapes (ou états). Un petit exemple (utilise l'éxécution détaillée pour bien comprendre)
A+
P.S : j'ai omis de transformer mon énuméré d'états en typedef (pense à le faire sans quoi tu auras des problèmes plus tard pour faire évoluer ton code)
Message Edited by Mathieu Steiner on 05-24-2010 11:10 AM
Mathieu Steiner, Test System Engineer, Safran Engineering
CLD, ISTQB
Pièces jointes :
Machine etat simple.vi ‏19 KB

Similar Messages

  • Where is the .bat command when exporting an execution command?

    From the administrator console, I generate an execution command.
    I get a confirmation that the export was successful and a password file has been generated on:
    "on Job Server GBxxxxxx:3500, at C:/ProgramData/SAP BusinessObjects/Data Services/conf/Repo_GBLONBO11.txt."
    I have no problem locating the password file, but where is the .bat file?
    I have done a search on the entire server for jobname.bat file but nothing to be found.
    I have logged on to the server using the same username as the user which runs the Data Services service.
    In some other posts I found a reference to C:/ProgramData/SAP BusinessObjects/Data Services/common
    but that folder does not exist.
    We're using Data Services 4.2 on W2k.
    Thanks for your help,
    Jan.

    Dear Jan,
    Export Excution Command will create 1.bat and 1 .txt file with job name.
    You can find the .bat file under the below mention path
    C:\Program Files (x86)\SAP BusinessObjects\Data Services\log
    Note: Please make sure that you are searching in the system, where the job server is installed and running.
    Thanks,
    Sam

  • Modyfing java command in a midlet execution

    Hi all,
    I am trying to implement load time weaving in a Midlet Project. For doing so I have two options
    a) adding a -javaagent option to the java command
    b) replacing java by aj command
    The dificulty for me is that I do not know where the java command is invoked for the execution of the Midlet since I only find the java command for the execution of the emulator.
    Any help is really appreciated,
    thanks a lot,
    Guadalupe

    On real device its not possible for 2 reasons
    1) The AMS handles the life cycle of the midlet. It is responsible for starting, pausing and stopping the midlet. User don't invoke the command for starting the JVM. All happens through AMS.
    2) The JVM (rather KVM) for CLDC is a scale down version of desktop JVM. Hence you will not find all the options that are available for J2SE.
    Hope this helps.

  • Why executing a command suspends execution of all other workflows?

    I created a workflow, which contains multiple workflows that are supposedly to run in parallel (no lines connecting them).  Each sub workflow will eventually call some long running commands via exec().  In the run, I noticed that all sub workflows are started in parallel (good), but once one of the workflows calls a command via exec(), the execution of all other sub workflows are suspended until the command finishes.  I thought that only the workflow that invokes exec() should be blocked and waiting for exec() to return, while all other workflows should continue processing.  But in reality, this is not true.  All long running commands are eventually executed one by one even though they belong to different workflows that are set to run in parallel.  Why is that?  Any way to get around this?  I really don't want to use exec() flag 256, which makes the run asynchronous.
    Thanks.

    DI job server version is 11.7.3.0
    OS info:
    Linux 2.6.9-55.ELsmp #1 SMP Wed May 2 14:04:42 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
    redhat-release: CentOS release 4.5 (Final)
    Thanks.

  • Using java to run command line as %username%

    Hi all,
    can any one help with this?
    I'm trying to run a command line from a database as %username% in Windows. So far I have the following script, courtesy of Frank Naude to build a java class that is published within a plsql procedure. A command line can then be passed to it.
    rem -----------------------------------------------------------------------
    rem Filename: oscmd.sql
    rem Purpose: Execute operating system commands from PL/SQL
    rem Notes: Specify full paths to commands, for example,
    rem specify /usr/bin/ps instead of ps.
    rem Date: 09-Apr-2005
    rem Author: Frank Naude, Oracle FAQ
    rem -----------------------------------------------------------------------
    rem -----------------------------------------------------------------------
    rem Grant Java Access to user USER1
    rem -----------------------------------------------------------------------
    conn sys/password@database as sysdba
    EXEC dbms_java.grant_permission('USER1', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC dbms_java.grant_permission('USER1', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    EXEC dbms_java.grant_permission('USER1', 'SYS:java.io.FilePermission', '/bin/sh', 'execute');
    EXEC dbms_java.grant_permission( 'USER1', 'SYS:java.io.FilePermission','C:\WINDOWS\system32\cmd.exe', 'execute' );
    rem -----------------------------------------------------------------------
    rem Create Java class to execute OS commands...
    rem -----------------------------------------------------------------------
    conn user1/password@database
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "Host" AS
    import java.io.*;
    public class Host {
    public static void executeCommand(String command) {
    try {
    String[] finalCommand;
    finalCommand = new String[4];
    finalCommand[0] = "C:\\WINDOWS\\system32\\cmd.exe";
    finalCommand[1] = "/y";
    finalCommand[2] = "/c";
    finalCommand[3] = command;
    // Execute the command...
    final Process pr = Runtime.getRuntime().exec(finalCommand);
    // Capture output from STDOUT...
    BufferedReader br_in = null;
    try {
    br_in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
    String buff = null;
    while ((buff = br_in.readLine()) != null) {
    System.out.println("stdout: " + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_in.close();
    } catch (IOException ioe) {
    System.out.println("Error printing process output.");
    ioe.printStackTrace();
    } finally {
    try {
    br_in.close();
    } catch (Exception ex) {}
    // Capture output from STDERR...
    BufferedReader br_err = null;
    try {
    br_err = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
    String buff = null;
    while ((buff = br_err.readLine()) != null) {
    System.out.println("stderr: " + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_err.close();
    } catch (IOException ioe) {
    System.out.println("Error printing execution errors.");
    ioe.printStackTrace();
    } finally {
    try {
    br_err.close();
    } catch (Exception ex) {}
    catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    show errors
    rem -----------------------------------------------------------------------
    rem Publish the Java call to PL/SQL...
    rem -----------------------------------------------------------------------
    CREATE OR REPLACE PROCEDURE host(p_command IN VARCHAR2)
    AS LANGUAGE JAVA
    NAME 'Host.executeCommand (java.lang.String)';
    show errors
    rem -----------------------------------------------------------------------
    rem Let's test it
    rem -----------------------------------------------------------------------
    exec host('notepad');
    The trouble is although this script works great for commands that can be run is the 'background' as SYSTEM is I want to pass a command to actually open something e.g. notepad in the above example nothing seems to happen. As far as I can make out the command line is running but not as %username% so it's not running notepad.exe in the foreground.
    I'm happy to clarify more if necessary.
    Can anyone help with this?
    Cheers
    Yog

    Bill,
    Thank you for the quick answer. I believe you are right in your assumption.
    I have been searching but found nothing so far.
    I need to be able to run this line "wmic
    Product where name='XXX XXX XXX' call uninstall" 
    in an elevated command prompt to uninstall the program.
    I was looking for a VB script or PowerShell to execute it remotely on non domain roaming PCs.
    Th3e command can be run remotely against stand-alone workstations but you must supply credentials.  Post in the platform forum for you version of Windows for help in using the WMIC utility.  WMIC /? will give you all of the command options fro
    remote execution.  UAC only affects local systems.  You cannot use WMIC to remote back to the local system. WMIC does not allow impersonation to the local system.
    Most installers will not automatically allow an unattended uninstall.  If there is any dialog at all the uninstall will fail and can hang.
    I recommend contacting the vendor of the application to get more information.
    In all cases you cannot bypass UAC as Bill has noted.  I am only noting that, sometimes, in a workgroup, you can use WMIC to remotely uninstall an application.
    ¯\_(ツ)_/¯

  • Issue in execution flow in a package

    Hi All,
    When there are more than 1 steps merging to one command in package, the execution path becomes totally unpredictable.
    For example, take the path mentioned below, as i can't attach the image, i am mentioning the flow below:
    Counter (Evaluate Variable) OK> FileName OK> LoadSalesFiles OK> Counter (Increment) OK> EndLoop
                   KO> Counter(Increment) OK> EndLoop
    Two commands, FileName and LoadSalesFiles merge into the command Counter(Increment).
    Scenario 1 : The command 'Counter' gets executed based on these results (a) successful execution of command 'LoadSalesFiles' OR (b) Failure of command 'FileName'. All these are encapsulated in a package P1 and is executed. The result is highly unpredictable since sometimes the execution path is 'FileName' --> 'Counter' and sometimes 'LoadSalesFiles' --> Counter and sometimes even weird 'FileName' --> 'EndLoop'-->'Counter'. We executed the package several times and each time the execution path and the result was different which is not what we expect.
    Scenario 2 : We removed the command link from 'FileName' to 'Counter'. With this the package ran fine giving the expected result.
    The modified command is:
    Counter (Evaluate Variable) OK> FileName OK> LoadSalesFiles OK> Counter (Increment) OK> EndLoop
    Any help on this would be much appreciated.
    Thanks,
    Nithesh B

    Can you upload the image to some free service like picasa ?
    That would help us in understanding more quickly.

  • SQL 2012 SSIS package runs from the command line (dtexec.exe) and completes right away ...

    Hi
    I’m upgrading our SSIS packages from SQL 2005 to SQL 2012 .
    Everything is working fine in Visual Studio, but when I’m submitting dtexec.exe it’s finishing right away in the command line (the actual execution takes long time). 
    It looks to me that as the return code doesn’t pass properly.
    As I have depending tasks how I can make sure all jobs will be executed in the proper order.
    (We never had this issue in SQL 2005)
    C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn>dtexec.exe /ISSERVER "\"\SSISDB\Direct_Prod\Direct_SSIS_Package
    \DD_Load_Customer.dtsx\"" /SERVER TORSQLSIS01 /ENVREFERENCE 2
    Microsoft (R) SQL Server Execute Package Utility
    Version 11.0.2100.60 for 32-bit
    Copyright (C) Microsoft Corporation. All rights reserved.
    Started:  10:21:55 AM
    Execution ID: 21138.
    To view the details for the execution, right-click on the Integration Services Catalog, and open the [All Executions] report
    Started:  10:21:55 AM
    Finished: 10:21:56 AM
    Elapsed:  0.766 seconds

    As per MSDN /ENVREFERENCE argument is used only by SQL Server Agent
    see
    https://msdn.microsoft.com/en-us/library/hh231187.aspx
    below part is what it says
    /Env[Reference] environment reference ID
    (Optional). Specifies the environment reference (ID) that is used by the package execution, for a package that is deployed to the Integration Services server. The parameters configured to bind
    to variables will use the values of the variables that are contained in the environment.
    You use /Env[Reference] option together with the /ISServer and the /Server options.
    This parameter is used by SQL Server Agent.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to capture the execution plan for a query

    HI All,
    Can anyone please help me in finding out the command to capture the execution plan for a query.
    Execution plan for select * from EMP where <Condtions>
    it is getting executed successfully but i need to get the proper execution plan for the same.
    Thanks

    971830 wrote:
    i want to know where execution plan gets generated??
    in PMON of server process or in shared pool??
    i know that optimixer create execution plan..It is stored in Library Cache (present inside Shared Pool ).
    select * from v$sql_plan;An absolute beautiful white paper :
    Refer this -- www.sagelogix.com/sagelogix/SearchResults/SAGE015052
    Also -- http://www.toadworld.com/KNOWLEDGE/KnowledgeXpertforOracle/tabid/648/TopicID/XPVSP/Default.aspx
    HTH
    Ranit B.

  • How can we ask an order of execution ?

    I want to command un order of execution of two operations in my VI. At the beginning, my program worked well but when I added a for loop, the program doesn't work enought like I want it work...
    Thanks in advance
    hasna

    I've just succeeded in solving my probem but I have another, I want to open a query of my database thanks to labview but I want to open it and it must stay open but noaw, it open and disapear immeditly...
    Have you an idea for my problem ???
    Attachments:
    lecture_de_la_table.vi ‏24 KB

  • Ps command , DB credentials visible on command line.

    Guys,
    In one of my shell scripts, I connect to the database as below:
    sqlplus -s /nolog <<EOF >> ${LOG_FILE}
    CONN ${DB_CONNECT}
    I would assume that my database connect credentials will not be visible in the command line , when someone executes command below, during the execution of my shell script.
    ps -ef | grep "sqlplus"
    However, the ps listing makes the credentials visible..Thoughts please..
    Thanks!!!
    -Bhagat

    Bugs wrote:
    sqlplus -s /nolog <<EOF >> ${LOG_FILE}
    CONN ${DB_CONNECT}
    I would assume that my database connect credentials will not be visible in the command line , when someone executes command below, during the execution of my shell script.
    ps -ef | grep "sqlplus"
    However, the ps listing makes the credentials visible..Thoughts please..Not really relevant to either the SQL or PL/SQL server languages. Please post Unix/Linux questions in a more appropriate forum.
    Operating system and version?
    The ps command shows the command line. With the above example, your authentication string is not on the command line. Instead you redirect STDIN and the connect command with the username and password are read from standard input. As it is not on the command line, I fail to see why ps would show this.
    I think you are misdiagnosing the problem - seeing another sqlplus process that actually specify the username and password on the command line and mistaking it for your sqlplus process.

  • Facing issues while executing LDAPBind command in Unix

    Dear All,
    We are trying to invoke a shell script from PeopleCode(which is having the ldapbind command) through exec command. We are able to invoke the shell script but the ldapbind command fails to execute. It throws the below error
    +"/usr/bin/ldapbind: error while loading shared libraries: libclntsh.so.10.1: wrong ELF class: ELFCLASS32"+
    Not sure whether this is an issue with the installation or configuration. Kindly help us to resolve this issue.
    however when we executed this script in unix server directly, its running successfully.
    When I have tried to invoke the shell script from PeopleCode using WinExec command, got the below error from PeopleSoft itself
    +"Function '%1' cannot be run on the application server. (2,164)+
    +A PeopleCode program that is running as part of a processing group on the application server is using a PeopleCode built-in function that is not allowed on the application server."+
    Kindly help us to understand what is missing here.
    Thanks,
    Hari.A

    Still no clue to fix this issue.
    we are able to invoke the script from PeopleCode which has the LDAPBind command. We are writing the log files after invoking this script.
    We are able to see those log files getting generated also. But it's not capturing the result of LDAPBind and looks like ldapbind command is skipped from execution.
    Please help us to understand where we are missing?
    Thanks,
    Hari.A

  • Need script to run command line as administrator

    I need a VB Script to run a certain command line "wmic Product where name='XXX XXX XXX' call uninstall" in an elevated command prompt.
    This is to uninstall a hidden application.
    Is this possible? It must be I have see many others with suggestions and here it is. I tried a few I have seen but have not been able to get any to work.

    Bill,
    Thank you for the quick answer. I believe you are right in your assumption.
    I have been searching but found nothing so far.
    I need to be able to run this line "wmic
    Product where name='XXX XXX XXX' call uninstall" 
    in an elevated command prompt to uninstall the program.
    I was looking for a VB script or PowerShell to execute it remotely on non domain roaming PCs.
    Th3e command can be run remotely against stand-alone workstations but you must supply credentials.  Post in the platform forum for you version of Windows for help in using the WMIC utility.  WMIC /? will give you all of the command options fro
    remote execution.  UAC only affects local systems.  You cannot use WMIC to remote back to the local system. WMIC does not allow impersonation to the local system.
    Most installers will not automatically allow an unattended uninstall.  If there is any dialog at all the uninstall will fail and can hang.
    I recommend contacting the vendor of the application to get more information.
    In all cases you cannot bypass UAC as Bill has noted.  I am only noting that, sometimes, in a workgroup, you can use WMIC to remotely uninstall an application.
    ¯\_(ツ)_/¯

  • Query is slower on the first execution

    I noticed that when I run a query command on the shell, the first run is significantly slower. I used the time command to measure the execution time. The execution time for the first run is more than 10 times of the second run.
    E.g. My query took me 5.97s at the first run, but the same query only took 0.3s at the second run.
    I wonder whether this is a general circumstance for Berkeley DB XML or is it specific to the container that I created?
    Thank you!

    all of our dbs have that behaviour too. I assume it had to do with caching in memory and (if on *nix xystems) disk caching as well. any disk based db I've worked with has that "feature".                                                                                                                                                                                                                                                                                                                                                                                   

  • Srvctl vs startup command in RAC

    Hi,
    pls clarify some doubts about srvctl /startup?
    1,What is the difference between startup and srvctl in rac.what is the advantage of srvctl over startup.
    2,How to start the database( From CRS to DB instance) in rac by traditional method ( startup command).
    3,I read the oracledocumentation "http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm"
    which says only command descriptions.but i need what actually happening while executing the command?
    4,The executions are same compare with traditional method or not?
    Thanks & Regards,

    Hi,
    1,What is the difference between startup and srvctl in rac.what is the advantage of srvctl over startup.
    - SRVCTL is cluster aware so you can control database instances for any node in the cluster, which is something you can not do manually. Consider policy based cluster databases in 11gR2, managing databases manually will not be easy.
    2,How to start the database( From CRS to DB instance) in rac by traditional method ( startup command).
    - Can you elaborate on your question? If your question is to start database manually then its exactly same as of single instance database OR do you want to start the database using cluster control utility (CRSCTL)?
    3,I read the oracledocumentation "http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/srvctladmin.htm"
    which says only command descriptions.but i need what actually happening while executing the command?
    - SRVCTL pass on request to Oracle Cluster ware, which checks for the dependencies and start the corresponding database resources. I guess internally it use the same OCI calls that SQL*Plus use to start the database.
    4,The executions are same compare with traditional method or not?
    - With SRVCTL, it checks for the dependencies such as asm and listener resources and start them where as manual method will fail startup and throw some relevant errors.
    Thanks & Regards,
    http://oraxperts.com.au

  • Using the at command

    Can I use the at command to run a command like "say". In effect can I make my mac say a text at a specified time?
    I tried writing a say command to a text file on the desktop called "atjob".
    <pre> say "Take a break now"</pre>
    then tried
    <pre> at -f ~/Desktop/atjob 18:36</pre>
    and voila! nothing happened at 18:36
    atq showed job scheduled at 18:36.
    How can I make it work?

    The man page says this ...
    NOTE
    at, batch, atq, atrm are all disabled by default on Mac OS X. Each of these commands depend on the
    execution of atrun(8) which has been disabled due to power management concerns. Those who would like
    to use these commands, must first (as root) re-enable atrun by running:
    launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
    Eric

Maybe you are looking for

  • Usb stick is "READ ONLY FILESYSTEM"

    hello. i have a problem with my USB-Stick. since i gave it to a friend it does no longer work. unix says it is a "READ-ONLY FILESYSTEM". anny sugestions how i could change that? it was not possible to reformat it by disk utility. i also tried to form

  • Call selection screen in fm

    Hi all! I have a report, and i have a selection screen in a fm. Report call fm, and it bring me selection parameters. However i need run report in background, but option (F9) for do this, not visible. Somebody have any idea for resolve this ? pd: i s

  • Safari/Firefox - Failed to open page

    Since I upgraded to Snow Leopard there have been a radical increase in the amount of times Safari AND Firefox cannot find the server of a webpage, to the point where 3 out of 10 pages load first time. It is incredibly annoying especially when I am tr

  • Error message on Sprint Treo 755P AirSAMStatemachine.c 1913 14721

    keep getting the following error message when I try and sync to my email. I have checked with my IT person and have all the correct settings. Any help for this? Post relates to: Treo 755p (Sprint)

  • Can i reinstall older browser that's supports google toolbar ?

    This is a simple question !