DMA transfer on Interupt from Counter on NI6602

I try to use DMA transfer on Interupt from Counters on the NI6602
In addition to the programm there are some external input/outputs on the NI 6602 Card connected:
Most important are:
Counter 0 is working as an A,B,Z X4 Encoder, so the value represents the position of a antenna, and is reseted after every turn around.
Well this whole thing is in hardware counting, so it should be ok.
I need to get the value of the encoder on specific places of the antenna. Allways when, i trigger the transmitter of the radarsystem with a (gated) PRF-Signal generated by counter 2 on the NI 6602.
So i give this signal as gate into counter 1.
On counter 1 i activate the DMA and DMA_INT, and also the global interrupt r
egister.
I also create an array, to store encoder data in it with the ISR, just to avoid some direct printf.
However i print the results later.
So this results are looking like once the interupt has been detected, it will not detect any new one, because just the same data is there till the encoder changes.
So one question is, how to reset the interupt, so a new one will be recognized?
I will have about 3000 Interupts per second.
source is attached
Thanks a lot
Mario Behn
Attachments:
main.cpp ‏15 KB

dear Steven_T:
        the registers are In my enclosure ,if you have some ideas,please reply me  first time.thank you !
Attachments:
PCI6602.pdf ‏818 KB

Similar Messages

  • How to generate an Interupt for DMA transfer from Counter on NI-PCI-6602

    dear guys:
          how to generate an Interupt for DMA transfer from Counter on NI-PCI-6602,and I have set the DMA and DMA_INT, and also the global interrupt register.
    but there is no Interupt generated in the Interupt callback function.And when I have set the DMA_INT and global interrupt register ,and then read the relevant register,the relevant bit is also 0.
         I suspect there is an Interupt register contral, like the MITE, you must write the value to 0xc4 for opening .
         there is some codes In my enclosure .What can I do?
    Attachments:
    TEST.C ‏21 KB

    dear Steven_T:
            the registers are In my enclosure ,if you have some ideas,please reply me  first time.thank you !
    Attachments:
    PCI6602.pdf ‏818 KB

  • DMA transfer rate for PCI-6602 counter/timer

    I'm strongly interested in raising the DMA transfer rate between the PCI-6602 counter and computer. At the moment, I've got a Pen-4 2.4GHz operating under Win98. I have to move an 80 Megaword array at an ~5 MHz speed. So far, I've been able to reach just 2 MHz. Would it be possible? What is the battleneck here - the soft- or hardware?

    Hello,
    I think the bottleneck you are seeing here is a limitation of the dma transfer capabilities that is dependant on the bus of your PC and not your 6602 card. Here is a link of a knowledgebase that you could try to use to see if that would improve your transfer rates. I still doubt you will be able to achieve approximately 5MHz.
    http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a100753500/1b64310fae9007c086256a1d006d9bbf?OpenDocument
    Regards,
    Steven B.

  • MHDDK with Visa: event when DMA transfer complete?

    We are using devices like PXIe-6363, PCIe-6321 depending on requirements and these are dealt with using the MHDDK with Visa backend on Windows (I hope that is the correct terminology).
    All I/O, both analog and digital simultaneously, is done using DMA transfers using the standard MHDDK classes for doing so. This all works without problems.
    One last improvement is I'd like to be notified using a callback/event system when a new block of data is ready: currently I'm just polling the input DMA's available number of bytes in a continuous loop with no sleep() in order to be able to process data as soon as it's ready. Works, but keeps one cpu busy the whole time.
    I didn't see any way to use callbacks using the MHDDK which makes sense since it's purely based on register I/O if I understand it correctly.
    However I noticed Visa has viInstallHandler, viEnableEvent and the likes. I went through some documentation on the event types but admit this is over my head and I have no idea where to start.
    Could anyone point me in the right direction?
    First question is if what I'm asking for is possible? Second I think I just have to call viInstallHandler for the correct event type, then figure out if the event is for an input DMA transfer from PXI? Using viGetAttribute somehow?
    Thanks in advance!

    You'll have better luck posting to the ddk board - http://forums.ni.com/t5/Driver-Development-Kit-DDK/bd-p/90

  • Transfer of account from Sun forums to Oracle

    Could anybody advise as to whom to contact to transfer ones record from the Sun forums to the present oracle forums. I have already posted several threads but to no avail. Is it expected that I start from scratch after bein a member of sun forums for over 10 years with around 5000 posts?
    In case anybody knows of any contact person please advise.

    I had added this to the relevant thread in the moderators' forum on 4 Oct, 2010
    what happened to my stats
    kilyas, 3,390 posts
    http://forums.oracle.com/forums/profile.jspa?userID=797126
    http://forums.sun.com/profile.jspa?userID=35090
    At least two other members mentioned in that thread lost their post count/history: BoBear(1,179) and tschodt(5,653)
    In case anybody knows of any contact person please advise.
    Re: forums.sun.com migration issues
    db

  • How can i transfer my music from one account to another on a different computer?

    So i have an itunes account on dell laptop and i share that account with other famliy members. I recently bought a mac pro and wanted to create a new account that way i can use icloud, is there any possible way to transfer everything from my old library to my new one or will i lose everything i had on my phone and ipods? Or is it possible to have one account but multiple icloud accounts?

    lisafromwindermere wrote:
    I want to start my own account separate from my parents. Can I transfer my music from one account to another? If so, how?
    Lisa,
    Just get copies of the song files and add them to your iTunes library.  With the exception of any DRM-protected files (purchased before mid-2009 and never upgraded) they will play fine, even though they are technically associated with the original account.

  • Transfer cost price from free of charge item to main item but not for VPRS

    Hi,
    I want to transfer cost price from free of charge item to main item but not for VPRS but for a new Z contidion type.
    For CO-PA proposes. Can you help me with This?
    Catarina Alves

    hi,
    transfer of cost from sub item to main item is configured in the delivery to billing copy control for the main item. go to VTFL  > select the required item cateogry > here at the bottom you will find a check box Cummulate cost. Tick it.
    Not really what you meant COPA purposes. But the pricing conditions are mapped to COPA value fields at KE4I transaction.
    regards
    sadhu kishore

  • How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so with my Iphone 4s but not with my Iphone 5

    How do I transfer photos/videos from my Iphone 5 to my Macbook Air. I can do so using my Iphone 4s but not with my Iphone 5

    See this User Hint: https://discussions.apple.com/docs/DOC-3141

  • How do I transfer a rental from my iphone 5 to my laptop??

    How do I transfer a rental from my iphone 5 to my laptop?

    Sorry, but you cannot. If you rent a movie or show on your iPhone, you can only watch it on your iPhone. If you want to watch the movie/show on your laptop, you'll have to rent it again.
    Regards.

  • How do I transfer purchased songs from my iphone 4g to my macbook pc?

    How do I transfer purchased songs from my iphone 4g to my macbook pc music library in itunes?

    Use the Transfer Purchases command in the iTunes File menu.
    (58188)

  • How can I transfer Voice Memos from my iPhone to my computer?

    Dear Iphone users,
    I have a very nice Iphone. I know how to transfer the pictures on my Iphone to my computer but I do not know how to transfer my "audios" (from the "dictaphone" function in French). How can I do that ?
    Thank you very much

    iTunes automatically syncs voice memos to your iTunes library when you connect iPhone to your computer. This lets you listen to voice memos on your computer and provides a backup if you delete them from iPhone.
    Voice memos are synced to the Voice Memos playlist. iTunes creates the playlist if it doesn’t exist. When you sync voice memos to iTunes, they remain in the Voice Memos application until you delete them. If you delete a voice memo on iPhone, it isn’t deleted from the Voice Memos playlist in iTunes. However, if you delete a voice memo from iTunes, it is deleted from iPhone the next time you sync with iTunes.
    You can sync the iTunes Voice Memos playlist to the iPod application on iPhone using the Music pane in iTunes.
    Sync the Voice Memos playlist to iPhone:
    1. Connect iPhone to your computer.
    2. In iTunes, select iPhone in the sidebar.
    3. Select the Music tab.
    4. Select the “Include voice memos” checkbox and click Apply.

  • How do I transfer voice memos from my iPhone to iTunes?

    How do I transfer voice memos from my iPhone5 to iTunes?

    In the Sync settings area of iTunes when the phone is connected, you check the Music area, and check off Voice Memos too. I'm not sure right now what the exact verbiage is but it is where you check off what music you want to sync.

  • How do you transfer voice memos from your phone to your macbook? I don't want voice memos from my computer to go to my phone. It's so easy with other PC's.

    how do you transfer voice memos from your phone to your macbook? I don't want voice memos from my computer to go to my phone. It's so easy with other PC's.

    Hi King Arthur 2000,
    Voice memos can be shared back to a computer in a number of different ways, described in this article -
    Share a voice memo - Voice Memos - iPhone Basics - Apple Support
    http://support.apple.com/kb/TI227
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How do you transfer voice memos from your phone to computer

    How do you transfer voice memos from your phone to computer

    Is it possible to transfer a voice memo to my computer and then convert that to text that can be printed?
    Here is my problem. I study harbor seals and have always taken hand written notes that then must be typed into the computer when I get home from an observation. Is there any way I can dictate what I see to a voice memo and then have that translated to text. If there is which would do it best an iphone or ipad (I have neither, just a tracphone for an emergency).
    Perhaps this is asking too much from the technology available but it would be a great help if I could do this.
    Thanks for any help you can give!

  • Transfer voice memos from iphone to itunes

    I can see all my voice memos in iPhone but iTunes is not transferring them in its library.
    The most wired is that it transfered just only one of them and the rest has been remained in the iPhone but cannot not in the iTunes library.
    Could someone please help me on this?
    Thank you,
    Anastasios.

    In order to avoid lose voice memos,You should use iCloud to backup your iPhone voice memos,But you can't read these voice memos ,you can use iStonsoft iPad/iPod/iPhone Data Recovery for Mac to Extract these voice memos from iPhone backup files
    Firstly,You can use iStonsoft iPhone to Mac to transfer voice memos to your Mac computer,and then you can use iTunes to sync into your iTunes account,iStonsoft iPhone to Mac software is a professional tools to transfer voice memos from iPhone to Mac,It is a quickly method to backup these voice memos to Mac computer,Believe you can success transfer voice memos from iphone to your itunes

Maybe you are looking for