How to generate high frequency TTL pulse with NI usb-6501
4 views (last 30 days)
Show older comments
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
1 Comment
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!