Counter roll-over when measuring period

Hi,
I'm using PCI-6251 counter 0 to continuously measure the period of a signal, and I notice there are occasionally  error readings. Since the counter can roll over when it reaches 2^32-1, I need to know what will happen to the period measurement when counter roll overs. Would anyone please help me?
Thanks.
David

The count value will simply wrap-around back to 0 and then continue to increment.  I can think of a few ways to handle this:
1. Specify a slower timebase for the measurement.  If you go from, say, 80 MHz to 100 kHz, it'll take 800 times as long a period to cause rollover.  This method is pretty simple to implement, but not all apps can accept the loss in precision.
2.  You can use a 2nd counter to be sensitive to the 1st counter's "terminal count".  This gets a bit complex, so you may need to do more research on some of the terms that follow.
An internal pulse signal is generated on the board when the 1st counter rolls over from 2^32-1 back to 0.  It's commonly known as "terminal count" or TC.  You'll need to configure a 2nd counter that also measures periods of your external signal, but which uses those TC pulses as its timebase signal.  You may need to fiddle with the "Duplicate Count Prevention" property on the 2nd counter so that it will buffer values of 0 during the majority of intervals where no TC pulse occurs.  During the intervals where rollover happens, the 2nd counter will count how many times it happens.
You would further need the 2 counters to be started off a common "arm start" trigger to keep their data sync'ed.
3.  Software method.  You can query the DAQmx Channel property "Counter Input -> General Properties -> More -> Terminal Count Reached".  When you get a 'True' output, the property resets such that subsequent calls will return 'False' until the next rollover occurs.  The problem here is trying to correlate this software-detected rollover with a specific period in the 1st counter's measurement buffer.  You'd probably also need to be querying and tracking the DAQmx Read property for Total Samples Acquired both before and after the TC event.  Even then you might not always be able to determine unambiguously which interval had the TC event.
-Kevin P.

