Is it possible to change frequency of hardware generated PWM on the fly?
Mostrar comentarios más antiguos
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.
Respuestas (1)
Madhura Suresh
el 10 de Mayo de 2014
0 votos
Nope, properties for background operations cannot be changed. You have to pause the background operation, and then change the property and start again.
Comunidades de usuarios
Más respuestas en Power Electronics Control
Categorías
Más información sobre C2000 Microcontroller Blockset en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!