07-27-2007 11:06 AM
07-30-2007 07:03 PM
Hello,
The following steps should accomplish this:
The only problem with this is that it will not stop after the first 1000 pulses; instead it will start the whole process over again. You would need another counter in order to force the tasks to stop after 1000 pulses. Or, you will need a software timed stop, but software timing is slower and non-deterministic so it's not recommended.
Let me know if you need more details about this.
07-31-2007 12:27 PM
08-01-2007 02:37 PM
Hello,
This error message is confusing, since, as you correctly noted, DMA is not supported in this use case. You will want to use the USB Bulk data transfer mechanism instead. Do you still see that error when you use USB Bulk? If you do, it's possible that USB may not be fast enough for your application. What is the approximate frequency of the 1000 pulse signal?
You have set up the digital filters correctly. More information can be found about DAQmx and digital filters in KnowledgeBase 3VDG0388: Enabling the Digital Filters for Counter/Timer Devices in NI-DAQmx.
Please let me know if there's anything else I can help with.
08-01-2007 04:16 PM
08-02-2007 06:20 PM
Hello,
I doubt that a few kHz would be too fast, but it is possible. There are two potential problems here:
To find out whether or not the problem is noise on your buffered counter input clock source, try running a buffered counter input task that uses a pulse generated by the other counter of the same frequency that you believe your signal to be (several kHz). If this works fine then you will know that you can handle that speed and we can find out what is going wrong with the digital filtering.
Hope this helps!
08-06-2007 11:54 AM
08-06-2007 04:44 PM
Update: I think I figured it out. I'll keep you posted if it turns out I was wrong.
Thanks for all your help.