Condition vraie pendant un temps donné

Bonjour,
J'aimerai savoir si c'était posssible dans une boucle condition que lorsque ma condtion deviens fausse, attendre 5 secondes avant d'effectuer ce qu'il y a dans la condition faux. Sachant que ma condtion est simplement un bouton poussoir, vrai si je l'allume, faux si je l'éteinds.
Donc lorsque j'éteinds le bouton, il y a une tempo de 5 secondes avant que la condition fausse ne se fasse.

Fausse alerte !!!
Il fallait simplement mettre un "attendre" avec comme constante 5000ms dans la condition vrai !

Similar Messages

  • Maintenir une sortie activée pendant un temps donné

    Bonsoir,
    Je me permets de vous solliciter, car je n'ai pas trouvé de solutions à mon problème du moment et je dois gérer divers projets de mes élèves de SSI avec peu de recul sur ce logiciel (quelques heures seulement).
    Je souhaiterais quand cette condition est vraie que l'activation du port de sortie de ma carte 6809 soit maintenue pendant une durée finie (25 s). Le  module statechart permet de programmer des diagrammes d'états-transitions, je ne le connais pas mais il doit bien y avoir une solution pour réaliser cela sans utiliser ce module spécifique. L'activation de ce port permettra d'alimenter un moteur CC pendant un temps fini (en boucle ouverte). Pour info, le bouton rotatif me permet de tester ce programme sans avoir à lire le nombre de fronts montants sur un port d'entrée.
    Par avance, vous remercie pour votre aide.

    la fonction temps écoulé ne permet pas d'avoir d'excellente précision pour un pilotage de carte. on a un système qui utilise l'horloge du PC qui n'est pas du "temps réel". l'utilisatin d'un échantillonnage hardware pour le cadencement est ce qu'il y a de plus approprié (ce que fait la carte daq en interne ou par une source externe). les vi express sont bien pour coder rapidement mais pas pour qu'il soit performant. faire son code à la main permet de savoir ce que l'on met dedans et comment ça fonctionne. 
    Cordialement
    L.MICOU

  • Problème d'acquisition des données pendant un temps fixé par l'utilisateur

    Bonjour la communauté Labview,
    j'ai un problème d'acqusition et d'écrire des données dans un fichier .lvm
    Comme vous le montre le fichier pdf joint, en mode manuel toute se passe bien. Lorsque j'appuie sur le bouton acquisition, un nombre de données est acquéri et permet de réaliser une moyenne sur ces échantillons.
    En mode automatique, la boucle for réprésente une série de mesures à réaliser et fixé par l'utilisateur
    Mon problème se situe au niveau du triangle rouge car l'acquisition des données ne se fait pas correctement. je voudrait que ça  enregistre les données acquis par le module d'enregistrement pendant un temps que l'utilisateur a fixé et ainsi on récupérera  N d'échantillons dont le nombre n'a pas grande importance.
    Le problème est que le module d'enregistrement ne se lance pas si bien que le fichier ne se crée même pas ou bien il récupère un échantillon.
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    diagramme simplifiée VI final.pdf ‏41 KB

    Bonjour,
    Merci pour votre réponse mais j'ai réussi à régler le problème vendredi soir après plusieurs heures de combat acharné avec mon programme.
    Cordialement,
    Alexandre

  • TS4425 Trying to accept icloud terms of service from my MacAir.  Step 3 says: "After a moment, the latest iCloud Terms and Conditions should load."  They don't.

    Trying to accept icloud terms of service from my MacAir.  Step 3 says: "After a moment, the latest iCloud Terms and Conditions should load."  They don't.  How to pull up terms of sevice when Apple instructions don't work?
    Also, are "Terms of Sevice" and "Terms and Conditions" the same document?

    You can access the store but ...
    The Complete Guide to Using the iTunes Store
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."

  • Changing Header/Item condition after billing has been done

    Hi,
    I have an issue in which the sales order is incomplete but invoicing has been done. On seeing the change log I found that new condition type has been added after generation of invoice.
    Now the user wants that entire header/item condition screen should be greyed out after creation of billing document. can it be done through config or user exit is the way,
    My apologies if I posted at a wrong thread.
    Thanks
    Subhadeep

    Hi,
    There is no mechanism to find out if the billing document has been created and sales order will allow changes to pricing even after creation of invoice.
    The point is that, it doesnt matter if the sales order is changed after the invoice has been created, since the values from SO has gone into billing.
    However, if you still wish to lock changes to order once it is billed, kindly refer to some userexit like MV45AFZZ which works during sales order processing and you may get the billing status from VBUK and VBUP tables.
    Regards,
    Amit

  • How to delete TV shows that are pending downloads? Don't want them!

    How do I delete pending downloads from my iTune account? Don't want them, but they persist in wanting to be mine.

    You would have to let them download then delete them.
    You can try contacting itunes and asking if they will remove it,

  • Relevance Condition for released P.O. Don´t create the EH in EM

    Hello Experts,
    I have the following issue, I create a Relevance condition For an Application Object Type, in this case acording to ZPCM10_ITEM. The condition works like this:
    &UEKPO-Purchasing Doc&                >         1999999               and
    &UEKPO-Purchasing Doc&                <         3000000              
    )                                                                                and
    &UEKPO-Plant&                                  =          BPXX
    The condition works well, only create the PO into the range of numbers and with the plant. My problem is when i include into the condition the "Release indicator: Purchasing Document" according this:
    &UEKPO-Purchasing Doc&                >         1999999               and
    &UEKPO-Purchasing Doc&                <         3000000              
    )                                                                                and
    &UEKPO-Plant&                                  =          BPXX                   and
    &/SAPTRX/MM_PO_HDR-Re&            =          1
    I include the condition of the indicator = 1 (Released). In theory in EM we can only see the Purchase orders in Released Status, but when i execute ME28 Transaction, nothing happen and the P.O. don´t work in Event Management.
    Do i forget other step to reach the objective?
    I appreciate a lot your help and support.
    Thanks a lot and best regards.
    Julián.

    Hello Berthold,
    Thanks a lot by the function module, i really don´t knew it, was very helpful to identify my problem. As you explain, yes the condition result was F (false), so the EH was not created.
    We must to modify the condition, because our scenario is procurement visibility process and it works at P.O. Item level, so we cannot get this validation in the condition, we decide to create an expected event and registered this with the help of the User Exit EXIT_SAPMM06E_007.
    We decide this, because when we create the P.O. but don´t release this, ok, the EH was not created, but later when we release the P.O., the expected event extractor, don´t trigger, so the expected events extractor was not generated and this option was not useful for us, because we have an empty EH.
    So we use the Exit EXIT_SAPMM06E_007, to check the Event Release P.O. and send it to the Event Manager via calling the functions 'TRFC_SET_QUEUE_NAME' and '/SAPTRX/BAPI_EH_ADDEVENTMSG_02'.
    Thanks by your help Berthold and i appreciated a lot your opinion about this solution.
    Best regards,
    Julián.

  • Bug: branches conditional on page 0 buttons don't copy correctly

    I believe this is an HTML DB bug:
    If you copy a page containing a branch that is conditional on a button on page 0, the branch is converted to an unconditional branch when copied.
    Can you confirm if this is a bug, and if so, if it can be fixed in a patch or future release?

    Eric - Looks like a bug, thanks for pointing it out. It'll be fixed in a regular release.
    Scott

  • Temps différé et cumulé

    Bonjour,
    J'ai un souci quant au fonctionnement de ma simulation. J'expose le principe de fonctionnement:
    Je simule un signal arbitraire (ensoleillement sur les capteurs solaires), si la température de mon ballon est plus faible que la température des capteurs, alors je chauffe mon ballon (par une formule en fonction du temps) (condition vrai).
    Mais étant donné que je fais appel à un signal variable (parfois il n'y a pas d'ensoleillement), mon ballon ne chauffe pas toujours (condition faux).
    Où est mon problème ? 
    -> Dans ma formule je fais appel au temps de chauffe du ballon pour évaluer sa température, or la fonction comptage (que j'ai mis en place) me comptabilise le temps depuis le début de la simulation. Impossible de ne pas prendre en compte le temps de chauffe du ballon cumulé (prise en compte des temps pause dans la condition vrai, or il ne faudrait pas).
    En somme, comment faire comprendre à ma simulation qu'il ne faut pas compter les temps de pause (instant où le ballon ne chauffe pas) ?
    J'espère avoir été assez clair. Sinon n'hésitez pas à me demander plus d'explications de ma part.
    Merci d'avance pour votre aide.
    Cordialement.
    PS: j'utilise LabView version 7
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    9-Banc pédagogique solaire collectif.vi ‏1438 KB

    Bonjour, 
    ceci devrait résoudre votre problème.
    Si vous avez d'autres questions, n'hésitez pas.
    Cordialement, 
    Galega

  • Financial Reporting - don't work condition "starts with"

    Hi All,
    I want exclude rows from report where dimension members name start with "9", I try suppress row with condition "starts with", but this don't work.
    When I explore Conditional Suppression feature I got positive take only for "contains" condition.
    Please help me how I can exclude rows from my report.

    I make sense, condition "starts with" work perfect, error in hierarchy on my dimension.
    Hyperion Financial Reporting the best :8}

  • Condition fin de boucle

    Bonjour à tous,
    je suis en train de finaliser un programme et j'ai un petit souci pour une fin de boucle.
    en fait j'ai une boucle while qui doit se finir pour rentrer dans une autre boucle while, pour cela j'ai donc mis un bouton ("A"), qui correspond donc au passage d'une boucle à l'autre.
    ensuite la seconde boucle j'y mets fin par un bouton stop.
    le problème est que je n'ai pas necessairement besoin d'executer la seconde boucle, je pense donc mettre la seconde boucle dans une structure vrai-faux, avec en condition vrai ma boucle et en condition faux rien et donc la fin du programme, toutefois je ne sais pas quelle condition mettre pour terminer ma première boucle, je pense qu'il faudrait que je mettes "A" OU "stop", mais je ne sais pas comment exprimer ce où.
    j'ai essayer avec les bouléens, mais aucun ne correspond à ce que je veux faire, c'est à dire un vrai ou: ça ou ça.
    merci de me venir en aide.
    Résolu !
    Accéder à la solution.

    Bonjour **||||||,
    Pour l'arrêt conditionnel d'une boucle While, vous pouvez en effet utiliser un bouléen. Dans votre cas, il faut utiliser la fonction booléene"ou" comme suit:
    Le test d'arrêt de la boucle while se faisant à l'intérieur de celle-ci, si l'une des conditions d'arrêt vient d'une autre boucle, ou autre VI, il vous faudra utiliser des variables pour communiquer des informations entre plusieurs boucles (locale) ou VI (globale). 
    Cordialement,
    Rémi D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les rencontres techniques de NI - Mesures et acquisition de données : de la théorie à la mise en ...

  • Conditional statement in html

    This is actually not a JSP question but an HTML question. I could'nt find any good html forum sites out there, and since I received excellent replies in my previous post, I am hoping that those of you who know JSP also know html. Heres my question, is there any conditional statement in html (I don't want to use scripts)? The only conditional statement I found was the logic:equal (not equal) statement. And it seems to only work for forms. I am using JSP in conjunction with html so I used an inner html variable declaration in my JSP function. This variable will be used by my html code. And I would like to check the value of that variable in html.
    Heres my JSP function containing the inner html declaration:
    function showItemEdit(field)
    var elements = editWindowDiv.document.all;
    elements("editWindowField").value = "";
    fieldhtml.innerHTML = field;
    var retVal = null;
    retVal = window.showModalDialog("javascript:document.write(window.dialogArguments.innerHTML);editWindowInit();",editWindowDiv,
    "dialogWidth:335px;dialogHeight:185px;scroll:no;status:no;unadorned:no");
    if (retVal == "OK")
    alert("OK");
    else
    alert("Cancel");
    The inner html variable, fieldhtml.innerHTML, is the value I would like to check in my html code.
    This is what I woul like to accomplish in my html code:
    if fieldhtml == register then
    <tr>
    <td class="bodymd">  <bean:message key="label.register"/>:</td>
    <td><input type="text" name="editWindowField" value="" maxlength="5"></td>
    </tr>
    else
    <tr>
    <td class="bodymd">  <bean:message key="label.shift_no"/>:</td>
    <td><input type="text" name="editWindowField" value="" maxlength="3"></td>
    </tr>
    end if
    I am not sure how to accomplish if-else statements in html. I would appreciate any help. Thanks!

    You are mixing things a bit. There is no JSP in your example. You cannot do conditional statements in HTML. However, you can use JavaScript to output HTML:
    if(someCondition){
    document.write("<yourHTMLTags>whatever</yourHTMLTags>");
    else{
    document.write("<yourHTMLTags>something else</yourHTMLTags>");
    }

  • How do I have the learner perform a conditional action based on a button selection?

    The learner needs to select a checkbox on the screen of a performance exercise.  I've put the widget in for the checkbox and it works fine.  After the select the checkbox, they need to select OK on the screen to move them onto the next screen.  However, I don't want the learner to just select OK without selecting the checkbox in order to replicate the sequence correctly. 
    I have a slide which shows the message  which tells them as to what they did wrong when they select OK without checking the box, but when I tie that to the correct response, it will go there whether they select the checkbox or not.
    I've tried adding multiple actions to the button, which doesn't work, becuase the OK button has to be tied to the learner conditionally selecting the checkbox to move on to the correct slide.  If I use multiple actions, and the first action is to SHOW  the slide with the incorrect message, if they correctly check the box and then hit OK, it will first SHOW them the incorrect slide.
    I think what I need is a variable and then add an advanced action with a conditional statement.  However, I don't really know how to do that.  Here's the variable I created, but I don't know what value I should assign.  Here's the screen shot of the variable and conditional statement.  Could someone tell me how to do the variable and the conditional statement so that the learner when selecting OK WITHOUT selecting the checkbox first will be redirected the the error slide and if they select the checkbox FIRST, and then OK, they move on to the next screen?  Thanks,

    Thanks, you definitely got me started on the right track on variables and advanced action statements.  The screen shots helped.
    Here's how the actual fix went to make sure the OK button on the screen had a conditional statement attached to it, with
    an advanced action:
    I created parameters for the widget to link to the variable:
    I created a variable:
    Then I created an advanced action conditional statement for that variable which enabled the button to advance to the next slide when the clickbox was checked:
    Then where I finally realized my final mistake was not setting the button properties to execute advanced action:

  • List of pending  or open GR/IR

    Hi experts,
    Please advise such reports in SAP.
    Regards,
    Samar

    Hi Samar,
    You can use T. code MB5S that shows either GR done and Invoice pending or IR done and GR pending accordingly.
    Regards,
    Shailesh Verma

  • Error Updating table condition table 372 in J1IIN

    Hello all,
    I am facing the problem while working in ECC 6.0 environment in the transaction code J1IIN.
    I have maintained the condition type JEXP ( A/R BED %) as 14% with the Key combination Country/Plant/Control Code (Table 357). While iam saving the Excise invoice the system is throwing the error like error updating the table condition table 372
    I have gone through the post given by Ms. Jyoti few days back and tried to do some changes in the customisation.
    I tried to maintain a different access sequence for the condition type JEXP i.e a new Access sequence(ZJEX) and also a new condition tpe (ZJEP). We don't have other Excise condition type in our Pricing procedure.
    In the access sequence except condition table 372, I have maintained all other condition tables.
    Still the error is persisiting. Can anyone put some light on the issue.
    I have even traced the values being hit in the tables directly. There is no relation of table 372, then why is it being cause of the error.
    Also while debugging it gives a message "An exception (CX_BADI_INITIAL_REFERENCE) occured".
    Does this help in anyways.
    Gurus plz give u r suggestions.
    Thanks in advance,
    Regards,
    Karthik.

    Hello Srinivas/Sandeep
    Please ensure that access sequence in the condition type JEXC has got the table 372. If it is not there please maintain it.
    The standard access sequence used in all duty condition type
    is JEXC  which has got the table 372 this will get updated once
    you save your excise invoice.
      If the issue is resolved, kinldy close the message.
    Regards
    MBS

Maybe you are looking for

  • Concatenate text to a number

    I have cells that are formatted as numbers to 2 decimal places which hold the result of a simple formula (e.g. =C4/D4) that divides a distance by a duration (to calculate km/h). An example value in the result cell is 28.02. If I change the formula (e

  • Unable to Add Alt Tags to Placed Images

    I am developing a flyer that will be distributed as a PDF, and our requirement is that it be "Section 508" compliant, that is, readable by a screen reader. I am trying to add alt tags to the images in order to meet this requirement, but when I go to

  • HT4859 how do you get to the set up assistant

    how do you get to the set up assistant

  • Using Captivate to import .mp4 or .flv files

    I am looking for someone with Captivate experience to let me know if Captivate can turn my mp4 and flv files into scorm compliant objects. Seems like I could import it and export it and be ready to go. Is this the case?

  • I exported my .epub from Indesign CS6 but it crashes my ibooks every time.

    Hi, I have a book that I'm publishing that I'm trying to test on my iphone 5/ipad. I have done this last year with another book without any problems. This new book has a short film embedded, so is that making a difference for the problem I'm having?