05-24-2017 02:07 PM
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
05-24-2017 02:27 PM
ray95 wrote: Any Help
Any code?
05-25-2017 01:44 PM
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)
05-30-2017 05:20 PM
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