11-08-2006 11:22 AM
11-09-2006 11:47 AM
First let me make sure I understand your app properly. Since this is the timer/counter forum, I'll assume you're looking for a counter/timer solution.
You want to generate a finite pulse train of 40 pulses at 1 kHz. This will require the use of 2 counters.
You want to perform semi-period measurement on that generated pulsetrain. This requires 1 counter. (Seems redundant though, since you are generating that pulsetrain with the same board).
You want to perform semi-period measurement on your uut's response. This requires 1 counter.
You want to synchronize the start time of the 2 semi-period measurements. This requires use of the "Arm Start" trigger, available only through a DAQmx Trigger Property node.
Since you need 4 (probably really only 3) counters, you'd need something like a 6602 board.
Re: "resource reserved" error. I'd guess you're probably trying to configure a counter for semi-period measurement that was already reserved for the finite pulsetrain generation. If you generate a finite pulsetrain on counter 0, then under the hood counter 1 is reserved as a helper. And vice versa. Same for other pairings (2,3), (4,5), (6,7). In general, under DAQmx you should be able to fairly easily perform the necessary routings via software calls without screwdriver work.
If you have an M-series board rather than a 6602, you only have 2 counters but can still handle this app using "correlated DIO."
-Kevin P.
11-09-2006 12:40 PM