Dynamic Configuration of Sample Time Parameter During Simulation

5 次查看(过去 30 天)
Hi, I would like to re-configure the "Sample Time" parameter of the specific block in my model dynamically during Simulink Simulation. Tried saveral ways as 1) Step-and-configure by MATLAB command(sim command, etc.), 2) ssXXXX function call(to configure Simulink Parameter structure) from my C code in the S-Function, 3) Inherit the Sampling Frequency generated by my MATLAB function to the specific block, as explained in the attached .ppt slides. However, either way is not realized. Could you please suggest me how I can proceed it.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by