How do I reset an STC Counter using DAQmx?

When another digital line goes high I want to reset my counter. How do I reset the counter using DAQmx?

Hello,
Thank you for contacting National Instruments.
Please see this link for information on this issue.
I have attached an example program which shows how to to do this in software.
Regards,
Bill B
Applications Engineer
National Instruments
Attachments:
Count_Digital_Events_with_Reset_Button.vi ‏68 KB

Similar Messages

  • How do I reset my Gmail counter which is stuck on 3

    How do I reset my Gmail counter which is stuck on 3 regardless of how many unread messages are in my inbox

    Select the Gmail inbox and use the Mailbox ➙ Rebuild menu option.
    If that fails close Mail, go to your Home/Library/Mail/V2/MailData folder and delete the 3 files shown in the screenshot below:
    Launch Mail and check again.

  • ICloud accidentally set-up with erroneous email acct. How do I reset the email originally used to start the Apple ID? I'm stuck in a loop...

    Hi Apple friends! Here's my frustrating situation. When I got the new computer (2012 Macbook Pro), I tried to set up iCloud but accidentally input an erroneous email acct. I cannot access iClod because the email was accidentally input as "[email protected]", not "[email protected]". How do I reset the email originally used to start the Apple ID? I'm stuck in a loop, and not only cannot use iCloud, but I keep getting messages popping up to register my iCloud with a non-existent email...
    Help?
    Sincerely,
    Cole
    [email protected]

    Have you tried to go into System Preferences > iCloud and entering the correct information there? You will first have to "sign out" of the wrong account and then log in with the correct information.
    If that does not work you should direct follow up to the iCloud for Mac forum.

  • HT4623 I have tried resetting an iPhone 3 and I am unable to activate and sync it. How can I reset the device without using a computer?

    I have tried resetting an iPhone 3 and I am unable to activate and sync it. How can I reset the device without using a computer?

    Hello anacc,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Connect your USB cable to your computer but not to the iPhone, iPad, or iPod touch until step 3.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.If you cannot turn off the device using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the device turns off, release the Sleep/Wake and Home buttons.
    While pressing and holding the Home button down, connect the USB cable to the iPhone, iPad, or iPod touch. The device should turn on.
    Continue holding the Home button until you see the Connect to iTunes screen. When this screen appears, you can release the Home button:
    Note: If the image of a battery appears, let the device charge for at least ten minutes to ensure that the battery has some charge, and then start with step 2 again. If you don't see the Connect to iTunes screen, try these steps 1 through 4 again.
    iTunes should automatically open and display the following message:
    "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes."Note: If iTunes not open after two minutes, please open iTunes yourself.
    Use iTunes to restore the device.
    Best of luck,
    Mario

  • I bought this ipod 4 from a friend the lock button does not work and he doesnt know the password? how do i reset and i cant use my computer????   HELP!!!!!!

    i bought this ipod 4 from a friend the lock button does not work and he doesnt know the password? how do i reset and i cant use my computer????
    HELP!!!!!!

    Place the iOS device in recovery mode usning this program and then then restore via iTunes. The iPod will be erased.
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    For how to restore:
    iTunes: Restoring iOS software

  • How do i reset the play counter

    My i-tunes says I've played some of my songs over 46 million times. I'd like to use my top 25 most played playlist so is there any way i can reset the counter on specific songs? if not, how do i reset the counter for my entire library?

    Control click -> Reset Playcount

  • How to limit the range of counter using rotary encoder

    Hello all!
    I'm new user of labview..
    I've problem to limit the range of counter by using rotary encoder..
    I use DAQmx 6024e in my project..
    Actually i am designing the controller for both dyno & throttle for engine testing..
    The idea is, i want to vary the output of 0-10V from ni card to control the dyno & throttle..
    I'm already manage to get the output from the analog output..
    The problem is due to my software..
    When i rotate the encoder shaft cw or ccw, it increase or decrease the voltage respectively just like i want..
    But, when the counter hit minimum (0 value) it jump to the maximum count which is 16.772M (for koyo encoder that i used)..
    In that case the output voltage is increase to 10V directly..
    So , the question is how can i limit the range of encoder so that it only count certain minimum or maximum value even the shaft is rotate cw or ccw over it standard limit which is 0 to 16.772M count..
    Tq

    You'll need to do a little software workaround on the values you read from your counter.   But first a little tutorial to explain *why*.
    The E-series boards use 24-bit counters.  When LabVIEW requests an integer count value, the count is returned in a 32-bit unsigned integer datatype, where the 24 lowest bits represent the value in the board's count register.  The upper 8 bits are *always* 0's.
    The count register can increment from 0 to 16 million plus (2^24 - 1), then it must "roll over" back to 0 again just like an odometer.  Similarly, when it decrements past 0, it next goes to the max value of 2^24 -1 as you observed.
    So we need a little software workaround that'll convert (2^24 -1) to (-1) and (2^24 -2) to (-2), etc.  The way to do it is to first detect whether the highest bit is a 1.  One way is to compare whether the count value is >= 2^23, making sure to use integers to do the comparison.  Whenever the value is >= 2^23, subtract 2^24 from it to create your new count value which will then decrement 3,2,1,0,-1,-2,-3, etc. as desired.
    Here's a link to a similar explanation.  Couple more notes too.  First, if this is a continuously rotating encoder, you may still encounter a discontinuity when the revised count value crosses the +/- 2^23 boundary.   Second, direct connection of a quadrature encoder to an E-series board isn't recommended because of unrepeatability when measureing direction changes.
    -Kevin P.

  • How do I reset my activation count for cs4?

    I can't uninstall cs4 from my old computer.  I was told I could reset my activation count by contacting adobe is this true and can someone post  a link to contact them?

    Adobe ID, sign in, and account help
    Click the "Still Need Help?" links and you'll see a chance to connect with Web Chat.

  • How to get Process Task Retry Count using API (OIM 10g)

    Hi ,
    I want to get all the process task which are failed after retried 5 times.
    For e.g Create user task in AD retried for 5 times but still it is in failed state. I want to get all such process task.
    I am stuck at point how to get process task retry count from process definition?
    Thanks

    You can reference the code in the "Task Timed Retry" scheduled task to get what you are looking for. Here is the decompiled code:
    >
    package com.thortech.xl.schedule.tasks;
    import Thor.API.Operations.tcScheduleTaskOperationsIntf;
    import com.thortech.util.logging.Logger;
    import com.thortech.xl.dataaccess.tcDataSetException;
    import com.thortech.xl.dataobj.tcDataSet;
    import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
    import com.thortech.xl.util.logging.LoggerMessages;
    import java.sql.Date;
    import java.util.Hashtable;
    public class tcTskTimedRetry extends SchedulerBaseTask
    private static Logger logger = Logger.getLogger("Xellerate.Scheduler.Task");
    Date isCurrentDate;
    public void init()
    logger.debug(LoggerMessages.getMessage("EnteredMethodDebug", "tcTskTimedRetry/init"));
    this.isCurrentDate = new Date(System.currentTimeMillis());
    logger.debug(LoggerMessages.getMessage("LeftMethodDebug", "tcTskTimedRetry/init"));
    public void execute()
    logger.debug(LoggerMessages.getMessage("EnteredMethodDebug", "tcTskTimedRetry/execute"));
    tcDataSet localtcDataSet1 = new tcDataSet();
    tcDataSet localtcDataSet2 = new tcDataSet();
    tcDataSet localtcDataSet3 = new tcDataSet();
    try
    if (isStopped())
    return;
    localtcDataSet2.setQuery(getDataBase(), "select osi_retry_on from osi where 1=2");
    localtcDataSet2.executeQuery();
    if (isStopped())
    return;
    localtcDataSet2.setDate("osi_retry_on", this.isCurrentDate);
    localtcDataSet1.setQuery(getDataBase(), "select osi.sch_key, osi.mil_key, osi.orc_key, osi.osi_rowver, sch.sch_rowver, osi.osi_retry_for, osi.osi_retry_on, osi.osi_retry_counter, sch.sch_note from osi osi,sch sch where osi.osi_retry_on <=" + localtcDataSet2.getSqlText("osi_retry_on") + " and osi.sch_key = sch.sch_key" + " and sch.sch_status='R'" + " and osi_retry_counter>0 order by osi.sch_key");
    localtcDataSet1.executeQuery();
    if (isStopped())
    return;
    int i = localtcDataSet1.getRowCount();
    logger.debug("tcTskTimedRetry:execute:Number of Process tasks retrieved is=" + i);
    tcScheduleTaskOperationsIntf localtcScheduleTaskOperationsIntf = (tcScheduleTaskOperationsIntf)getUtility("Thor.API.Operations.tcScheduleTaskOperationsIntf");
    tcDataSet localtcDataSet4 = new tcDataSet();
    localtcDataSet4.setQuery(getDataBase(), "select osi_retry_for, osi_retry_counter from osi where 1=2");
    localtcDataSet4.executeQuery();
    Hashtable localHashtable = new Hashtable();
    if (isStopped())
    return;
    for (int j = 0; j < i; j++)
    if (isStopped())
    return;
    localtcDataSet1.goToRow(j);
    localtcDataSet3.setQuery(getDataBase(), "select count(*) as counter from osi osi,sch sch where osi.sch_key = sch.sch_key and osi_retry_for=" + localtcDataSet1.getLong("sch_key"));
    localtcDataSet3.executeQuery();
    if (isStopped())
    return;
    if (localtcDataSet3.getInt("counter") > 0)
    continue;
    localHashtable.put("osi_retry_for", String.valueOf(localtcDataSet1.getLong("sch_key")));
    localHashtable.put("sch_note", localtcDataSet1.getString("sch_note"));
    long l = localtcDataSet1.getLong("osi_retry_counter");
    if (isStopped())
    return;
    try
    localtcScheduleTaskOperationsIntf.createScheduleItem(localtcDataSet1.getString("orc_key"), localtcDataSet1.getString("mil_key"), localHashtable, l - 1L);
    catch (Exception localException2)
    logger.error(LoggerMessages.getMessage("ErrorMethodDebug", "tcTskTimedRetry/execute", localException2.getMessage()), localException2);
    catch (tcDataSetException localtcDataSetException)
    logger.error(LoggerMessages.getMessage("ErrorMethodDebug", "tcTskTimedRetry/execute", localtcDataSetException.getMessage()), localtcDataSetException);
    logger.debug("PJ:tcTskTimedRetry:execute:DataSetexception has occured");
    catch (Exception localException1)
    logger.error(LoggerMessages.getMessage("ErrorMethodDebug", "tcTskTimedRetry/execute", localException1.getMessage()), localException1);
    logger.debug(LoggerMessages.getMessage("LeftMethodDebug", "tcTskTimedRetry/execute"));
    public boolean stop()
    logger.debug("tcTskTimedRetry:stop:Task being stopped");
    return true;
    >
    -Kevin

  • How do i reset my security questions using a different email address?

    Hey guys,
    How do i reset my security questions so i can purchase music. i cannot remember my answers and they email address itunes has on file, does not seem to be working everytime i try to send the answers to my gmail account. how do i reset the whole thing?

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • How to get the Report Page count using crystal reports 2008

    Hi,
    I  have to implement a business logic where in i will have to display the no. of pages generated for the report
    Say for e.g. crytal report that's generated spans 25 pages in the report.
    Then i will have to display a message to the user after the report generation something like  "25 Pages generated"
    So, how would i get this report page count so that i can fetch the value and display the same to the user.
    Any sample code snippet would be of great help.
    Thanks in Advance
    Regards,
    Ramnath

    Hi,
    I am using crystal reports 2008 and i  visited the link forwarded in your previous mail and got the solution for getting the lastpagenumber of the report.
    nPages = crReport.FormatEngine.GetLastPageNumber(New CrystalDecisions.Shared.ReportPageRequestContext)
    but, i don't find FormatEngine  property for ReportDocument object.
    I just wanted to know whether this property is availale in crystal reports 2008 or should i even install any service packs for this.
    Please find below the namespaces that importing in my class
    Imports System.Windows.Forms
    Imports System.Drawing.Printing
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.Windows.Forms
    Imports CrystalDecisions.CrystalReports.ViewerObjectModel
    Imports CrystalDecisions.Shared.ReportPageRequestContext
    Please let me know how can i get the formatEngine property for reportdocument object
    Thanks in Advance
    Regards,
    Ramnath

  • Forgotten password on iPhone 5, how can i reset via iTunes and use the phone?

    I bought a used iPhone 5 from a friend, and unfortunately i found out there is a passcode when turning it on!!, and the old owner of the phone has forgot it! i tried 3-4 times and it said "wrong password",  WHat can I do to be able to launch the phone, or reset it via iTunes?

    If it has been disabled after entering the wrong passcode - http://support.apple.com/kb/HT1212.
    Unfortunately, you must restore it in iTunes on your computer.   There is no way to retrieve a forgotten pass lock code.
    You will need to restore your device from the same computer that you most recently synced to, and restore the device. See - http://support.apple.com/kb/HT1414.

  • How do I reset my iPad without using a password?

    I have forgotten my iPad passwords and I want to reset it back to new

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port. Do not release button until you see picture of iTunes and plug (very important)
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note: Data will be lost

  • My daughters iPod shares my iCloud storage.how can I reset hers so she uses her own storage?

    My daughters iPod is using all my iCloud storage.how do I get her on her own iCloud and off mine?
    Without losing all her paid for items.
    I have an iPad and originally set up her iPod using my Apple ID for ease of purchasing.
    Regards Dave

    You will need to Erase the Device and Set up as New using her Apple ID.
    Then... Sync her content...
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    Note:
    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622

  • How do you reset/close the execution using the API?

    I am trying to programmatically launch different sequences then look at the final results.  The results of the execution always show the results from the first call to
    TS_ExecutionGetResultStatus.  Even if I execute a different sequence.  Is there a method to close the last execution results? 
    Thanks,
    Mike
    Here is a code snippet of what I am doing.
        tsErrChk(TSUI_SequenceFileViewMgrRun (tsoHandles.sequenceFileViewMgr, &errorInfo, CA_DEFAULT_VAL, NULL));
        CA_DiscardObjHandle(tsoHandles.Executions);
        tsErrChk(TSUI_ApplicationMgrGetExecutions(tsoHandles.applicationMgr, &errorInfo, &tsoHandles.Executions));
        tsErrChk(TSUI_ExecutionsGetItem(tsoHandles.Executions, &errorInfo, 0, &tsoHandles.Execution));
        if (bWait)
        { // Wait
            while (Test_Running())
            { // Running
                ProcessSystemEvents();
                iCount++;
            } // Running
        } // Wait
        tsErrChk(TS_ExecutionGetResultStatus(tsoHandles.Execution, &errorInfo, &szResults));
        if (strcmp(szResults, "Passed") == 0)
            bRet = TRUE;
        if (strcmp(szResults, "Failed") == 0)
            bRet = FALSE;
    Solved!
    Go to Solution.

    Hey Mike,
    It looks like you're on the right track but from the code you pasted you are always referencing the same execution.  Because the TS_ExecutionGetResultStatus function just returns the status of whichever Execution object you decide to pass it, you first should verify that you passing it the correct object. When you call the TSUI_ExecutionsGetItem function:
    tsErrChk(TSUI_ExecutionsGetItem(tsoHandles.Executions, &errorInfo, 0, &tsoHandles.Execution));
    you are passing a value of zero for the ItemIdx input. Try changing your value from 0 to any number between 1 and one less than the result of TSUI_ExecutionsGetCount (because of zero indexing). Give this a try and see if this helps.
    Lars

Maybe you are looking for