Random roll over with CO Pulse Ticks

I'm using the 6036E with a random signal (linear encoder) to measure ticks and trigger analog samples.  I have it setup to count 2 rising/falling edges and have the analog input trigger off of the counter's output.
The counter is setup for the count pulses.  The input is coming in on PFI0.  The internal output of counter0 is being used for the analog acquisition.
This works fine except randomly the counter quits working properly.  I setup a while look to look at the counter value which should go between 0-1 in this case (or 0-xxx) when I set the count its counting to a larger # than 2.  This seems to work for some random period of time.  After this, the counter value gets reset to some absurdly large value and hence quits generating pulses.
Has anyone experienced this, and if so what was the solution?
Thanks,
Michael

Michael,
Are you using Traditional NI-DAQ (Legacy), or NI-DAQmx? How is it that you are reading the value of the counter? There are certain situations where a read could read off invalid data from one of the counter's secondary registers without disrupting the actual count used in the pulse generation, but these are very rare. It sounds like you are trying to perform continuous pulse train
generation, with 2 high ticks and 2 low ticks of your source on PFI0.
Is that correct? If so, could you try out the DAQmx shipping example called "Gen Dig Pulse Train-Continuous.vi", available in the LabVIEW Example Finder (Help->Find Examples). In order to use "ticks" instead of specifying a desired frequency, you will have to change the "DAQmx Create Channel" polymorphic instance to "Ticks." Also, to set the source input to PFI0, you will need to set the "Source of Ticks" in the same VI. Please post back if you have any questions, or if I misunderstood your problem.
Hope this helps,
Ryan Verret
Product Marketing Engineer
Signal Generators
National Instruments

