Counter reseting after particular number is reached

Hi,
I need a counter which will count from 1 to 20. It should reset at 20 and again start from 1 again. Can any one help me in this.
Also I need how to interface the labview simulation with real time clock. I mean span of 1 iteration in my simulation should be 1 second.
Thanks.

Bob_Schor wrote:
The Remainder function is your friend, as is the Feedback node.
In a normal application, use the Quotient & Remainder.  It is the easiest code to understand.  When going to FPGA, do the normal comparison and a Select function.  The Q&R is really expensive in an FPGA.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • FILEIO message sequence counter reset after domain restart

    Hi,
    I have configured FileIO to pick message from RIB-RMS topic and create xml message. It is working fine.
    These xml message are pick by external system based on their sequence number in file name itself. like File name 'Items_ItemCre_100069945.775' having message number 775.
    After Domain bounce, counter is reset to 0, causing the duplicate message error as message is identified by its sequence number.
    Please let me know how can we avoid resetting the message counter?
    Thanks & Reagrds,
    Vinay

    Hi,
    Are the results from a same computer? (Run manually and ran that as required)
    Please make sure the instance of 'Win32_EncryptableVolume' exists on that drive. 
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Need phone number to get authorization count reset. adobe reader on nook not working right

    Need phone number to get authorization count reset. Adobe reader on nook freezes up. Only fix is to send to cloud and then redownload. Keeps happening even after got replacement nook! Unfortunately this is ONLY program to get library books on my nook. Help

    Sorry, that was a mistake. I did first one and nothing happened, thought I did it wrong and that it had not gone through. This is the first time I tried this.
    Sent from my NOOK

  • Count up to a particular number in Edge?

    I'd like to create a numerical animation that counts up to %100 in Edge Animate. Is this possible? I'm brand new to the program.

    Thanks, it works. I found out a little variation of the code:
    var counter_delay = 20;
    var max_count = 999;
    var present_count = 489;
    var timer = window.setInterval(stepUp, counter_delay);
    function stepUp() {
         present_count++;
         // Change the text of an element
         sym.$("Text").html(Array(Math.max(3 - String(present_count).length + 1, 0)).join(0) + present_count);
         if (present_count >= 999) {
              present_count = 0; // resets the count to 0
    This will count to a specific number and also have the "0" padding.

  • Not able to reset the page number in XML Publisher based on each PO

    Not able to reset the page number in XML Publisher based on PO
    Hi,
    I have created a custom purchase report and rtf template. In the rtf template, I have added the page number feature (i.e. Page 1 of 5) from Word in the template. When I run the report for a range of POs, I expect the results as follows:
    I have given 3 POs on single request. (PO#1 has 3 pages, PO#2 has 2 pages and PO#3 has 4 pages), the page number on each PO should look like as follows:
    PO#1 page 1 of 3, page 2 of 3, page 3 of 3
    PO#2 page 1 of 2 page 2 of 2
    PO#3 page 1 of 4, page 2 of 4, page 3 of 4 and page 4 of 4
    But the page number displays on each PO as follows:
    PO#1 page 1 of 9, page 2 of 9, page 3 of 9
    PO#2 page 4 of 9 page 5 of 9
    PO#3 page 6 of 9, page 7 of 9, page 8 of 9 and page 9 of 9
    Here I have to reset the page number based on each PO. If anyone done this already, can you please share with me.
    Thanks,
    Ram.

    Hi
    One clarification please.
    Are you putting Page # of ## in the for-loop section? I mean it should be within For-each@section block.
    Even if this doesn;t work, then try using Insert->Page Break after every PO.
    Regards
    Varun

  • I installed iOS 7 and it deleted some of my contacts, as expected, so I just resaved them all. There's one particular number that will save but in my messages, it shows up as the number instead of the name saved. How do I fix it? And why is it doing that?

    I installed iOS 7 and it deleted some of my contacts, as expected, so I just resaved them all. There's one particular number that will save but in my messages, it shows up as the number instead of the name saved. How do I fix it? And why is it doing that?

    I had this problem too, I fixed it by going to my settings and under general at the bottom there is a reset option, go there. One of the options should be reset network settings, select that one. I’m not sure why it happens but that worked for me; hope you have the same luck!

  • UDF Using Dynamic Configuration for Counter Reset

    Hi All,
    In an Idoc to file scenario we want to have counter option at the end of the file.we are using NFS so that we wil not face any problem of counter reset on a j2ee restart
    But when the counter turns 999999 it has to be reset to 0000001
    So we are trying to dynamically create a file name using the counter and check whether it has reached 999999 then resetting back . I had written a code for the same but it is throwing an error while mapping and activating.
    UDF CODE is below
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION) ;
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName") ;
    String FileName = conf.get(key) ;
    int inc = 1 ;
    String temp = FileName.substring(10,6);
    String temp1 = FileName.substring(0,10);
    Integer seqNo = Integer.parseInt(temp) ;
    if(seqNo == 0 || seqNo == 999999) {
    seqNo = new Integer(inc) ;
    else {
    int num = seqNo.intValue() + inc ;
    seqNo = new Integer(num) ;
    container.setParameter("seqNo", seqNo);
    String File_Name = temp1 + Integer.toString(seqNo);
    conf.put(key, File_Name);
    return File_Name;
    ERROR it is throwing
    'class' or 'interface' expected public String Decimal$(String Sample,Container container){ ^ /usr/sap/PJD/DVEBMGS58/j2ee/cluster/server0/./temp/classpath_resolver/Map76d12330b43811df8c1500e000a6fabc/source/com/sap/xi/tf/_MM_Sample_to_TRGT_.java:127: 'class' or 'interface' expected }
    So can anyone please advice.

    Hi Stefan,
    I removed the last }
    But stil it is throwing the below error:
    Activation of the change list canceled Check result for Message Mapping MM_Sample_to_Trgt | :  Starting compilation  Source code has syntax error:  /usr/sap/PJD/DVEBMGS58/j2ee/cluster/server0/./temp/classpath_resolver/Map8e67b780b44111dfbc4100e000a6fabc/source/com/sap/xi/tf/_MM_Sample_to_Trgt .java:98: FileName is already defined in File$(java.lang.String,com.sap.aii.mappingtool.tf3.rt.Container) String FileName = conf.get(key) ; ^ /usr/sap/PJD/DVEBMGS58/j2ee/cluster/server0/./temp/classpathresolver/Map8e67b780b44111dfbc4100e000a6fabc/source/com/sap/xi/tf/_MM_Sample_to_Trgt .java:102: incompatible types found : int required: java.lang.Integer Integer seqNo = Integer.parseInt(temp) ; ^ /usr/sap/PJD/DVEBMGS58/j2ee/cluster/server0/./temp/classpathresolver/Map8e67b780b44111dfbc4100e000a6fabc/source/com/sap/xi/tf/_MM_Sample_to_Trgt .java:103: operator == cannot be applied to java.lang.Integer,int if(seqNo == 0 || seqNo == 999999) { ^ /usr/sap/PJD/DVEBMGS58/j2ee/cluster/server0/./temp/classpathresolver/Map8e67b780b44111dfbc4100e000a6fabc/source/com/sap/xi/tf/_MM_Sample_to_Trgt .java:103: operator == cannot be applied to java.lang.Integer,int if(seqNo == 0 || seqNo == 999999) { ^ /usr/sap/PJD/DVEBMGS58/j2ee/cluster/server0/./temp/classpathresolver/Map8e67b780b44111dfbc4100e000a6fabc/source/com/sap/xi/tf/_MM_Sample_to_Trgt .java:111: cannot resolve symbol symbol : method toString (java.lang.Integer) location: class java.lang.Integer String FileName = temp1 + Integer.toString(seqNo);
    Edited by: mallavarapu soundarya on Aug 30, 2010 4:44 PM

  • Is it possible to rename photo in the "camera roll" OR reset the photo number in iphone 4s? (Clearly explained the situation)

    Hi everyone, nice to meet you all. This is my first discussion starting in here and nice to meet you all. I used Android device before and this is my first apple mobile that I owned. I am using iphone 4s. (5.0.1)
    I have search a lot but no answer that how can I rename the photo in the camera roll in iphone or in Windows 7.
    What I want to do is:
    I have IMG_0006, IMG_0007, IMG_0015, IMG_0016, IMG_0017, total 5 files.
    I want to change the name that make their sequence will become IMG_0001, IMG_0002, IMG_0003, IMG_0004, IMG_0005 and I want the following picture will take place in IMG_0006. (This is just what I want but it never happened)
    but seems that I can't rename them and I have tried that if I take 2 pictures after IMG_0017, but I delete them (which is delete IMG_0018 and IMG_0019), then take another new picture again, it will name as IMG_0020 instead of IMG_0018.
    Questions:
    1. Are there any methods to reset the photo number by deleting file under the "PhotoData" that we can see in iPhone Explorer?
    OR
    2. Are there any methods to rename the photo in the "camera roll" folder?
    I have tried to rename the photo directly in iPhone Explorer but it will make the photo cannot be read in iphone.
    3. Is it possible that I can rename them directly and rebuild the camera roll by deleting the Photos.sqlite under the PhotoData folder to solve the unreadable problem in iphone 4?
    Thanks a lot to read all of the words above

    Thanks for your quick reply. I think I have tried but I cannot.
    There are no any options to let you choose "rename" in Windows 7 if you connect the iphone via USB
    I have tried to rename the photo directly in iPhone Explorer but it will make the photo cannot be read in iphone and just got nothing to show on its screen until I rename it into the previos name again then the picture will show properly.
    May be it can but I do not know how to rename them in Windows 7, could you please show me step by step?

  • App Store badge count shows the wrong number in iOS 8.0.2

    Just updated to iOS 8.0.2 on both my iPhone 5 and iPad Air and the App Store badge app count still shows the number of apps that had updates even though they were updated when syncing with my Mac.
    When you launch the App Store it quickly shows "Update" for a number of apps before then showing "Open"
    Anyone else got the same issue or know how to fix it?

    Had the same problem with upgrading to 8.0.2 and then having app updates occur while syncing with iTunes - although just for the iPhone not iPad - not sure what I did differently if anything. The badge number on the phone was wrong until I got an over-the-air update notification which reset the badge number. I uploaded the app over-the-air and now there is no badge number (I would assume until the next update). Will try a sync again with iTunes to see if it was something new with iTunes - or just an odd combination of updating to 8.0.2 in conjunction with app updates.

  • How can I retain my counter button after editing page?

    How can I retain the numberon my counter button after I have change information on my welcome page?

    Since MobileMe will be discontinued on June 12, 2012, and with it the following features:
    Features Unavailable When Publishing to a Non-Mac Server:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ RSS Feed Widget
    you might get ahead of the curve and use a 3rd party counter.  There are many counters that will give you much more than just the number of visitors and can be setup to not count your visits. I use  StatCounter which gives the following info on visitors:
    Click to view full size
    This tutorial describes how to add the counter using an HTML snippet: #13 - Adding a StatCounter as an HTML Snippet. 
    OT

  • Sequence file Version number. How to prevent the automatic resetting build version number whilst auto-incrementing revision number?

    Hi,
    I've got my environment set this way that each save of the sequence file increase the revision part of version number. However, during that increase the build counter is reset to 0. How to prevent it?
    TS 4.2

    Mimi,
    It is pretty common practice in software revisioning to reset a minor number to 0 when a major moves up 1.  There are many different schemes out there.  If you google or bing software versioning schemes you'll see what I'm talking about.
    So looking at it from left to right:  Major.Minor.Revision.Build = 0.0.0.1 
    if you change the Revision it would be expected that anything to the right (in this case Build) would reset to 0.  0.0.1.0!
    Let's say your version is 8.34.56.23.  It would make sense that if you were to change the Major number (which means a Major release) to 9 then your version would go to: 9.0.0.0. 
    A version number is just a unique way to tell someone which specific software you are using so it really doesn't matter that it resets to 0.  Although it makes sense because if you kept your build number sequential and didn't reset it then it would get outrageously larger which would be more annoying than anything. 
    Again this is common accepted practice in industry.
    Good Luck,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • A row delimiter should be seen after column number

    A column delimiter was seen after column number <70> for row number <533394> in file
    The total number of columns defined is <70>, so
                                                          a row delimiter should be seen after column number <70>. Please check the file for bad data, or redefine the input schema for
                                                          the file by editing the file format in the UI.
    So i checked the flat file i was trying to retrieve the data for the row number and checked the last column and did not find anything unsual in that row that could have caused this error.
    There are 70 columns and it proposes there is a problem in the last column. I checked but there were no carriage return
    Please help me on this.

    It appears to me the problem with the particular row(s).
    I suggest open the file in notepad if not very big and look at the record number 533394.
    you can also use u2018Overflow fileu2019 option in the error handling section on the target table under the option tab to find out the bad record(s).
    Regards,
    Vibhor

  • APO: Message number 999999 reached. Log is full

    Hi,
    We are running program in background to close order with FM BAPI_SALESORDER_CHANGE.
    The job is failing with messages in Job Log
    APO: Message number 999999 reached. Log is full
    APO: Task handler for transaction IZVSlIkXAQxX0000bkikP 0 has not been registered
    Please can you provide some pointer to stop these messages in LOG or disable the LOG. These messages are coming after FM AVAILABILITY_CHECK (Include LATP4FA0).
    What is reason for these messages and what is solution for this problem.
    Thanks,
    Dipak

    how many line items in that SO ?...i think its a prob with ur coding /way of calling that BAPI.
    i think u cannt deactivate application log creation.
    tcode: SLG0
    regards
    Prabhu

  • Message number 999999 reached. Log is full. RFKK_MASS_ACT_SINGLE_JOB

    I am trying to complete a large initial load of sales statistics data from an R/3 system into a BI system. I get this error:
    Message number 999999 reached. Log is full
    I have searched OSS and found many references to a programming error that causes this, but not for program RFKK_MASS_ACT_SINGLE_JOB. Is this a known issue? Is there something I can set up differently?
    Below is the full job log:
    Job started                                                                        
    Step 001 started (program RFKK_MASS_ACT_SINGLE_JOB, variant &0000000119033, user ID
    Key 08023TSW2 AA for G/L acounting does not exist                                  
    Message number 999999 reached. Log is full                                         
    Message number 999999 reached. Log is full                                         
    Rollback work executed                                                             
    Job cancelled after system exception ERROR_MESSAGE

    Hi,
    We are running program in background to close order with FM BAPI_SALESORDER_CHANGE.
    The job is failing with messages in Job Log
    APO: Message number 999999 reached. Log is full                                 
    APO: Task handler for transaction IZVSlIkXAQxX0000bkikP 0 has not been registered
    Please can you provide some pointer to stop these messages in LOG or disable the LOG. These messages are coming after FM AVAILABILITY_CHECK (Include LATP4FA0).
    What is reason for these messages and what is solution for this problem.
    Thanks,
    Dipak

  • Audition CC - How to reset a marker number

    Hi, I have markers for an audio file which span from say 1-200. If I delete these markers and then later add new markers, the numbers start from 201 onwards. How can reset the marker number to start from 1 each time.
    I dont want to physically renumber them as I have thousands of them. I am using the effect "Mark Audio" and then scan and the "Mark All"
    I did look at the help and did find anything obvious.
    Thanks

    That should work.  Audition simply keeps an internal counter per file as new markers are added.  This is reset when a file is opened again.
    Edit: Oops.  That's NOT correct.  The last marker counter value is stored and new markers generate from there.  If all markers are deleted and the file is saved and re-opened, then the counter should begin at 1 again.

Maybe you are looking for