Hello everybody,
I would like to use NI6120 (in PXI 1045 chassis) to generate double counters (counter 0 and counter1). I am using .NET platform. For each counter generation, I create a task, then here is the following code:
Task_For_DAQ1_Cnt0.COChannels.CreatePulseChannelTicks(GetDeviceMap.DaqOne + "/ctr0", "daq1cnt0", "/" + GetDeviceMap.DaqOne + "/PXI_Trig2", COPulseIdleState.Low, 0, low_ticks, high_ticks);
Task_For_DAQ1_Cnt0.Timing.ConfigureImplicit(SampleQuantityMode.ContinuousSamples);
Task_For_DAQ1_Cnt0.ExportSignals.ExportHardwareSignal(ExportSignal.CounterOutputEvent, "/" + GetDeviceMap.DaqOne + "/PXI_Trig0");
Task_For_DAQ1_Cnt1.COChannels.CreatePulseChannelTicks(GetDeviceMap.DaqOne + "/ctr1", "daq1cnt1", "/" + GetDeviceMap.DaqOne + "/PXI_Trig2", COPulseIdleState.Low, 0, low_ticks/2, high_ticks/2);
Task_For_DAQ1_Cnt1.Timing.ConfigureImplicit(SampleQuantityMode.ContinuousSamples);
Task_For_DAQ1_Cnt1.ExportSignals.ExportHardwareSignal(ExportSignal.CounterOutputEvent, "/" + GetDeviceMap.DaqOne + "/PXI_Trig1");
If i start tasks running, second task throw the following exception (first one runs fine, and see the signal coming out - NI6124 (in PXIe 1065 chassis) have no problem by double clock generation and routing)
Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Property: NationalInstruments.DAQmx.COChannel.PulseTerminal
Destination Device: DAC1
Destination Terminal: PXI_Trig1
Required Resources in Use by
Task Name: _unnamedTask<4>
Source Device: DAC1
Source Terminal: Low
Destination Device: DAC1
Destination Terminal: Ctr0Gate
Task Name: _unnamedTask<5>
Status Code: -89137
Please help me out to solve this problem. When I create tasks on NI-MAX, double clock generation is OK, but can't route them on the backplane.