Dynamic Configuration of Sample Time Parameter During Simulation

1 view (last 30 days)
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.
  1 Comment
Hiroshi Kimizuka
Hiroshi Kimizuka on 26 Jun 2018
Sorry to have sent without the attached file. Please refer to the attached one. Thanks and Best Regards,

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!