10-03-2005 01:09 AM
10-04-2005 09:04 AM
I'm not at a LV PC now, so I can't look at the examples you mentioned. However, the primary problem is that when you generate a finite pulse train on Ctr0, the DAQ driver makes use of Ctr1 to control the # of pulses generated by Ctr0.
Because you have a 6602, you can simply measure the # of pulses with any of the other 6 counters on board. Ctr1, the one you might naturally think to use, is the only one that won't work.
The method will depend on whether you're using traditional NI-DAQ or DAQmx. The example names sound like traditional NI-DAQ, so the simplest thing is to actually wire from Ctr0 output to your measurement Ctr's Source input. Each of the Ctr's has a different PFI pin as its (default) Source input. Summarizing your questions:
1. Yes it's possible to measure # of counts generated by Ctr0 with any Ctr EXCEPT Ctr1. (Note that if you generated continuous pulses with Ctr0, you could then use Ctr1 to count them).
2. It's possible to specify the PFI line for counting pulses. If you physically wire to the default Source input, it won't be necessary.
3. Output of one counter should be connected to the SOURCE of another counter.
4. Ctr0 Out should be wired to, say, Ctr2 Source. Don't have hw here to be able to identify pin #'s.
Final note: under DAQmx, you wouldn't need any wiring. You can programmatically tell any measuring counter to count the edges on any other pulse-generating counter.
-Kevin P.