10-11-2006 03:19 PM
But I get an error in the callback while reading the data .Status code -89137 . Specified route cannot be satisfied,because it requires resources that are currently in use by another route
COChannel PulseTerminal
Dest Device ev1
Dest Terminal : ctr5gate
Resources are used by Source Terminal : Ctr7InternalOutput Destination Terminal :Ctr5Gate
Can you please clarify the cause of the error.
Thanks
Mullya
10-11-2006 05:13 PM
10-12-2006 10:43 AM
Hi Otis
Thanks for the quick reply . Have a good vacation .
Yes I'm using DAQMX.
--I have externally connected the signal generator (which simulates the APD) to PFI 19 (ctr 5 source) and routed the input externally from Ctr 5 to Ctr 2,Ctr1 and Ctr 6 source.
- Each Ctr 1,2,5, and 6 generates a one counter period measurement
//i is the number of tasks
measurementTasks[i].CIChannels.CreatePeriodChannel(inCtr,
"BufferedEventCounting"+i,.000000025,53.6, CIPeriodStartingEdge.Rising, CIPeriodMeasurementMethod.LowFrequencyOneCounter,.0001, 4, CIPeriodUnits.Ticks);- I have Ctr 7 which generates the Pulse train frequency internally connected to the RTSI 0 using
DaqSystem.Local.ConnectTerminals("/Dev1/Ctr7InternalOutput", "/Dev1/RTSI0");
- I have internally connected the RTSI 0 to the gate of Ctr1,Ctr2,Ctr5 and Ctr6.
DaqSystem.Local.ConnectTerminals("/Dev1/Ctr5Gate","/Dev1/RTSI0" );
//I tried either way by having the source as RTSI0 and the destination as Ctr5Gate and vice versa
- Duplicate count prevention is set.
- Timing is configured implicitly to get continuous sample
- Also set one of the counters to use interrupts and others to use DMA
-I'm using an Arm StartTrigger to start the acquisition at the same time.
measurementTasks[i].Triggers.ArmStartTrigger.ConfigureDigitalEdgeTrigger(
"/Dev1/PFI0", DigitalEdgeArmStartTriggerEdge.Rising);-Then I set the bit to true and then to false . So that all the counters read the data at the same time.
- While reading the data I get the above specified error for each of the ctr used .
I have also posted the problem in another thread . But I have not yet got any reply.
I'm stuck with this problem and I'm not able to move forward.
Hope the other "Blue star will identify the problem".
Thanks
Mullya
10-15-2006 02:53 PM