Is there a way to reverse the active/inactive portions of the duty cycle?

I'm trying to sync the start times for an AI operation and a buffered encoder read. These two operations happen at different sampling rates and different sampling intervals, so I can't just port the AI scanclock over to the gates of the encoder counters.
My approach is to use three counters: one to generate a triggered pulse that has a width equal to the total sampling time (the trigger for this pulse comes from the AI start). The OUT from this counter then feeds the GATE for a counter that generates a pulse train while the GATE is high. Therefore, it generates a finite pulse train for the desired acquistion time. The out from this second counter goes to the GATEs of the encoder counters to
generate the DMA transfers.
The problem is that the pulse train always puts the active portion of the duty cycle at the end of the period, so the DMA transfer happens at a delay of T/2 relative to the start of the AI acquisition.
Is there a way to put the active portion of the duty cycle at the start of the period? i.e., when the gate goes high, I want the pulse train to start high then go low at the end of the duty cycle.
Thanks,
rgames

The simplest seeming answer would often be to use 'Set Attribute.vi' to change the counter's output polarity. Then the counter will be at a high state during the delay and low during the pulse. However, that would also put it in the high state while armed and waiting for the trigger, and again after the pulse completes. It doesn't seem like that would work for you.
A near-miss idea would be to leave the polarity alone and simply specify the shortest possible delay. Use the internal max timebase as a source and set "Pulse Spec 1" == 2. On a 660x device, that'll only delay you by 25 nsec.
In fact, you may be able to change that near-miss into a perfect hit. The short delay may or may not change the timing of the DMA transfers relative to the trigger, depending on exactly how the "generate pulse train while gate is high" function is implemented. Here are some ways I can imagine:
A. The "pulse while gate is high" counter is always cycling internally. An output signal is always being generated on the TIO chip and is always being AND'ed with the state of the Gate signal coming in. The result of the AND is sent to the actual IO pin.
B. Similar to (A), but the AND'ing is done only when there's a state transition and the result is latched until the next state transition.
C. Internally, the pulse train counter always *wants* to run, but its Source is always being AND'ed with the Gate signal. Then, as far as the pulse train counter is concerned, time is frozen when the Gate is in the inactive state. This is how I *think* I remember it working.
In cases (A) and (B), the timing of the DMA transfers wouldn't be affected except for the rare case where the trigger event occurred within 25 nsec of a "scheduled" transfer. In case (C), you can compensate by changing the duty cycle of the "pulse while Gate is high" counter. Simply subtract 2 from "Pulse Spec 1" and add 2 to "Pulse Spec 2". Then (assuming its polarity is low state delay, high state pulse) make sure the encoder counter Gate is set to do DMA transfers on the low-->high transition.
Final note: if timing synchronization between analog and encoder is really important, there may be a better way. As I recall, the AI start signal does not have deterministic timing relative to the actual A/D conversions. You might instead have two counters of the 660x set to "pulse while Gate is high" and set up the other one to be the AI scan clock. Then you'd be more fully in control of their time==0 marks.

