How to put the break at the first place of execution While Loop

Hello everybody,
I have a problem with a while loop.
I made the interface of a tic-tac-toe game with labview.
my problem is that after the computer has won or there is a draw, that the board has to be updated, which i do by shift register.
My problem is now though, that there isn't a break after i updated the board. I have to click one more time on the board(and execute the whole VI) before the break sets in.
so my question is, how can i put the break in a way that the condition is checked everytime BEFORE the VI runs?
Thank you very much

The correct way is probably to use a state machine architecture. Simply enter the idle state when the game is over.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • How to put line break in the text

    Hi guys,
    This is a simple problem.i don't know how to concat a line break while creating a text.
    I am looping through the results of a query and want to form the text using the results.
    For each row of the resultset,I want to create a new line in the text i create.
    I was wondering how to put a new line in the text.
    I thought I can concat '\n' ,but it does not work.
    the code snippet in the procedure is :
    for c1_rec in c1 loop
    vMsg := ' There are ' || c1_rec.total ||
         ' documents of type ' || c1_rec.doc_type || '\n' ;
    end loop;
    Please give the solution.
    Thanks in advance.

    Thank you Mark.
    I tried your suggestion.But line break is not working in email.
    Here is how my code is
    in procedure 1 ,i create the message String as :
    for c1_rec in c1 loop
    vMsg := vMsg || ' ' || today_str || ' - ' || c1_rec.total ||
         ' Total inbound documents from : ' || c1_rec.target_value || CHR(13)||CHR10) ;
    dbms_output.put_line(' ' || vMsg);
    end loop;
    --here sending mail calling another procedure
    sendmail( '[email protected]' ,'[email protected]' , 'Test Subject ' , vMsg );
    In Procedure 2( i.e sendmail procedure )
    i am preparing email server connection from and to adresses .Then i am preparing and sending message as
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    conn:= utl_smtp.open_connection( EmailServer, Port );
         utl_smtp.helo( conn, EmailServer );
         utl_smtp.mail( conn, SENDER);
         utl_smtp.rcpt( conn, RECEIVER )
    mesg:= 'Subject: ' || SUBJECT || crlf ||
                   'Date: '||TO_CHAR( SYSDATE, 'Dy, dd Mon yyyy hh24:mi:ss' )||
                   crlf ||
                   'From:'||SENDER|| crlf ||
                   'To: '||RECEIVER || crlf ||
                   'Content-Type: text/html; charset=ISO-8859-1' || crlf ||
                   '' || crlf || MESSAGE ;
         utl_smtp.data( conn, mesg );
         utl_smtp.quit( conn );
    even now the mail we are getting is not having the line break.I am having line break in dbms output,but not in the mail.
    Is there any mistake how I am sending the mail.Or is there any other way we can put line break in the text
    Thank you.

  • HOW TO PUT TWO PANNEL IN THE SAME PAGE

    HI ALL
    I NEED TO KNOW HOW TO PUT TWO PANNEL IN THE SAME PAGE TO FULLY UTILIZE FULL PAGE AREA BECAUSE THE PANNEL WIDTH IS TOO SMALL , SO I WANT TO MAKE THE PAPER CONTAIN TO PANNELS VERTICALLY.
    THANK YOU

    So Barb,
    I like to use multiple desktops and move back and forth between then using gestures. At the moment I have 5 open: Chrome, Firefox, Safari, Photoshop CS 6 and a desktop. I use "gestures" to navigate between them:
    Mac Basics: Multi-Touch gestures - Apple Support
    and I use Mission Control (F3) to move the various desktops around in the order I want them.
    Mac Basics: Mission Control - Apple Support
    So say I'm searching for a photo to open in CS 6, I find it on the open desktop then hit select "open" in CS 6 and go to that folder in the select pane.
    Even right now I'm typing this in Safari and "gesturing" back to Chrome where I did the search about multi touch and mission control. I drag copy the URL there  and gestured back here to paste the URL into this text.
    If you did a lot of photo searches, I set professional clients of mine in Chicago up with dual monitors (In this case you'd have an external monitor on extended desktop.). So all you need to do is just glance over at the second monitor slide your cursor over there open stuff up find your photo and go back to Photoshop and open it up.
    Hope this helps.

  • How to put dead notes on the guitar software instrumet??

    How to put dead notes on the guitar software instrumet??

    a dead note is when you mute the chords, like on the smells like teen spirit riff

  • HOW TO PUT MOVIES BACK IN THE CLOUD ON IPAD

    HOW TO PUT MOVIES BACK IN THE CLOUD ON IPAD

    You can't put films in the cloud yourself, whether they will show in the cloud for redownloading depends upon what country that you are in, if the rights-holder allows redownloading, and if the film remains in your country's store. You can delete a film from your iPad via the Edit button at the top right of the film select ion screen in the Videos app or via Settings > General > Usage > Videos (that should also give you an Edit button top right of the screen or you can swipe/drag across a film form right-to-left) - but the film might not then show in the cloud for redownloading. If you haven't already done so you should connect the iPad to your computer's iTunes and do File > Devices > Transfer Purchases so that you can take your own backup copy of your downloads (apps, ibooks etc could also be removed from the store and not be redownloadable in the future).

  • How to put a check with the date

    Hi,
    I have created a ztable with 3 fields .
    clientcode(3),
    date,--date geneated
    version--- fileversion
    i need to update this table everytime i execute the data. Every time version shd get incremented when i execute the program.  When i excute the program next day version shd be updated by '1'.
    i wrote the code for version updated i'm not getting the logic how to put a check with the date.
      SELECT *
       FROM zfi_enetflver
       INTO TABLE gt_flver.
      SORT gt_flver DESCENDING.
      CLEAR: gv_dt, v_file.
      CONCATENATE sy-datum6(2) sy-datum4(2) INTO gv_dt.
      READ TABLE gt_flver WITH KEY client_code = gv_clcd.
      IF sy-subrc = 0.
        idx = sy-tabix.
        IF gt_flver-zdate = ' '.
          gt_flver-zdate = sy-datum.
        ENDIF.
        IF gt_flver-version = ' '.
          gt_flver-version = '001'.
          gv_filever = gt_flver-version.
          MODIFY gt_flver INDEX idx TRANSPORTING zdate version.
          MODIFY zfi_enetflver FROM TABLE gt_flver. "TRANSPORTING version.
          CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
        ELSE.
          gt_flver-version = gt_flver-version + 1.
          gv_filever = gt_flver-version.
          MODIFY gt_flver INDEX idx TRANSPORTING version.
          MODIFY zfi_enetflver FROM TABLE gt_flver .
          CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
        ENDIF.
      ENDIF.
    clientcode is the key field in ztable do i need to make date field key ??
    please help me with the logic

    You need to implement below logic:
    1. check if field_date = sy-datum. in this case do nothing.
    2. else . move sy-datum to field_date .
    3. modify your internal table with field_date .
    4. populate final table to database table .
    hope you get it.

  • How to put page break in SMARTFORMS

    Hi Guys,
              Can anyone please let me know How to put page break in SMARTFORMS
    Regards
    Avi

    Hi,
    Look at the below thread, you will get the answer
    https://www.sdn.sap.com/irj/sdn/profile?userid=2522810
    Regards
    Sudheer

  • How to put Page break in SAP Script

    Hi Experts,
    Please tell me how to put page break in SAP Script. or give some sample code
    looking forward for your reply..
    Regards,
    Kali Pramod

    Hi,
      NEW-PAGE is used to insert a page break ,
      it can be conditional if used between IF..ENDIF
      e.g. /:IF &KNA1-NAME1& = 'XYZname'
            /:NEW-PAGE
           /:ENDIF
      If u want to Page break after displaying certain records or after some condition you use NEW-PAGE
    reward if useful.

  • How can I vary a PWM´s duty cycle inside a while loop?

    Hi,
    I'm using the "Generate Pulse Train.vi" to generate pwm signals in counters 0 and 1 in order to drive a DC motor both ways.
    The problem is, I need to control the movement of the dc motor with my PI controller which is inside a while loop. I've tried letting the "generate pulse train.vi" outside the while loop, but the problem is, it only changes the value of the duty cycle when the loop is stopped. I also tried putting it inside the loop, but then it doesn't even work.
    So, how can I vary a PWM´s duty cycle inside a while loop?
    I'm attaching the VI with the PI controller.
    Thanks for your help!
    Guilherme
    Attachments:
    controleValvula.vi ‏332 KB

    Here's some code I threw together a while back to change a duty cycle on the fly. It generates a fixed 5KHz or 25KHz frequency depending on laser selection, then allows duty cycle to be changed continously. Maybe you can use the premise of it for your application.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Attachments:
    Pulse_Width_Modulator.llb ‏197 KB

  • How to put Company logo in the report?

    Hi,
    How am i going to include the company logo or a image file into my report?
    What is the best tools?
    I have try to use the "Link File" tool and it required me to specify the "Source Filename". So if I put the file path and filename in the "Source Filename", it's hardcoded...
    How to specify the "Source Filename" at run time or any otherway so that it won't hardcoded?
    Regards,
    Cheong

    Note that you can also use the read from file functionality.
    If you have a character based column, then any layout field based on this column will have the Read From File property. If this is set to Yes, then reports will attempt to use the value of the column to read a file from the file system. You can also specify the type of the file (image, text, or even an image URL to read an image from over the web).
    For example, if you have a column in the data model that returns a value ("c:\temp\mypicture.bmp"), and you set the Read From File property to Yes, and the File Format to be Image then at runtime, reports would look for c:\temp\myimage.bmp and return the value. And of course, since you can create a formula column in the data model then you can control the returned value as much as you like.
    Hope this helps,
    Danny

  • How to put chinese character in the Manifest file

    Hi,
    I want to know that how can we put chinese characters in the manifest file. Please suggest a solution.
    Regards

    [slightly confused stuff removed]Sorry, AmitChalwade123456, I know trolling can be very funny, but you're confusing the sh*t out of newbies with this almost-seems-usefull kind of talk.
    Stop that.
    And in case you really meant that seriously: Please refrain from giving advice with regard to encoding. What you posted is wrong (to put it mildly).

  • How to put variable selection and the query result the same screen

    Dear all,
       how can I put the variable selection and the query result in the same screen? Please advise. Thanks.
    Jin Ming

    Not sure if you are saying you want the prompts on the same page as the results... however in 7.0 with BEx Analyzer, you can insert a text object from the design toolbar and assign it to the variable.... this way, lets say you run query for period 6, then the text object will display "6" on the same area where the query results are.

  • How to put two files with the same name into the same folder?

    How can I put two files with the same name and the same extention into the same directory?
    Is this even possible?
    Thanks in advance. 

    Are you sure? I would be very surprised if that was the case.
    How does the computer/filing system differentiate the files, if not by their names?
    How do you tell the computer which one you want? (On the command line.)

  • How to put messages back on the server

    by accident, I set up an account that deleted received messages from teh server. I believe that I set this up as a pop account. Is it possible to put messages back on the server? I couldn't see an option for this and it is important that I be able to check these messages via webmail.
    any help would be greatly appreciated.
    thanks
    m

    Before doing anything, I encourage you to make a backup copy of the entire ~/Library/Mail folder, in case something goes wrong (quit Mail first). You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is stored.
    You cannot have two accounts of the same type in Mail with the same username and incoming mail server. You can, however, set up two mail accounts with the same username and incoming mail server IF the account type is different.
    That is, if you really did set up this account as POP, you can set it up also as IMAP in Mail without deleting the POP account first. You should, however, disable Preferences > Accounts > Advanced > Include when automatically checking for new mail (but keep Enable this account checked) for the POP account, to avoid it interfering with the IMAP account. You can then move any messages to the mailboxes of the IMAP account where you want them to be.
    EDITED: The above assumes that the provider of this account allows you to access it as either POP or IMAP, and that you chose POP by mistake. If POP is your only option and the mistake is just that the account was configured to remove messages from the server when in fact you didn't want to do that, then that's a different problem...
    Note: For those not familiarized with the ~/ notation, it refers to the user's home folder, i.e. ~/Library is the Library folder within the user's home folder.

  • Photoshop: how to put your page in the middle

    i've made my first page of my new website with photoshop cs2
    but i want to see it in the middle when i use IE or firefox
    how can i do that with dreamweaver
    my page
    thanks a lot

    Table height is invalid HTML.
    There is no align center option for an image.
    Your code will give horizontal but not vertical centering. To
    get valid,
    vertical centering, read this -
    http://www.apptools.com/examples/tableheight.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Pay Low Books!" <[email protected]> wrote
    in message
    news:f47f99$e9c$[email protected]..
    > Your page contains the photo only. Do you want to make
    the photo in the
    > middle?
    > Here is how to do it in Dreamweaver CS3:
    > Because your page looks like it contains many photos
    when I tried it in my
    > Dreamweaver, so you should select the whole image by the
    mouse. At the
    > bottom
    > of Dreamweaver, you will find properties window at the
    bottom.
    > You will find Align optin, choose Center from options
    beside it.
    > Another way, you can do it through HTML.
    > Using Dreamweaver, look at the code by selecting
    clicking on Code on the
    > left
    > up corner in Dreamweaver. If you wrote this page, you
    will find HTML table
    > tags.
    > If you did not, look for this:
    > <table width="901" height="601" border="0"
    cellpadding="0" cellspacing="0"
    > id="Tableau_01"> in your code.
    > Inside this tage add Align="center", so it should look
    like this:
    > <table width="901" height="601" border="0"
    cellpadding="0" cellspacing="0"
    > id="Tableau_01" align="center">
    >
    > I hope my answer is helpful!
    >

Maybe you are looking for

  • Problem in opening a ref cursor.

    Hi, I'm getting the following error when i'm trying to open the ref cursor. PL/SQL: ORA-22905: cannot access rows from a non-nested table item What i'm trying to do is I'm dumping the data into pl/sql table and i want retrieving the by using a ref cu

  • How do I get iCloud settings to accept new payment info?

    Last evening at 6:54 I received this notification: On 09/30/2014, we attempted to charge your account for your 20 GB iCloud storage plan, but there is still a problem with your payment information. "No problem," I said to myself, "that's the card we

  • My Computer Has Been Taken Over by the Matrix

    Can anyone explain this? This is the second time this issue has happened. The first time it happened was a few weeks back. You cannot use the computer when this happens; force quitting accomplishes nothing. Fortunately, however, you can take a screen

  • Image displays in some jsp files but not others

    OK, I have a jsf jsp pages js tag for my application that occurs in several jsp pages: <tr>    <td>       <jsp:include page="/includes/footer.jsp"/>    </td> </tr>     footer.jsp has an image tag like this: <td align="left"><img src="images/logo.jpg"

  • Project Management in Computer Software (September 2006).

    Project Management in Computer Software (September 2006). Procedures and Guidelines for Project Management,What is Project Management?,Project Management Processes,Project Planning Tutorial,Ten Tips for Managing a Project,Related Project Management A