Is it possible to change frequency of hardware generated PWM on the fly?
Mostra commenti meno recenti
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.
Risposte (1)
Madhura Suresh
il 10 Mag 2014
0 voti
Nope, properties for background operations cannot be changed. You have to pause the background operation, and then change the property and start again.
Community
Più risposte nel Power Electronics Control
Categorie
Scopri di più su Periodic Waveform Generation in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!