Similar Messages

  • Counter roll over

    I wonder what to do when  counter roll over.
    Do anyone have some examples what to do?
    Thanks.

    It looks like you're trying to measure the frequency of your encoder signal using the 6251?  Your software-timed loop (code in your other thread) isn't the best way to go about this since the software timing is non-deterministic.  I think you should follow Stefo's advice in this thread to use a period measurement, which wouldn't give you the rollover problem.  I don't think there's a need for you to use both the A and the B signals, instead just measure the frequency of either A or B using the shipping example.
    Alternatively, you could generate a sample clock to sample your encoder task deterministically to determine the frequency by subtracting consecutive samples.  You still can't reset the counter, but you can certainly account for the overflow in software.  In fact, if you typecast the data to U32 (you can actually read the data as U32 with the DAQmx API) before the subtraction, the overflow would take care of itself (0 - 4294967295 = 1 if the data is U32).
    Best Regards,
    John Passiak

  • I can't get my screen to roll over when I turn phone on the side. It used to work, I might have set something wrong   thanks

    I can't get my screen to roll over when I turn phone on the side. It used to work, I might have set something wrong   thanks

    You may have locked the screen. Open Control Center by sliding up with one finger from below the bottom of the home screen. The orientation lock control is at the far right of the top row in Control Center (looks like a lock surrounded by a circular arrow). If it is on, the same icon will be in the menu bar. Also note that not all screens will rotate -- the home screen for example will not.

  • What happens when image count rolls over?

    MY Canon Xsi is about to hit 10,000, and will roll over in the counting. What will happen in Aperture if I am using a referenced master setup? What about if I just change things to a all incorporated database?
    Or, would it be better to start importing with customer names to eliminate duplicates?
    I do have 25,000 shots from an old Pentax, so I already have some duplicates with 3 matches.
    Thanks.

    I love the XSi. Great little camera!
    The counter will restart and the camera will begin writing to a new directory on the memory card. I believe it'll start writing in CANON101 instead of CANON100, or something like that
    A standard naming convention might be a good idea, but it's really up to you.

  • Using a rotary angular encoder to measure period of pendulum

    Hi,
    I'm new to Labview (I hope I've posted this in the correct section) and am trying to measure the period of a physical pendulum. I'm using an Omron rotary angular encoder (E6D-CWZ 2 C) and the SCB-68 NI card. Basically I'm trying to interface my pendulum to the PC in order to analyse the motion.
    I'd appreciate if anyone has any advice or can point me to a tutorial that might help.
    Thanks,
    Sarah

    Hi Sarah,
    Interesting application--I think your best best is to use the counters on the 6024E as follows:
    1.  Configure a Count Edges Task (the E Series cards don't directly support quadrature encoder tasks).
    2.  Use the A output as the edge to count, and the B output as the direction control line.
    3.  Set an initial value such that the bottom of the arc is your "0 reference" (e.g. if you are starting the pendulum 1000 encoder ticks above the bottom of the arc then your initial count should be -1000).
    4.  Every time the counter rolls over it will produce a pulse on its internal output.  This will be every time the pendulum reaches the bottom of the arc.
    5.  You can perform a period measurement using the 2nd counter on the 6024E.  The line that you want to measure will be the other counter's internal output.
    This isn't the most straightforward configuration so you should probably start out by combining shipping examples.  I would start with the following two examples (which can be searched for in the Example Finder by navigating in LabVIEW to Help >> Find Examples...)
    Count Digital Events.vi
    Meas Pulse Width-Buffered-Cont.vi
    I would start out by getting the Count Digital Events example to work so that the value is 0 every time the pendulum reaches the bottom of the arc, then you can try adding in the Meas Pulse Width example to perform the period measurement.
    Best Regards,
    John Passiak

  • Simple Roll over help

    Basically I have a picture of myself... with my head looking at 4 different angles from up to down..
    I attached a screenshot...
    I want the whole flash mapped so that when you mouse is in the upper portion the head is looking up then when you scroll down a little it switches to a lower picture etc...(i know it won't be smooth transitions)
    I don't want this to act as buttons; as in sending you anywhere... just large rollovers... the buttons (Graphics, Vector art etc...) will be there own buttons with roll overs when you get right over them...
    Unless its better to combine... But I want the heads to look no matter where you are in that portion of the flash.... and the directing buttons (graphics, vector art, etc...) Just to have a roll over when you right on top of them
    :::I tried making buttons with 2 layers with the top layer having a big Hit zone but it doesn't work...
    Hope thats not confusing lol
    Thanks
    Stephen
    http://sjcjr.com/Untitled-1.jpg

    Figured it out

  • How do I make a textbox appear in a PDF made in InDesign CC when the cursor rolls over another textbox?

    I'm trying to make a textbox appear in a PDF made in InDesign when the user rolls the cursor over another textbox, and I want it to disappear when the cursor moves off the first textbox. I've tried the following with various setting, and it's just not working for me.
    Display a different button on rollover
    You can create a hot spot in which clicking or mousing over an object displays another object. To do this, create two buttons, hide one of the buttons, and use the Show/Hide Button action to show and hide the target button.
    Create an object to be used as the source button. In the Buttons panel, click the Convert Object To A Button icon.  
    Place the image you want to be used as the target button, and convert it to a button.  
    Select the target image and select Hidden Until Triggered at the bottom of the Buttons panel.  
    The image needs to be hidden in the exported document so that it can be displayed when the source button is moused over or clicked.  
    Select the source button and create two different actions, one to show the target image and a second to hide the target image.  
    If you want the image to appear when the mouse hovers over the source button, use the On Roll Over and On Roll Off events. If you want the image to appear when you click the source button and disappear when you release it, use the On Click and On Release events. In either case, use the Show/Hide Buttons action to display and hide the target button. See Make buttons interactive.   
    Use the Preview panel to test the buttons.  

    Here's more information about what I'm doing.
    1. create text box with a little text
    2. turn it into a button (Button 1)
    3. create another text box with some text
    4. turn this into a button (Button 2)
    5. check "Hidden Until Triggered" for Button 2
    6. For Button 1, select "On Roll Over" for Event
    7. For Button 1, click + to add Action and choose "Show/Hide Buttons and Forms"
    8. For Button 1, change icon next to Button 2 into eyeball (which I assume makes Button 2 visible on roll over).
    9. For Button 1,, select "On Roll Off" for Event
    7. For Button 1, click + to add Action and choose "Show/Hide Buttons and Forms"
    8. For Button 1, change icon next to Button 2 into crossed-out eyeball (which I assume makes Button 2 invisible on roll off).
    8. Export to PDF with modified smallest file size and include bookmarks and hyperlinks and include appearance for interactive elements.
    Both buttons are visible in the PDF, and nothing happens with roll over and off.
    What am I doing wrong?

  • CHANGES STATES WHEN MOUSE ROLL OVER A DIFERENT OBJECT

    Hello, i need to do the explained at the imatge with Muse.
    When the muse ROLL OVER the image, the text buttons at the left column, must change the appearence,To indicate who is the artist of the photo.  the same whit the image 2, and 3 and 4.... you said me that i can change the appearence at the states menu, i know this but i have to chancge the apearence of the text when the mouse ROLL OVER the imatges, not qhen roll over the text ( Thats its normal and easy).... I have to ampliate the x¡zone of effect for rollover
    Thankyou!! Sorry for my english.

    I have replied on your previous thread for same query :
    https://forums.adobe.com/thread/1471464?sr=stream&ru=2394028
    Thanks,
    Sanjit

  • Pb with handCursor when rolling over text embedded in a MC

    Hi,
    I have a little pb when creating movieClip buttons containing
    a textField.
    Indeed when rolling over the button, and precisely rolling
    over the text contained in my button, the handCursor is replaced by
    the normal arrow. How can I prevent that? I mean having the
    handCursor displayed over the whole button, not only outside the
    textField areas?
    If you don't see what I mean, please consider the following
    simple code , you will see that when rolling over "HELLO" the
    handCursor disaoppears :
    import flash.display.MovieClip;
    import flash.text.*;
    var buttonClip=new MovieClip();
    buttonClip.buttonMode=true;
    buttonClip.useHandCursor=true;
    buttonClip.graphics.lineStyle(1,0x000000,100);
    buttonClip.graphics.beginFill(0xaaaaaa,100);
    buttonClip.graphics.drawRect(0,0,200,20);
    buttonClip.graphics.endFill();
    buttonClip.x=50;
    buttonClip.y=50;
    this.addChild(buttonClip);
    var texte=new TextField();
    texte.text="HELLO";
    texte.selectable=false;
    buttonClip.addChild(texte);
    Thanks for your help,
    Pascal

    I am having a similar problem. I was using MX 2004 and the
    hand cursor displayed over the whole movie, even on loaded movies.
    On movies that will be loaded over the base_level are loaded the
    arrow is never displayed, and is always a hand. When the movies are
    viewed separately the arrow changes to hand cursor as it should.
    With the exception of the base movie which is always the hand
    cursor. I did find code for mx2004 to correct this, but it would
    mean that i would need to add code to every instance on the stage
    across 6 loadedMovies, and the base level.
    Does the CS3 document class correct this action? If so, how
    do i find out what code to use.

  • Linked images "jump" when rolled over

    When rolling over an image being viewed on a page in IE/Mozilla, it seems to "jump" if it is linked to a larger version of the same image.  Am guessing it is a setting in Page Properties, but I believe I've changed just about everything with no luck. 
    The actual code of an example is: <td width="250"><div align="center"><a href="http://www.meistersoftware.com/images/tmp_pkg.jpg"><img src="images/tmp_pkg_tn_f8.jpg" width="140" height="101" alt="sc tmp" /></a></div></td>
    Any suggestions? Please be gentle if it's a blatantly obvious error

    Would be glad to but it's not online yet.  Here's the entire <div> Hopefully, it may shed some light -
    <div align="center">
    <table width="575" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td> </td>
    <td colspan="3" ><blockquote>
    <hr align="center" height="2" width="480" />
    </blockquote></td>
    <td> </td>
    </tr>
    <tr>
    <td width="17"> </td>
    <td width="250"><div align="center"><a href="http://www.meistersoftware.com/images/tmp_pkg.jpg"><img src="images/tmp_pkg_tn_f8.jpg" width="140" height="101" alt="sc tmp" /></a></div></td>
    <td width="16"> </td>
    <td width="272"><div align="center"><img src="images/pzl_icon_r21.jpg" width="83" height="83" alt="pzl_icon_l" /> <img src="images/pzl_icon_l45.jpg" width="83" height="83" alt="cryptoquote" /></div></td>
    <td width="20"> </td>
    </tr>
    <tr>
    <td height="15
    "> </td>
    <td><div align="center"><strong style="color: #036; font-size: 18px;"><a href="http://www.meistersoftware.com/t_main.html" style="color: #036; font-size: 21px;">TicketMeister</a></strong><a href="http://www.meistersoftware.com/ticketmeister.html"><span style="font-size: 10px; color: #036;">&copy;</span></a></div></td>
    <td> </td>
    <td><div align="center"><strong style="font-size: 18px; color: #900;"><a href="http://www.meistersoftware.com/z_main.html" style="color: #900; font-size: 21px;">PuzzleMeister</a></strong><a href="http://www.meistersoftware.com/puzzlemeister.html"><span style="font-size: 10px; color: #900;">&copy;</span></a></div></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td height="15
    " style="font-size: 12px"><blockquote>
    <p align="left"> &#8226; Print<strong> Raffle Tickets</strong><br />
    &#8226; Reserved Seating<br />
    &#8226; Consecutive Numbering<br />
    • Chinese Auction Cards</p>
    </blockquote></td>
    <td> </td>
    <td style="font-size: 12px"><blockquote>
    <p align="left">&#8226; Create and Solve Puzzles<br />
    &#8226; <span style="font-weight: bold">Boggle</span>, <span style="font-weight: bold">Jumble</span>, <span style="font-weight: bold">Cryptoquotes</span><br />
    &#8226; All levels of difficulty<br />
    • 200,000+ word dictionary</p>
    </blockquote></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><div align="center"><strong><em style="color: #036"><a href="http://www.meistersoftware.com/products/ticketmeister" style="color: #036">ONLY 29.95!</a></em></strong></div></td>
    <td> </td>
    <td><div align="center"><strong><em style="color: #900"><a href="http://www.meistersoftware.com/products/puzzlemeister" style="color: #900">ONLY 17.50!</a></em></strong></div></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td colspan="3" style="font-size: 12px"><blockquote>
    <hr />
    </blockquote></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td width="250"><div align="center"><a href="http://www.meistersoftware.com/images/bms_pkg.jpg"><img src="images/bms_pkg_tn_f8.jpg" width="125" height="107" alt="sc bms" /></a></div></td>
    <td> </td>
    <td width="272"><div align="center"><a href="http://www.meistersoftware.com/images/pms_pkg.gif"><img src="images/pms_pkg_tn_f8.jpg" width="152" height="115" alt="tmp tn" /></a></div></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><div align="center"><strong style="font-size: 18px; color: #f00;"><a href="http://www.meistersoftware.com/b_main.html" style="color: #F00; font-size: 21px;">BingoMeister</a></strong><a href="http://www.meistersoftware.com/bingomeister.html"><span style="font-size: 10px; color: #f00;">&copy;</span></a></div></td>
    <td> </td>
    <td><div align="center"><strong style="font-size: 18px; color: #060;"><a href="http://www.meistersoftware.com/p_main.html" style="color: #060; font-size: 21px;">PrintMeister</a></strong><a href="http://www.meistersoftware.com/printmeister.html"><span style="font-size: 10px; color: #060;">&copy;</span></a></div></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td style="font-size: 12px"><blockquote>
    <p align="left">&#8226; Print <strong>Bingo Cards</strong><br />
    &#8226; 1-on, 2-on, <em>ANY</em>-on<br />
    &#8226; Numbers, Pictures or Text<br />
    • w/ <strong>Pop-Out Bingo Clipboard</strong></p>
    </blockquote></td>
    <td> </td>
    <td style="font-size: 12px"><blockquote>
    <p align="left">&#8226; <span style="font-weight: bold">Door Hangers</span>, Envelopes<br />
    &#8226; Wallet Calendars, <span style="font-weight: bold">Bookmarks</span><br />
    &#8226; <span style="font-weight: bold">Post Cards</span>, Business Cards<br />
    • Even a<strong> Page Numberer</strong>!</p>
    </blockquote></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><div align="center"><strong><em style="color: #F00"><a href="http://www.meistersoftware.com/products/bingomeister" style="color: #F00">ONLY 24.95!</a></em></strong></div></td>
    <td> </td>
    <td><div align="center"><strong><em style="color: #060"><a href="http://www.meistersoftware.com/products/printmeister" style="color: #060">ONLY 19.95!</a></em></strong></div></td>
    <td> </td>
    </tr>
    <tr>
    <td height="9"> </td>
    <td colspan="3"><hr /></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td colspan="3" style="font-size: 18px; color: #036;"><div align="center">
    <p><strong><a href="http://www.perforatedpaperonline.com"><span style="text-align: center; font-size: 24px;">www.perforatedpaperonline.com</span></a><br />
    </strong><span style="text-align: center; font-size: 14px; color: #000;">(Our sibling site)</span></p>
    </div></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td colspan="3" style="font-size: 18px; color: #036;"><p style="font-size: 14px; color: #000; text-align: center;">We also manufacture<strong> <a href="images/m_paper_supplies.html">blank, pre perforated paper</a></strong> for all of our software.</p>
    <p style="font-size: 14px; color: #000; text-align: center; font-weight: bold;">&#8226; <strong>door hangers    &#8226; raffle tickets</strong>   <strong>&#8226; post cards</strong>   &#8226; <strong>bookmarks</strong><span style="font-size: 12px; color: #000; text-align: left;">    &#8226; </span>bulletins</p></td>
    <td> </td>
    </tr>
    &gt;
    </table>
    </div>

  • Any ways to roll over to a different log file when the current log file big

    How to roll over a log file when it reaches maximum to a different log file?
    any ways of doing this??????

    More info in the new owners....
    http://www.oracle.com/technology/pub/articles/hunter_logging.html
    And more!!!!! here to build a configuration file with filehandler properly setted to an specified size
    http://www.linuxtopia.org/online_books/programming_books/thinking_in_java/TIJ317_021.htm

  • Craigslist pictures do not select when rolling over

    Used to be that when a craigslist ad had multiple pictures, rolling over the thumbnails would load that picture in the larger space above. Now nothing happens and if I click the thumbnail the picture loads but only the picture.
    thinking it is some add on I've recently added but I can't determine which add ons have been recently added/enables.

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Why do my finder links expand at the bottom of the screen when I roll over them?

    I turned my computer back on and now my finder buttons on my bottom menu bar (where iTunes, safari etc. is) expand to enlargen each app when I roll over them. How did this happen? How do I stop it?
    Thanks
    Lucas

    Lucas,
    Open System Preferences>Dock...and make the appropriate selections to match your Dock preferences.

  • When i roll over a photo i get a box ..save, copy, print, info, folder

    all of a sudden i have a new version of firefox now when i roll over a photo i get a small pop up, asking save, copy, print, info, folder, it is annoying

    Hi, Shilo, could you provide me a screenshot of it?

  • When I enter time machine (on Time Capsule) i see the stack of screen shots and the time line. However, when I roll over the mouse pointer, the time line does not activate. The cancel button does not get me out of the app: have to alt cmd esc. Ideas?

    When I enter time machine (on Time Capsule) i see the stack of screen shots and the time line. However, when I roll over the mouse pointer, the time line does not activate. The cancel button does not get me out of the app: have to alt+cmd+esc. Ideas?

    I have never seen it but then I run SL which is much more reliable than Lion..
    See
    http://pondini.org/TM/E4.html
    Check the master guru of all TM problems.

Maybe you are looking for

  • What hardware do I need to play music from iPad?

    Hi all! I've seen this done, but never asked how it's done! This may be a simple question for almost all of you, but I don't even know how to phrase it to look up via a web search! I just ordered an iPad (4th generation) and one of the things I would

  • Error code = -200462

    I am currently using a CVI routine to do acquisition and generation.  I am using a 9172 chassis and 9205 module for voltage acquisition and 9264 module for voltage generation. I seem to run into an error during the startup of my task in the StartDAQ

  • Mapping User Language vom LDAP to Portal Users

    Hi, Anyone knows how to map the user language available in an attribut from LDAP to the portal user language? (Working on NW04) Regards, Martin

  • Install Java Add-in for ABAP BW 3.5

    I have a System on which we have 3 SAP Instances 2 Instances of SAP R/3 4.6D 1 instance of SAP BW 3.5 I want to add a New Java Instance for BW and it is giving error during the installtion that Collation needs to be CP850_BIN2 I will appreciate if an

  • Why can't I share my music across user accounts on my home  PC?

    Hi I'm having a frustrating time trying to get Itunes to share music files with my wife's user account on my computer. We both use Itunes, but we have our music stored individually in our 'My documents' folders, leading to duplicate songs on the hard