Forcing a program to wait for a few hundred milliseconds

Is there any way to stop a program for say 300 milliseconds? If I use ENQUEUE_SLEEP, the code only seems to work at quantums of 1 second, which is a bit too much for our purposes.
BR,
Tony.

In 4.7, there are 2 variants in the documentation.
In variant 1, the system interprets the field time as an integer. This allows you to enter waiting periods in seconds.
In variant 2, the system interprets the field time as a floating point number. The internal resolution of the time period is performed in millisecond units. This means that the smallest possible time period is 1 millisecond (i.e. WAIT UNTIL logexp. UP TO '0.001' SECONDS).
(as described in documentation of WAIT command).

Similar Messages

  • Wait for a few minutes before starting a backgroung step in workflow

    Dear All,
    I have a requirement where in I have to make sure the user has completed a particular workitem. The workitem is to open the transaction PP02. I cannot make it asynchronous and use a terminating event as I could not see any logical place where I could trigger the terminating event on SAVE.
    Now, I am trying to check if the database is updated on save of the transaction and before I do that I would want the workflow to wait for a few mintues.Is this approach correct?
    Is there any way I can make the workflow to wait for a few mintues before it starts the next backgound step?
    Please suggest.
    Best Regards
    Vikram

    I think it is better option to use the WAIT Step 
    as you said that until you save the data in the trabsaction you don't want to proceed further then, try like this
    Create a wait step and use the option wait for condition.
    define a element in the workflow of type char01( assume TEST) .
    Pass X to this element from the transaction when ever you save the data.
    and define the condition for the wait step in such a way that until the value of TEST = X do not proceed further.

  • Want the program to wait for some sec

    Hi,
    I'm trying to get a kinda sweeping effect with a couple
    of images. I need the program to wait X amount of
    millisec before it shows another image.
    How can I do this? I've tried using sleep and delay
    but I can't get it to work. I'm not using any threads.
    I just want the program to wait for a moment.
    Thanx

    try {
    Thread.sleep(millis);
    } catch (InterruptedException e) {
    }

  • Cannot edit event, add new event and when save the unit says Sorry, we are experiencing technical difficulties. Please wait for a few moments and try again. Er

    When I hit save on the edit block or new event , the following warning is shown:-" Sorry we are experiencing technical difficulties. Please wait for a few moments and try again. Error: 0000". The system locks up and can only be cleared by hitting the reload button

    Hi,
    Unfortunately we had a data base error today and lost some user accounts when we had to go back to our backups. If you have started this thread, your's is one of those. Since we can not recreate your account, please sign-up for a new account here to reply to the forum messages:
    https://support.mozilla.org/users/auth
    You can use the same username and email address as before. We are very sorry for the inconvenience.

  • Calling another program and waiting for output

    Hi,
    I'm writing a program that passes a file created for an application called Net Sim but has to wait for the output. Net Sim lies in another directory from the java files and I don't know how to call the program with the file created as a parameter, such as:
    ns2 network1.tcl
    where 'ns2' is the dos command to run net sim and 'network1.tcl' is a file passed as a parameter to the program.
    I've tried
    try{
    Runtime r = Runtime.getRuntime();
    r.exec(" <directory> ");
    }catch(IOException e){
    System.out.println("Error " +e);
    This doesn't work though and I could use some help, as well as how to save the file created by the program in another directory.
    Finally, I need to know how to make the program wait for the output from net sim which is a file I intend to use. Can I do this with a while loop etc.?
    I thank you in advance for any help,
    Regards,
    Gary.

    Here's an article from JavaWorld describing some of the pitfalls when using Runtime.exec() that might help you:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Stopping program without waiting for trigger

    Hi everybody
    I have a problem that I just can't get my head around. I have a program that I use to aquire data. The program goes through the motions of waiting for the trigger, aquiring the data on the appropriate channel, displaying it, and loops back to waiting for the trigger. The problem is That when I want to stop my program while it is waiting for a trigger I must wait for it to recieve a trigger before it will stop excution.
    Is there a way for my program to stop the trigger vi when I select to end the program?
    Thanks
    Beaton
    - there is always an easy way, but it is always the hardest to find

    Hi Beaton,
    you have to split the 'wait for trigger time' into shorter sub-steps.
    Let's say you wait 10sec for trigger signal. Make a loop instead waiting 1 second for 10 times! After each iteration you can check for: 'break the loop (end program)' or 'trigger received' or 'any other error occured'. This way you can stop your program very easily - you can also make your own error state saying 'Error number 123456: stopped by user'...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • SAINT freezes, program SAPLSTPA waiting for gateway, function CMRCV

    I try to upload the ST-A/PI patch with SAINT but it freezes, seems that program SAPLSTPA is waiting for a RFC or whatever.
    Did anyone had this problem?
    do you remember how to check those logs (the import logs) I dont remember well where are they placed
    thanks

    Hello,
    You canstart from transaction code SM50 to see if any workproces in on RFC Hold status. If not, you can go to /usr/sap/trans/log to find the latest log. The import log name is SAPIxxxxxx (xxxxx is the transport number like SAPKxxxxxx).
    You can also check if there's any TP or R3trans hanging, and in SM37, if there's any RDD* job canceled, and inSLOG, if there's any deadlock in /usr/sap/trans/tmp directory.
    Anyway, start with SLOG and do some analysis you might find something.
    Regards,
    Joe

  • Plug in my ipod classic stays on Charging please wait for a few seconds then turns off

    i plug it in on wall charger and computer and its says charging please wait for a couple of seconds and then the screen turns black dosent work for like a day the i plug it in after a day it does the same thing please help its a black ipod classic 120 gb

    Have you tried charging it with another known working USB sync cable?  After letting it sit to "charge" for at least 30 minutes, have you tried resetting the device by pressing and holding both the Select/Center and Menu buttons together long enough for the Apple logo to appear.
    B-rock

  • Position -force feedback program in labview for PI piezo actuator.

    I am new to labview. I need to write a labview program to control a PI piezo with force -position feedback.

    Okay.
    I would recommend you start by looking at the online LabVIEW tutorials
    LabVIEW Introduction Course - Three Hours
    LabVIEW Introduction Course - Six Hours
    Then post back when you have a specific question that we can help you with.

  • HP SimplePass not waiting for my finger swipe

    I have the HP SimplePass software installed and the Validity driver installed. The fingerprint reader is enabled and working.
    My problem is that when I go to enrol my finger the software tells me to click on a figer to enroll it, when I click on the finger the software flashes the enrollment screen, with the 0% loading bar on it, then it switches to a message saying "It looks like you are having some trouble. Do you want to try again." I try again and the same thing happens.
    I have made sure the sensor is clean and the blue light beside the sensor is activated. The issue appears to be the program not waiting for me to swipe my finger.
    Any help or ideas as to how to fix this would be much appreciated.
    Thanks in advance.

    Testing123
    Welcome to the HP Community Forum.
    I dislike this series of the Support pages -- there is not a Validity Sensor Driver listed for this Series notebook at the Support pages.  It is not common; it does happen for a few models.
    Reference:
    HP Pavilion dv6-6070ca Entertainment Notebook PC
    The problem is that I cannot verify beyond what I can find elsewhere that your fingerprint reader hardware and your software is indeed compatible -- OR that the advice that I can give you is reasonable.
    If you end up needing a copy of your Validity Sensor Driver, the following appears to be the correct Driver for your System.
    sp55109 Validity Sensor Driver V4.3.205.0
    Commentary
    The message you are seeing is USUALLY an indication of an incompatibility between the Validity Sensor -- either the Driver / hardware and the version of the HP SimplePass program OR the Driver / hardware and some itch in the File system that impacts the way in which the HP SimplePass program is interpreting the Driver information.  This is speculation and based on experience -- I don't have access to the code, to the File System, and I do not work for HP.
    The version level of your Validity Sensor Driver, in and of itself, is adequate to allow you to upgrade to a later version of HP SimplePass than the version available at your computer's Support website.
    Because you did not indicate which version of HP SimplePass you are running, I assume you do not know, or that you are running an older SimplePass program.
    The following might work for you:
    Open the file > Click on Download > Click “Open in Adobe Reader”
    Instructions to Upgrade HP SimplePass
    If your HP SimplePass is not working:
    Start here -- it is possible the issue is not one of anything more than just a bad "tangle":
    See Page 10 of the document (at writing) –
    Follow the Procedure Pile of Rubble - Hard Reset Sequence
    Next
    If no joy, go back and follow:
    Procedure - Update / (Re) Install HP SimplePass
    NOTES:
    You are using HP SimplePass Series 6 >> Ignore references to Series 8
    Pay attention to Order-of-Events
    ==============================================================
    Click the Kudos Thumbs-Up to say Thank You!
    And...Click Accept as Solution when my Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • HSDIO conditionally fetch hardware compare sample errors (script trigger to flag whether or not to wait for software trigger)

    I am moderately new to Labview and definitely new to the HSDIO platform, so my apologies if this is either impossible or silly!
    I am working on a system that consists of multiple PXI-6548 modules that are synchronized using T-CLK and I am using hardware compare.  The issue I have is that I need to be able to capture ALL the failing sample error locations from the hardware compare fetch VI... By ALL I mean potentially many, many more fails than the 4094 sample error depth present on the modules.
    My strategy has been to break up a large waveform into several subsets that are no larger than 4094 samples (to guarantee that I can't overflow the error FIFO) and then fetch the errors for each block.  After the fetch is complete I send a software reference trigger that is subsequently exported to a scriptTrigger that tells the hardware it is OK to proceed (I do this because my fetch routine is in a while loop and Labview says that the "repeated capbility has not yet been defined" if I try to use a software script trigger in a loop).
    This works fine, but it is also conceivable that I could have 0 errors in 4094 samples.  In such a case what I would like to do is to skip the fetching of the hardware compare errors (since there aren't any) and immediately begin the generation of the next block of the waveform.  That is, skip the time where I have to wait for a software trigger.
    I tried to do this by exporting the sample error event to a PFI and looping that PFI back in to generate a script trigger.  What I thought would happen was that the script trigger would get asserted (and stay asserted) if there was ever a sample error in a block, then I could clear the script trigger in my script.  However, in debug I ended up exporting this script trigger back out again and saw that it was only lasting for a few hundred nanoseconds (in a case where there was only 1 injected sample error)... The sample error event shows up as a 1-sample wide pulse.
    So, my question is this:  is there a way to set a flag to indicate that at least one sample error occurred in a given block  that will persist until I clear it in my script?  What I want to do is below...
    generate wfmA subset (0, 4094)
    if scriptTrigger1
      clear scriptTrigger1
      wait until scriptTrigger0
    end 
    clear scriptTrigger0
    generate wfmA subset (4094, 4094)
    I want scriptTrigger1 to be asserted only if there was a sample error in any block of 4094 and it needs to stay asserted until it is cleared in the script.  scriptTrigger0 is the software trigger that will be sent only if a fetch is performed.  Again, the goal being that if there were no sample errors in a block, the waiting for scriptTrigger0 will not occur.
    I am probably going about it all wrong (obviously since it doesn't work), so any help would be much appreciated!

    Please disregard most of my previous post... after some more debug work today I have been able to achieve the desired effect at slower frequencies.  I did straighten out my script too:
    generate wfmA
    if scriptTrigger1
      clear scriptTrigger0
      wait until scriptTrigger0
    end if
    generate wfmA
    scriptTrigger1 = sample error event flag
    scriptTrigger0 = software trigger (finished fetching error backlog in SW)
    However, I am still having a related issue.
    I am exporting the Sample Error Event to a PFI line, looping that back in on another PFI line, and having the incoming version of the Sample Error Event generate a script trigger.  My stimulus has a single injected sample error for debug. For additional debug I am exporting the script trigger to yet another PFI; I have the sample error event PFI and the script trigger PFI hooked up to a scope.
    If I run the sample clock rate less than ~133MHz everything works... I can see the sample error event pulse high for one clock period and the script trigger stays around until it is consumed by my script's if statement.
    Once I go faster than that I am seeing that the script trigger catches the sample error event occasionally.  The faster I go, the less often it is caught.  If I widen out the error to be 2 samples wide then it will work every time even at 200MHz.
    I have tried PFI0-3 and the PXI lines as the output terminal for the sample error event and they all have the same result (this implies the load from the scope isn't the cause).
    I don't know what else to try?  I can't over sample my waveform because I need to run a true 200MHz. I don't see anything that would give me any other control over the sample error event in terms of its pulsewidth or how to export it directly to a script trigger instead of how I'm doing it.
    Any other ideas?

  • IOS 8 - are we realy waiting for this?

    iOS 8
    Words like the biggest, the best etc. go with this announcement. Nowhere I read: we listened to our community and this is what you asked for. For years I am waiting for a few simple things:
    1) a mail app that works and where you do not have to delete the same male 4 times a day. almost a total forum is dedicated to this issue. Apple seems to not want to fix this problem. I am now a happy user of MyMail, they seems to have some clever guys that are able to write the oldest of all apps, a mail app!!!
    2) I want to add a song to a playlist while I listen to it. Many words are said about this, I rest my case
    3) I want a photo app where a picture is in one place only. No virtual **** of what so ever. So, if I move it to a album, it's only in that album
    4) I want a great camera. Yesterday I made a picture in a plane. A guy with a HTC did the same. Wow, what was I jealous! With a quality like that, there is no need to develop al these photo apps!
    5) I want to be able to play that specific movie format. That Steve Jobs had a fight with some guy in that company is not my problem. I am a user and not involved in a dead mans fight of who got the biggest!
    is that so difficult Apple? I have seen no simple thing in this release that I was waiting for! So, come out of your ivory tower Apple and start to listen to your users, before we do the next upgrade to an HTC!!!!!
    Henk

    The only way your concerns will reach Apple is if you use the feedback pages. Be as specific as possible in your request (e.g. "A mail app that works" and "that movie format" is not descriptive enough). A "great camera" is almost entirely hardware, so an iOS upgrade is unlikely to change what you have.
    http://apple.com/feedback
    Matt

  • Wait for user input in for loop

    I'm pretty new to labview and I'm having a hard time figuring out how to do this. Basically, I need the user to press a GO button and data aquisition will take place saving it in an array, then the program will wait for the user to press the GO button again and the data aqusition will add more values to the array, and the whole process will repeat 5 times and finally it will average the values.
    To try and figure out how to do this, I tried making a program that loops 5 times and adds a random number to an array with each loop (using shift registers) but I CANNOT figure out how to make each loop iteration wait on the user to press a button. Any advice?

    Hi Roger,
    you can use a dialog in your for loop, or better you use an event structure to react on user inputs. If you use the event structure you can count the button press events and store them in a shift register. With a compare function you can check if your limit is reached and react on it.
    Mike

  • How to do custom dialog so it displays the dialog and waits for user to end

    I have an application that I want to create my own dialog screens. For example, the user cliks on one frame, and I want to open a window for the user to enter data, after the user finishes, he presses OK and then the main app continues.
    On the class that I open the dialog, I open it with:
    NewOkCancelDialog.abrePopup();
    System.out.println("Program should wait for the dialog to close");And the 'NewOkCancelDialog' class is defined like:
    public class NewOkCancelDialog extends javax.swing.JDialog {
    The constructor is like:
    public NewOkCancelDialog(java.awt.Frame parent, boolean modal) {
    super(parent, true);
    initComponents();
    this.setLocation(400,400);
    This methods are when the user activates the button and the popup closes..
    private void cierraPopupOk(){
    resultados.setciudad1(this.fld_ciudad1.getText());
    if (resultados.getciudad1length() < 3) {
    System.out.println("Error en la entrada!");
    } else {
    doClose(RET_OK);
    private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {                                        
    cierraPopupOk();
    private void doClose(int retStatus) {
    returnStatus = retStatus;
    this.estaAbierto = false;
    setVisible(false);
    dispose();
    I would like to have the application in the first lines, after calling
    NewOkCancelDialog.abrePopup();
    to wait until the method doClose() in NewOkCancelDialog class is finnished. But right now, after the ...abrePopup() is called, it continues.
    What am I doing wrong? or what am I not doing?

    Use the "code" tags not the "bold" tags when posting code.
    But right now, after the ...abrePopup() is called, it continues.Well your posted code doesn't show this method so we don't know what you are doing in this method.
    Why are you using a static method to show the dialog? Normally the code would be:
    JDialog dialog = new CustomDialog();
    dialog.setVisible( true );
    But you are correct with the basic idea in that you need to use a modal dialog.

  • Waiting for Pre+ fixes before buying

    I finally got the approval from my company to get the Pre+ on Verizon (switching from ATT). My company employs 66,000 people so the approval process on new devices takes some time especially if you want to use EAS.
    Now that the time is here, I find myself waiting for a few critical issues to get addressed before retiring my trusty 680.
    1. Double keys being entered - one big reason for not getting the iPhone is lack of a keyboard. Have an unreliable keyboard seems even worse. I hope 1.4.1 addresses this problem
    2. GPS not locking or not accurate - I use Telenav multiple times per week. I believe that I can port the Sprint image to the Pre+, but all the problems reported about GPS locking make me worried.
    Lastly, the AT&T pitch about being able to talk and surf the web at the same time has some appeal. I am on ATT now. A Pre+ on ATT would be an easier migration since I just swap the SIM. The GPS application problem would be addressed too since ATT supports Telenav. Now if I just knew how long "in the coming months" was!
    The thought of StyleTap on the iPhone with HotSync coming soon makes my head hurt since I could then use Datebk6.
    Any advice?

    travellerva wrote:
    When you say "disk problems", do you mean hardware problems, firmware problems or software problems?
    On directly-attached disks, we see this when the disk spins down, but won't spin back up fast enough or properly; or with a USB disk that gets its power from the Mac, but not quite enough sometimes; or port or cable problems; or one that's beginning to fail. It's very hard to tell, of course, which.
    I'm not very familiar with TCs, but a disk is a disk!

Maybe you are looking for