Why DurationInSeconds doesn't work?
Ältere Kommentare anzeigen
Hello,
We are trying to use PCI6602 Daqboard to generate a serial of pulses to control servo. Our program is pretty simple like this:
s=daq.createSession('ni');
s.addCounterOutputChannel('Dev1','ctr0','PulseGeneration');
ch1=s.Channels(1);
for i=1:24
ch1.DutyCycle=0.08+0.006*(i-1);
s.DurationInSeconds=0.204;
s.startForeground();
end
It worked before. But these days, it seems like 's.DurationInSeconds' doesn't work. The signal generated by Daqboard is attached below. The duration time of signal sequence is much longer than 204 ms, which it suppose to be.

Anyone knows why?
Thanks
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Arduino Hardware finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!