Similar Messages

  • Full screen flicker when roll over with trackpad

    Whenever I start a movie this annoying light grey flashing starts around the screen, once the pause menu disapeers it stops, its really bothersome because it does it with closed captioning and whenever I try the pause the movie, any ideas to fix this problem would be great!

    It has nothing to do with Apple computers. It has to do with aspect ratio. We are moving away from the 4:3 of the old CRT monitors & televisions. Go buy a widescreen monitor for your PC & the "problem" will be the same.
    My widescreen TV has the ability (as do most) to use the entire screen, but the cost is that it stretches & cuts off some of the image. This is not too bad when watching TV or video, but playing a game this way would be maddening!
    Some newer games can be set to use a widescreen aspect ratio, and there are "hacks" available for some others. I suggest looking for a forum on the games you play most & see if people there have a definitive answer for you.
    Also, look real close at the settings & play with them. The aspect ratio you are looking for is 16:10. Just take a look at this article on Wikipedia. I assure you it is not "Apple" that is creating this mess!
    Steve
    24" iMac 2.33GHz C2D 2gb RAM; 13" MacBook 2GHz CD 1gb RAM    Mac OS X (10.4.8)  

  • 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.

  • Having problems with swap image (roll over effect)

    I am trying to do a roll over state (swap image) for a linked item on my mock up. I've done this for other pages in the same file, but for some reason on another page, when I build the second state, insert the slice, and  create the swap image on the first state, it previews in the browser with just a white screen and the section that I sliced. How come it is showing a white page in lieu of my entire mock up with the roll over effect?

    I am trying to do a roll over state (swap image) for a linked item on my mock up. I've done this for other pages in the same file, but for some reason on another page, when I build the second state, insert the slice, and  create the swap image on the first state, it previews in the browser with just a white screen and the section that I sliced. How come it is showing a white page in lieu of my entire mock up with the roll over effect?

  • Button roll-over animation with dynamic text

    So I have a button I want to be able to use over and over. When you roll over the button, it does an animation and has a dynamic text box in it. Ovbiously im trying to make each text different for each button. What would be the smartest way to go about this? Thanks,
    Dan

    create a movieclip, put a stop() in frame one and add your "up" graphics, textfield etc put everything in its own layer.  create another keyframe on that timeline and label the frame "over" and add new keyframes only on the layers that will change.  ie, if the textfield doesn't change, don't put a keyframe on its layer.  likewise, for a "down" frame, if you want one.
    use instance names for everything in the movieclip that you want to control with actionscript.  ie, your textfield(s) will need instance name(s).  i usually use one textfield named tf.
    then use:
    btn1.tf.text = "test"
    btn1.addEventListener(MouseEvent.ROLL_OVER,overF);
    btn1.addEventListener(MouseEvent.ROLL_OUT,outF);
    btn1.addEventListener(MouseEvent.MOUSE_DOWN,downF);
    function overF(e:Event){
    // if you have another textfield here assign its text
    // likewise for other objects you want to change
    e.currentTarget.gotoAndStop("over");
    function outF(e:Event){
    // if you changed textfields in the other frames, reassign tf.text here
    e.currentTarget.gotoAndStop(1);
    function downF(e:Event){
    // if you have another textfield here assign its text
    e.currentTarget.gotoAndStop("down");

  • How to roll over deposit at notice with zero interest rate ?

    Hello All,
    There is a requirement from client that they want to roll over deposit at notice with zero interest rate (Tcode TM14).
    However when we enter zero in interest percentage rate field, system still ask us to enter the interest rate (Error message number T4034) being a mandatory field.
    Following are additional details:
    Product Type   = 52B
    Transactn Type = 100
    Condition Type = 1200
    Activity =  801
    Do you know how to roll over a deposit at notice with zero interest rate in TM14?
    Is it possible to create new condition type which will allow zero interest for a deposit at notice at the time of roll over?
    Thanks,
    Vaishali

    I am not able to check it, but my thoughts are - mandatory field status is a problem.
    It is possible to enter zero interest condition - just enter new condition starting from new date and leave percentage field empty or enter zero value ( zero value = empty field). But the problem is that percentage field is mandatory as you mentioned.
    Possible solution: switch off mandatory status and create implementation of BADI to check if field is filled (for example  Check entry of deal's data.) and if not - issue an error that there will be zero condition.

  • Is it possible to have a menu with just one button highlight when someone rolls over it?

    is it possible to have a menu with just one button highlight when someone rolls over it? if so how would you do it as i tried doing an invissble button but it didn't work?

    Get yourself a copy of Total Training for Encore DVD 1.5 by Daniel Brown.  This exact scenerio was explained in section 4) Building Menu and
    section 7) Advanced techniques.
    I refer to Dan's video time & time again.  It's from 2004 but he's still right on the mark regarding the generation of every aspect of creating a DVD.
    They now offer their entire online.
    www.totaltraining.com
    Good luck

  • Menu widget roll-over stopped working with Muse 1.0 in IE 8, works in IE 9

    I published a site developed with Muse beta last Friday and everything worked perfectly.
    Then Monday morning I got the notice to upgrade to Muse 1.0; which I did.  I made some minor wording changes to text and then republished the site.  (download HTML, published via FTP)
    When I checked the site in Preview on a Mac - perfect.
    When I checked the Site in Safari on Mac - Perfect
    When I checked the site on Chrome in Windows 7 - perfect
    When I checked the site in IE 9 on Windows 7 - perfect
    When I checked the site in IE 8 on Windows 7 - no roll-over effect to see the sub-menus
    All this worked on Friday when I was still using Muse Beta.  did something change regarding IE 8 support in Muse 1.0???  I saw no mention of this if it did.
    Thanks in advance.
    Jeff

    Thanks for posting.
    Please provide us the URL of the page so that we can investigate this issue.
    Kind Regards
    Aishvarya Rastogi

  • Exporting with alpha for html roll over

    I am doing some animations for use on a website. so that when someone rolls over a particular element it would play a 3secong video of a Jack popping out of his box.
    The video will be uploaded to the server space specified for the website.
    That is the best way/format to export this animation?
    Are there thisng other than resolution to consider?

    Use flash. Render an h.264 and use flash to embed the movie. Any media player is going to give you a player window.
    To make it mobile compatible, set your comp's frame rate to something like 6 or 10, make the comp 2X the size of your roll over to accommodate high rez displays, export an animation codec QuickTime with an alpha channel, bring the movie into Photoshop and save an animated gif from the movie. Much easier implementation too. Just use the gif as a roll over image.

  • Do we get roll over minutes with...

    Do we get roll over minutes with with the iPhone plan? If so I don't need the $79.95 plan..hehe.

    Check AT&T's fine print, and don't get hit with extra charges that first month because you think you have minutes rolled over-
    "Rollover Minutes: Rollover Minutes accumulate and expire through 12 rolling bill periods. Bill Period 1 (activation) unused Anytime Minutes will not carry over. Bill Period 2 unused Anytime Minutes will begin to carry over. Rollover Minutes accumulated starting with Bill Period 2 will expire each bill period as they reach a 12 bill period age. Rollover Minutes will also expire immediately upon default or if customer changes to a non-Rollover plan. If you change from one rollover plan to another rollover plan, any accumulated Rollover Minutes in excess of the new plan's number of monthly Anytime Minutes will expire upon such change. If you migrate a single line to a FamilyTalk plan, or should a subscriber join a FamilyTalk plan for which your line is the primary line, any accumulated Rollover Minutes for all lines included in the new FamilyTalk group's Rollover Minutes in excess of the monthly Anytime Minutes for such group shall expire upon such change. Rollover Minutes are not redeemable for cash or credit and are not transferable. Night and Weekend and Mobile to Mobile Minutes do not carry over."

  • Much of my text looks fuzzy until I roll over it with my mouse

    much of the text looks out of focus until i roll over it with my mouse, then it is clearly readable

    This usually occurs because you're printing a photo in an Aspect Ratio different from the actual shot. The Aspect Ratio is the shape of the photo, expressed as the length x breadth.
    So, if you have - for instance - a 4:3 shot and try print that at  4:6 you will have issues.

  • Making Movies play with Roll Over

    Does anyone know how to make a movie roll over button, that
    will start and stop were you left off. here are some examples:
    http://www.fabchannel.com
    http://www.diddy.com/diddy.php
    The buttons are at the bottom.
    Thanks so much,
    GL

    it will basically pause the movie on rollOut and resume on
    rollOver.
    so YES, it will start and play from where it has
    stopped

  • How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)

    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    3° Ive created buttons linking pages..
    - "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'
    - what should i do?
    5° Once i export it into Swf. how how can i visualize it? or put it online?
    Thank you for your time.

    stlbbl4u wrote:
    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    You should setup Object Styles - these can also include Paragarph Styles that can be triggered when the Style is selected.
    http://help.adobe.com/en_US/indesign/cs/using/WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    I'm not sure what you mean - I don't do files with Animations
    3° Ive created buttons linking pages..- "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    Does it work properly when you export it to the finished file?
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'- what should i do?
    InDesign won't link directly to youtube videos. I think your best bet would be to use Downloader to download the video and embed them directly in Indesign.
    5° Once i export it into Swf. how how can i visualize it? or put it online? 
    Thank you for your time.
    You can look up how to embed a SWF file into your HTML - but it depends what you mean by "online" there's a dozen ways to get a file "online".

  • On roll over play sound

    I want a sound to play when a movie clip rolls over an other movie clip instance. How do I tackle it?

    var tl:MovieClip = this;
    stop ();
    var buzz_snd:Sound=new Sound(sun_mc);
    buzz_snd.attachSound ("buzz_id");
    var distance:Number = 10;
    var keyListener:Object = new Object ();
    keyListener.onKeyDown = function ()
    if (Key.isDown (Key.LEFT))
    sun_mc._x = Math.max (sun_mc._x - distance, 0);
    //trace ("move left");
    else if (Key.isDown (Key.RIGHT))
    sun_mc._x = Math.min (sun_mc._x + distance, 575);
    //trace ("move right");
    else if (Key.isDown (Key.UP))
    sun_mc._y = Math.max (sun_mc._y - distance, 0);
    //trace ("move up");
    else if (Key.isDown (Key.DOWN))
    sun_mc._y = Math.min (sun_mc._y + distance, 570);
    //trace ("move down");
    //delete the sun with the cloud  
    for (var i = 1; i <= 6; i++)
    if (sun_mc.hitTest (tl["cloud_mc" + i]))
    trace ("the sun hit the cloud");
    //sun_mc's depth is less than 0, swap into
    //an unoccupied removeable depth
    sun_mc.swapDepths (1000000);
    sun_mc.removeMovieClip ();
    //delete an instance of the star with the sun  
    for (var i = 1; i <= 6; i++)
    if (sun_mc.hitTest (tl["star_mc" + i]))
    buzz_snd.start ();
    trace ("the sun has hit the star_mc movieClip");
    star_mc.swapDepths (1000000);
    tl["star_mc" + i].removeMovieClip ();
    Key.addListener (keyListener);
    // This code duplicates and randomly positions new instances
    //of the movieClip star_mc
    for (var i = 1; i <= 6; i++)
    duplicateMovieClip ("cloud_mc", "cloud_mc" + i, i + 6);
    _root["cloud_mc" + i]._x = 600 * Math.random ();
    _root["cloud_mc" + i]._y = 200 * Math.random ();
    for (var i = 1; i <= 6; i++)
    duplicateMovieClip ("star_mc", "star_mc" + i, i);
    _root["star_mc" + i]._x = 600 * Math.random ();
    _root["star_mc" + i]._y = 200 * Math.random ();
    var buzz_snd:Sound = new Sound (this);
    keyListener.onKeyDown = function ()
    trace ("button working");
    buzz_snd.attachSound ("buzz_id");
    buzz_snd.start ();

  • 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.

Maybe you are looking for