Is it possible to change frequency of hardware generated PWM on the fly?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
s = daq.createSession('ni');
ch = s.addCounterOutputChannel('Dev1', 0, 'PulseGeneration');
s.IsContinuous = true;
s.startBackground;
% now try change freq
ch.Frequency = 200;
% produces error:
The property cannot be changed while the Session is running.
0 Kommentare
Antworten (1)
Madhura Suresh
am 10 Mai 2014
Nope, properties for background operations cannot be changed. You have to pause the background operation, and then change the property and start again.
0 Kommentare
Communitys
Weitere Antworten in Power Electronics Control
Siehe auch
Kategorien
Mehr zu C2000 Microcontroller Blockset finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!