Can i give time delays

I want to have a screen that displays different status icons after every 10 seconds. I have the code for changing the icons but i donot know how to create a delay before the icons change.
Can anyone help??

*& Report  ZBC400_13_STATUS
REPORT  ZBC400_13_STATUS.
icon_name holds the name of the icon from the icon table
icon_text holds the text message recieved from the icon table
status_icon is the icon in the screen
DATA: status_icon TYPE icons-text,
      icon_name(20) TYPE c,
      icon_text(10) TYPE c.
Workarea type icon
DATA: WA_ICON TYPE ICON.
Screen 9000 has just the status_icon
CALL SCREEN 9000.
PBO
MODULE set_icon OUTPUT.
One icon is taken from the database everytime and put on the status
icon for 20 rows in icon table
SELECT NAME MESSAGE FROM ICON INTO CORRESPONDING FIELDS OF WA_ICON.
IF SY-DBCNT > 20.
EXIT.
ENDIF.
Assigning retrieved value from table to local variable
     icon_name = WA_ICON-NAME.
     icon_text =  WA_ICON-MESSAGE.
  CALL FUNCTION 'ICON_CREATE'
       EXPORTING
            name                  = icon_name
            text                  = icon_text
            info                  = 'Status'
            add_stdinf            = 'X'
       IMPORTING
            result                = status_icon
       EXCEPTIONS
            icon_not_found        = 1
            outputfield_too_short = 2
            OTHERS                = 3.
*Time delay.
DO 1000 TIMES.
DO 1000 TIMES.
DO 10 TIMES.
ENDDO.
ENDDO.
ENDDO.
*THe change is made to reflect on the screen
MODIFY SCREEN.
ENDSELECT.
ENDMODULE.
This program has a problem.
THe delay is set in the PBO so all processing ends before screen is displayed.
Any solution?

