How to update Sine Wave block in Simulink using GUI Slider .?

1 visualización (últimos 30 días)
Lalit P
Lalit P el 3 de Abr. de 2017
waveLen=get(handles.slider1,'Value')
set_param('ExampleSimulation/Sine Wave', 'Amplitude', num2str(waveLen));
set_param('ExampleSimulation','SimulationCommand','update')
I am using above code to Update Amplitude of Sine Wave block in Simulink using GUI in MATLAB. But it is not updating Amplitude in scope.! Is there any error in code.?

Respuestas (0)

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by