Similar Messages

  • I bought about 4 books at once on amazon for my iPad kindle and then realise that I'm not getting round to reading any of them.  I've gone into two books but two I haven't.  Is there a way of reversing the order and getting my money back?

    Hi I bought too many books at once through amazon for my iPad kindle.  Havent read any of them and Two I haven't actually gone in to, they have a banner across front which says 'new'is there a way of reversing the transaction either with amazon kindle or the iPad kindle application so I cane my money back?

    You should ask Amazon about their returns policy or check the Amazon website. As that's who you bought them from they would be the best people to answer.

  • I backed up my iphone 4 before updating to my iphone 5 and it restored to default settings. As a result, i have lost all my photos. Is there ant way to reverse the back up as I have a 2 month old baby and desperatly want to retrieve my photos :-(

    I backed up my iphone 4 before updating to my iphone 5 and it restored to default settings. As a result, I have lost all my photos. Is there any way to reverse the back up as I have a 2 month old baby and desperatly want to retrieve my photos :-(

    Pictures are designed to be copied off the device regularly as would be done with any digital camera.  There is no logical reason why anyone would fail to do this with supposedly important pictures.
    If a recent backup exists, it is also possible to restore the device from the most recent backup, this may restore pictures to the device.  If it does, COPY THEM OFF THE DEVICE IMMEDIATELY for safekeeping.

  • If I use a sound clip in the multi-track editor multiple times; is there a way to reverse the clip w

    If I use a sound clip in the multi-track editor multiple times; is there a way to reverse the clip without change all the instances where the clip was used in the same multi-track session?
    I'm having to copy the clip rename it as clipreverses.wav then bring it back into audition to use it.
    Sony Vagas you can flip the same clip on a different track with a right click and not affect any other copies of that clip.

    Not that I'm aware of, no. You can easily make a unique copy of a clip (right-click on it, and you get it already saved for you), and I'd say that having this was more flexible in one way, at least, as you could then time-stretch it if you wanted to, without altering all other instances of it. Not saying that there wouldn't be any point in having a reverse-play option - I can see instances where it might be useful. It's just that it's not exactly difficult to achieve this anyway, which is probably why I don't ever recall a request for it!

  • Is there any way to reverse the "swipe to switch between fullscreen apps" controls?

    I feel like the "swipe left to go to the app to the left" is actually counter-intuitive, especially when they were thinking about a touchscreen when designing this OS. The scrolling, though most people aren't used to it on a computer, makes sense because you move the page in the direction as if you were moving a physical page. The switching between fullscreen apps is the opposite and isn't natural for me, especially since I have been using an iPhone and iPad for a couple years now. Is there any way of reversing this control? If not, I think they should do the same thing that they did with the "natural" scrolling and have a checkbox to give you the option of either way.

    I didn't see anything in the trackpad preferences as far as direction of the swipe. If anyone else can find it, I would love to be able to reverse it.

  • HT1373 I purchased this product for my Ipad HD and then returned my ipad for a Nexus 10.  Is there any way to reverse the charges or move the app to my Nexus 10?

    I purchased an IPad HD and downloaded Microsoft Office.  Then I returned the IPad and purchased a Nexus 10.  Is there any way to dowload the Microsoft Office App to my Nexus 10 without paying again?

    No.
    The iPad is a superior product - why go to a Nexus?
    MJ

  • Is there a way to reverse the Function (Fn) Keys on the ThinkPad T540p and Windwos 8.1?

    I recently purchased an I ThinkPad T540p, and install there Windows 8.1 Enterpirse.
    Then I download and install all drivers from lenovo site including upgrade BIOS to version 2.07
    Then I have noticed that the default for  the keys where  F1 and F2, etc. usually are, are now the mute and volume buttons.  To access the F1, F2....F12 keys, you now have to press Fn + your desired F key.  
    Is it possible to reverse the Function keys?  I would much rather press Fn + F1 to mute than have to press press Fn + F1 to access F1.   
    Thanks you in advance.
    Solved!
    Go to Solution.

    Hi,
    Welcome to Lenovo Community Forums!
    Check in BIOS -> config -> Keyboard if there is an option to switch between default and legacy mode.
    If you don’t find that option, you may try the Fn+esc combination that changes the function keys to legacy mode, but when the computer reboots, it might reset back to a default mode and you have to use Fn+esc again.
    Hope this helps!
    Best regards,
    Mithun.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Is there a way to reverse the order of incoming mail in the new iPad?

    I want to reverse the order of incoming mail on my new iPad.    I want the oldest on top.  I can't seem to find where or even if I can do this.  Anyone know for sure?  Thanks!

    The Mail app only supports having the most recent at the top. You could see if any third-party email apps support it, or access your account via a browser (you can create a Safari shortcut on your iPad's homescreen for your login page).

  • Is there a way to reverse the direction of video using audio in Motion 3?

    Hello all!
    Brian here. I have a question. I'm looking to have some music I've written in Logic, to control the actual playback direction of some video footage I've shot. A more visual way of putting this would be like "video scratching". As the audio has scratching in it, I'd like the video clip to reflect the scratching visually. I was wondering if there's a way in Motion 3 to do this. I've looked around, and asked a few people, and I've not gotten any further than having the video's scale (among other things) to bop to the music. Although that's also fun, it's not what I want. If you need more of a visual, check this link:
    DJ QBert:
    http://www.youtube.com/watch?v=UuL8I0hpkQ4
    Watch the needles move around as you hear the scratches, as well as some of the other graphics. It's this effect I'm looking for.
    I hope to hear from you all soon!
    Sincerely,
    Brian.

    Try using the Audio parameter behavior applied to the Speed of the clip, that should do it.

  • Is there a way to reverse the order of a finder column?

    I would like to reverse just one collumn instead of A>Z, Z>A. I have file numbers that I would rather have show up at the top. Does anyone know a way to do this?  Thanks!

    In List view, in the Name column, simply toggle view by clicking on the arrow.
    The Arrange icon in the Toolbar is also handy for selecting sort options. Try Kind to sort as files, folders etc.

  • Is there a way to reverse the Function (Fn) Keys on the ThinkPad T440p

    Hi, Do you have a solution for the T440p please.
    Im really confused how this could be allowed to happen!!!
    Function keys have been around for as long as i can remember and make up the basic setup of a pc/laptop.
    Why on earth would someone think its a good idea to swap the less used functions keys around!!
    I mean even the simple ALT + F4 doesnt close my screens, it just turns the microphone on and off!?!?! (This sequence of keys have always closed application and assisted in faster shutdowns etc...  and thats just a very simple example.)
    If it wasnt the fact that this is a Work Laptop i would swap it if there is no fix.
    I would like a fix and i would also like an explanation on the reasons for this change, only because im curious on what factors came into play to make that decision.
    When making these types of changes you MUST have the input from someone that uses a PC otherwise you are only trying to please the people that dont know how to use a pc... you need to stick to the market and go with whats most beneficial for a working setup for business.... for my job, this key change is simply unacceptable as it has screwed up all the normal methods of accessing certain fields, closing apps, plus other shortcuts etc.
    I apologise for the moaning email but ive just got this new laptop and have a lot of work to do so its just really irritating when the buttons im presing is giving me the unexpected outcome.
    Appreciate your help in this matter.
    Moved to correct board and edited Subject line to reflect content.
    Solved!
    Go to Solution.

    Hi Cff7dxp,
    I am glad to hear that your issue has been resolved from the provided troubleshooting steps. Please feel free to post in Lenovo Community Forums if you have any further queries!
    Did someone help you today? Press the star on the left to thank them with a Kudo’s!
    Cheers!
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Is there a way to reverse the newest update?

    I'm no longer able to print from my wifi printer....

    try this site
    http://welcome.solutions.brother.com/bsc/public/us/us_ot/en/dlf/download_top.htm l?reg=us&c=us_ot&lang=en&prod=hl2280dw_us
    be sure to select Mac OS 10.9 for download

  • Any way to reverse the recent 3.0 update?

    Is there any way to reverse the recent update? My contacts via MS exchange appear and disappear on a random basis making the iPhone effectively useless as a normal phone. Would far prefer the non-updated iPhone that actually works. Any suggestions for backdating like Time Machine on the Macs?
    Thanks!

    Since you installed 3.0, have you tried turning contacts off for over the air syncing with your Exchange account on your iPhone followed by turning contacts back on?
    And/or have you tried deleting and recreating your Exchange account on your iPhone?

  • In Mail, is there a way to print the list of mail activity in a folder without actually printing each email?

    In Mail, is there a way to print the list of mail activity in a folder without actually printing each email?
    Thanks to all.

    Actually, I noticed in "More Like This" questions similar to mine.  One of the suggestions worked perfectly.
    Command Shift 4 turns the arrow into a target scope.  Use it to take a screen shot of the area you want printed.  Thanks to all.

  • HT5129 I had photos from MobileMe organized into different events.  When iPhoto made a MobileMe event, it took all of those photos out of the other events and put them all together in the new "from MobileMe" event.  Is there any way to reverse this?

    I had photos from MobileMe organized into different events.  When iPhoto made a MobileMe event (when MobileMe ended), it took all of those photos out of the other events and put them all together in the new "from MobileMe" event.  Is there any way to reverse this?

    Only to load your backup from before downloading the MM photos
    LN

Maybe you are looking for