Similar Messages

  • Can you use time delay to take photos on 4s

    Is it possible to use time delay to take photos on the 4S iphone?

    Yes, but not with the bundled Photo app.
    Try this https://itunes.apple.com/au/app/gorillacam/id342972390?mt=8

  • Can somebody give some real time questions for alv report

    hi guru
    can somebody give some real time questions for alv report.
    answers also.
    regards
    subhasis.

    hi,
    The ALV is a set of function modules and classes and their methods which are added to program code. Developers can use the functionality of the ALV in creating new reports,  saving time which might otherwise have been spent on report enhancement
    The common features of report are column    alignment, sorting, filtering, subtotals, totals etc. <b>To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).</b>
    Using ALV, we can have three types of reports:
       1. Simple Report
       2. Block Report
       3. Hierarchical Sequential Report
    <b>Reward useful points</b>
    Siva

  • Can u give clear steps how to load 3 data target at a time by the help of p

    can u give clear steps how to load 3 data target at a time by the help of parllalesim

    hi,
    create the load infopackage type and give the infopack you need to load.
    create 3 similar process types.
    chain should have this flow
    start -> delet index(if cube is the target) -> load target(connect the load process to start process) parallel -> and process -> create index(if cube)/actiavtion of ods(if ods)
    Ramesh

  • How can I put a time delay between specific events in a while loop?

    How can I put a time delay between specific events within the same while loop? I'm already using the "wait" command to control the overall loop iteration speed. But I want to time the individual events as well.

    Hi Jesse,
    You can use a flat sequence. In each box you can put your individual events and attached wait.
    Don't forget to reduce your total loop time of the time you added in the individual sequences.
    Doc-Doc
    Doc-Doc
    http://www.machinevision.ch
    http://visionindustrielle.ch
    Please take time to rate this answer

  • How can i give delay of less than 1ms or in micro second?

    how can i give delay of less than 1ms or in terms of micro seconds in labview?

    Hi Kamuil,
    have you seen the following thread?
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=81398&requireLogin=False
    hope this helps.
    Cheers,
    --Russ

  • Can you give me a paper or document related to this phone was changed since it was broken down? I need IMEI numbers of two Iphones on the same page. Because I don't wanna save this Iphone again in my country. I paid one time for my old Iphone.

    My Iphone was changed because of broken down thanks to its warranty. I am from Turkey and I paid one time for my old Iphone to save. Can you give me a paper or document related to this phone was changed since it was broken down? I need IMEI numbers of two Iphones on the same page. Because I don't wanna save this Iphone again in my country. I paid one time for my old Iphone. If you give me a document, I don't need to save my Iphone5 and also I don't need to pay again to save in my country.

    this forum is made up of users like you, not apple employees.  We can not help you with that kind of request.

  • I've tried every online tutorial for timer.delay + experimented... how to make it work in this sitch

    Hey,
    I've read literally every single timer.delay tutorial I could find online, on youtube, the official documentation, tons of posts on this forum, etc. What I am trying to say is I looked everywhere before posting for help.
    I have a timer running. It runs throughout the game. I need to modify the speed of that timer when a player either hits a certain second(won't work, because the timer is already running) or when someone gets a certain score(can't get it to work, because timer is running).... so my question is how do I get timer.delay to work when the timer is running throughout the entire game. I tried to control the delay by when someone gets a point, but that didn't work either. I am using a trace statement so I see the seconds and the timer speed. the code looks something like
    randomvariable = new Timer(2000,8);
    timer.addEventListener(MouseEvent.CLICK, loop);
    timer.start();
    function loop
    // my looping code here
    What I posted is psuedo code.
    Any ideas on how to make the timer go faster without delay, since I can't get delay to work under the circumstances I explained? Or is there a work around that I don't know about? I will try to give back to the forums by answering other questions. Oh, I am running this on the timeline, not in a .as file. Thanks so much for your help!

    That's what I thought. I thought if I set a delay inside the function or in an if statement for the var that  prints out  the timer decrease that it would work. It doesn't. I'm using Adobe AIR for IOS, but I doubt that makes a difference in this case. I write timer.delay=500; that should make the timer go at 500 milliseconds. My trace shows the amount of milliseconds didn't change throughout the application. It is quite bothersome, since everything else works and every guide and the docs say what I am doing should work. Any ideas?
    Thanks.
    Sincerely,
    Ryan Satterfield

  • Hi anitha , i am working for mm module can you give detailed procedure

    hi anitha ,
                i am working for mm module can you give detailed procedure to me .
                                                                    thanks
                                                                     praveen

    Hi,
    1. MM Flow.
    > goto T.C MM01.
    > give material Number - some no.
    give MAterial sector - Mechanical
    give Material Type - Raw Material.
    then goto ORg Levels on top.
    then goto plant - 1000 n storage location - 0001
    then select views.
    in that select basic data 1, basic data 2, purchasing, general plant data storage / main..., Accounting 1 n then enter.
    > Then give the materiual descripition
    basic unit of measure KG
    Mat group - 001.
    click on purchasing n give mat no u have created n plant - 1000 n basic unit of measure KG n enter enter n enter.
    then goto valuation class - 3000, P.C - S n moving price -100.
    save then the mat no gets created.
    > now go to TC XK01 ie, vendor master
    give vendor - 126
    comp code - 1000.
    pur org - 1000.
    Acc grp - 0001
    enter
    give title name - company.
    search itenm 1/2 - M
    then Rec ACc - 31000.
    Cash Mang Grp - A1.
    enter n enter.
    order currency - INR
    in control data click on GR- based info verf n click on ACK Req.
    save n enter.
    > goto TC ME 11 ie, purchasing info record.
    Vendor - 126.
    Mat no - the one u have created.
    Pur org - 1000
    plant - 1000
    info rec-
    select standard enter n enter.
    in Period delay time give -10 n In conditions Net price - 100.enter In control Pur grp - 100.
    enter n enter n enter for three times.
    > goto ME01 source list.
    Mat no - mat no u have created.
    Plant - 1000.
    enter fix the line.
    give vlaid from , vend to , vendor as 126 p org as 1000, enter n save.
    > TC code RFQ for request for quotation.
    TC ME41.
    RFQ type - AN
    Lang Key -EN
    RFQ date - any date.
    QUAT Deadline - any date RFQ-
    give purc org grp - 000
    presss enter
    coll no - RFQ1.
    enter then give MAt no RFQ qnt as 100 ,O as KG del dat n netr.
    goto header click on Vendor Add
    vendor - 567
    Title - company
    enter.
    the goto tc ME47
    quotation.
    give net price 100 enter.
    then goto ME49.
    give quotation no tht u have created coll rfq as RFQ1 vendor as 567 mat no u have created. n execute, back n back.
    > goto tC ME51N for purc requisition.
    click on header n give text as.
    item as 10,SR as sur3, quant 100, del date, mat grp, plant n pur as 000
    enter n save.
    we will get purch req no...
    now go to ME21N pur order.
    click on Purchase/req no. click on value ur purh req no will be displayed there select it...
    then goto Org data tab strip.
    pur org - 1000.
    Pur grp - 000
    com code - 1000
    enter
    vendor - the one u have given...
    enter n enter check n save.
    then tc MIGO for goods receipt.
    give pur order no u have created...
    gotot quantity tabstrip n press enter give qty in unit of enrty as 80
    goto pur org tabstrip n give del comp as set automatic.
    click on item ok.
    then continue n then post n continue.
    then two documents will get created mat doc n acc doc.
    then > MIRO invoice.
    give vendor no - comp code invo date pur ord no.then select it n copy.
    enter.
    then we will get acc no n write it in the acc block.
    the >MB1A ie goods issues.
    mov type - 201
    plant - 1000
    stor loc - 0001
    enter
    cost cent - 1000
    vendor - u have created
    then give sc qty enter.
    mat n acc doc r generated.
    >MMBE stock overview.
    give mat no - u have created.
    plant - 1000
    sto loc - 0001 n enter...
    the MM get created...
    Regard,
    Priyanka.

  • Impulse trigger to create a time delay of x ms to perform an action for y ms

    Hello all,
    Here is what i'm trying to do:
    I'm measuring an audio signal when a sound level is above a certain value Y (controllable) i need to wait a few ms (around 900ms) to get pass the main sound compound. Yhen i need to filter the next few ms (around 500ms) of data and do a FFT of that part of the filtered data only once until Y is reached again.
    I can do all this with saved data but i'm struggling to do it as it occurs without saving the data.
    I have everything in place i just need to know in general how to use an impulse trigger to a create time delay of x ms to perform an action for y ms.
    Do you have any ideas how i can achieve this?
    Thank you in advance,
    Frederic.

    Hi Frederic,
    I've looked at your program and I have a few questions. What is the purpose of the Two While Loops that simply have a Case Structure that nothing in the false case and a Wait (ms) function in the true case? As it stands if these loops go into the false case then there is nothing to slow down the execution so the will try to run as fast as possible and not give the processor any time for other tasks which may explain why your computer goes so slow whilst this is running. This also applies to the While Loop where the false case says "If its not time to write the measurement file, do nothing."
    I believe that what you want to look at is a Producer/Consumer(data) Pattern, where you have one loop that generates your data (producer), in this case reads in the sound data, and then a processing loop (consumer) that will do the Fat's and log data to a file etc.
    More information about this can be found here: http://zone.ni.com/devzone/cda/tut/p/id/3023
    Hopefully this helps you a bit. Let me know any questions you have.
    James W
    Controls Systems Engineer
    STFC

  • Elapsed Time delay only works once in state machine

    Hello.  I'm having problems using the elapsed time delay to show the seconds remaining on a wait step in a simple state machine.  I would like to have a front panel count down showing the time left for the step.  I thought the elapsed time delay was the way to do this.  The problem is the vi runs correctly the first time through.  But then after that the timing does not seem to reset back to the times I had set.  If I remove the elapsed time delay and just stick a wait time in the state, the vi runs as I would expect.  This just doesn't give the user an idea of the time remaining.  What am I missing when using the elapsed time delay, or is this just the wrong tool for the job?
    A smaller issue is that I would like to move the tasks, in this case the LED's outside the loop so I don't have to repeat code.  But when I tried moving them outside with only leaving the constants inside the state they did not work as I expected.  If you have tasks like the operation of a set of booleans that you are used in several states, what is the cleanest way to do this without repeating code?
    Thanks for the help.
    Danny
    Solved!
    Go to Solution.
    Attachments:
    Elapsed Time Delay.vi ‏39 KB

    The problem is that the Auto Reset on the express VI resets the start time of the timer as soon as the time has completed.  So you are essentially restarting the #1 timer immediately and then go on to #2.  Once #2 is completed, #1 has already passed 10 seconds as well.
    What you need to do is use the reset input for the express VI, but only have that be true the first time it is called.  By using a shift register and the implies function on those loops, you can do that.
    As for the duplication of states, don't have a state 1 and a state 2.  Just have a Run state.  Use a shift register to maintain a value for what your next state will be and a case structure to based on that to show what booleans should be lit and what the next state will be.
    Message Edited by Ravens Fan on 06-12-2009 10:56 AM
    Attachments:
    Example_VI_BD.png ‏2 KB

  • Using time delay for displaying tooltips

    Hi guys, hope you are all fine,
    I have a little problem, i need to use time delay for displaying a tooltip for a specific amount of time but i don't know what code to use.
    Can you please give me a hand? I also try to find out the right way on how i can use tooltips when using a Jpanel and paintComponent. I amcurrently using setXORMode but this is not too efficient.
    Thanks guys,
    Regards,
    John.

    Ok guys, for any other who need this info, you get time delay by this:
    try {
    Thread.sleep(time);
    } catch (Exception e) {}
    // in "time" you put an integer value which represents milliseconds

  • Time delay between 2 waveforms

    Hi,
    Please bear with me while I explain what I’m trying to do :-)   Basically, in the attached LabView file (“flow vis + trigger-m.vi”), I am generating 2 signals: a sinusoidal waveform (used to drive an actuator) and a square waveform (used as a TTL signal to trigger image capture on a CCD camera). Currently when I run the program using LabView 7, both signals are started simultaneously. I would like to introduce a time delay that can be manually specified in the VI, such that when the program is started (i.e. at time t0), the sinusoidal waveform also starts (i.e. at time t0) before the square waveform (i.e. at time t0 + delay time). In a practical sense, this means allowing the actuator to run for several seconds before capturing any images.
    It sounds like it should be quite straightforward to do, but I’m not so sure how to progress. I have begun to modify the original VI (“flow vis + trigger-m_2.vi”, as attached), but would be much appreciative of any help or suggestions on how I can complete the VI to meet the above requirement.
    Many thanks,
    Mark
    Attachments:
    flow vis + trigger-m.vi ‏939 KB
    flow vis + trigger-m_2.vi ‏895 KB

    Please refer this URL for an example VI I made to solve the problem:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=227603
    Way S.
     NI-UK Applications Engineer

  • Creating a Time Delay Between 2 Waveforms

    Hi,
    Please bear with me while I explain what I’m trying to do :-)   Basically, in the attached LabView file (“flow vis + trigger-m.vi”), I am generating 2 signals: a sinusoidal waveform (used to drive an actuator) and a square waveform (used as a TTL signal to trigger image capture on a CCD camera). Currently when I run the program using LabView 7, both signals are started simultaneously. I would like to introduce a time delay that can be manually specified in the VI, such that when the program is started (i.e. at time t0), the sinusoidal waveform also starts (i.e. at time t0) before the square waveform (i.e. at time t0 + delay time). In a practical sense, this means allowing the actuator to run for several seconds before capturing any images.
    It sounds like it should be quite straightforward to do, but I’m not so sure how to progress. I have begun to modify the original VI (“flow vis + trigger-m_2.vi”, as attached), but would be much appreciative of any help or suggestions on how I can complete the VI to meet the above requirement.
    Many thanks,
    Mark
    Attachments:
    flow vis + trigger-m.vi ‏939 KB
    flow vis + trigger-m_2.vi ‏895 KB

    Hi Mark,
    I forgot that all analog waveforms generated needed to have the same number of samples in a single task. By introducing a delay into your square wave, I effectively added samples that waveform. So the same number of samples added to the square wave has to be added to your sine wave. I added code that extends the number of samples of your sine wave (# delay + square wave samples). Let me know if this works for you.
    Regards
    Way S.
    NI UK Applications Engineer
    Attachments:
    flow vis + trigger-m70.vi ‏872 KB

  • I have brought a iphone 4 and the person i brought it from has not deleted her icloud account i need her pasword to delete it but hse wont give it to me what can i do how can i add my icloud account can you give me a reasonable answer please. thank you

    i have brought a iphone 4 and the person i brought it from has not deleted her icloud account i need her pasword to delete it but hse wont give it to me what can i do how can i add my icloud account can you give me a reasonable answer please. thank you.

    The seller needs to follow this procedure:
    http://support.apple.com/kb/TS4515
    If she refuses, then as Tim suggested the iPhone is probably stolen. You'll need to contact your local police department and ask how to proceed.
    Regards.

Maybe you are looking for

  • Is there a way to adapt my DVI/VGA monitor to Thunderbolt?

    I've recently purchased a MacBook Pro, and have been considering external monitor options. Unfortunately, the only Thunderbolt monitors out there right now are made by Apple (not unfortunate in itself), are about the size of Colorado, and cost about

  • Disable Acrobat plug-in so

    Is it possible to disable the Acrobat plug-in for Safari without uninstalling Adobe Acrobat Reader? Acrobat Reader is much slower for viewing PDFs so I use Preview to view PDFs that I download but I would prefer to use it in Safari too. The problem i

  • Database Link and error ORA-02019

    Oracle 9.2.0.6 on Windows 2003 Has anybody encountered this before and been able to resolve. SQL> connect SchemaA/password@NSN1 SQL> create database link MyLink1 2 connect to REMDB identified okm135 3 using 'STAF' 4 / Database link created. SQL> crea

  • Should the Apple ID be deleted when selling an iphone

    Should the Apple ID be deleted from the device when selling an iphone. I ask because I have bought one and I cannot activate the iphone because the seller`s Apple ID has not been removed. I cannot therefore input my own Apple ID to activate the phone

  • .substring issues

    hi, i am learning java in class for school, and in my project i have one issue with the .substring method of strings. my code is import java.util.Scanner; public class Valid      private String lastName;      private String email;      private boolea