Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9401 Error -89137:

equired Resources in Use by
Task Name: _unnamedTask<9B>
Source Device: cDAQ1
Source Terminal: Ctr0InternalOutput
Destination Device: cDAQ1Mod1
Destination Terminal: PFI3

Task Name: _unnamedTask<9D>

Status Code: -89137

 

Any Help

0 Kudos
Message 1 of 4
(3,163 Views)

ray95 wrote: Any Help

Any code?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(3,157 Views)

hi, 

here is my code

clockFreq = 100;
sClk = daq.createSession('ni');
ch1 = addCounterOutputChannel(sClk,'cDAQ1Mod1','ctr0','PulseGeneration')
clkTerminal = ch1.Terminal;
ch1.Frequency = clockFreq
sClk.IsContinuous = true;
s = daq.createSession('ni');
addDigitalChannel(s,'cDAQ1Mod1','port0/line0','InputOnly')
s.Rate = clockFreq;
addClockConnection(s,'External',['cDAQ1Mod1/' clkTerminal],'ScanClock');
startBackground(sClk);
for i = 1:10
if sClk.IsRunning
break;
else
pause(0.1);
end
end
dataIn = startForeground(s);
plot(dataIn)

0 Kudos
Message 3 of 4
(3,119 Views)

Hello! 

It might be easier if you described what you are trying to accomplish, so that I can get an idea if you're setting channels up correctly, and additionally if it's possible for your device. 

R Dahlman

0 Kudos
Message 4 of 4
(3,095 Views)