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

5 vues (au cours des 30 derniers jours)
paulod45
paulod45 le 23 Juil 2018
Commenté : CHAO Zheng le 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
  1 commentaire
CHAO Zheng
CHAO Zheng le 14 Mai 2021
Hi,have you solved it?I have the same problem. Thank you!

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by