How to generate high frequency TTL pulse with NI usb-6501

5 Ansichten (letzte 30 Tage)
paulod45
paulod45 am 23 Jul. 2018
Kommentiert: CHAO Zheng am 14 Mai 2021
Hello, i try to generate TTL pulse around 10 MHz with a Nuclear Instrument usb-6501. Actually,I tried with:
s = daq.createSession('ni');
s.addDigitalChannel('Dev1','port2/line7','OutputOnly');
for i = 1:10
outputSingleScan(s,[1])
pause(0.0000001)
outputSingleScan(s,[0])
pause(0.0000005);
end
But the output frequency is about 10 Hz. I look for the counter functionality in the Matlab drivers, but i don't find them. Could someone help me?
Thank you in advance,
Paul

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by