embedded matlab function block sample time

3 次查看(过去 30 天)
Hi
I wanted to know if it is possible to change the sampling time with which the embedded matlab function block is executed. Basically my solver time is 1e-6. However i want the embedded matlab function block to run at 20e-3.

回答(1 个)

TAB
TAB 2012-7-3
编辑:TAB 2012-7-3
  1. Right click on your embedded matlab function block and go to Subsystem Parameters....
  2. Select the check-box Treat as atomic unit.
  3. Enter the block sample time value in Sample time property.
See Systems and Subsystems to know more about virtual and atomic subsystems.
Always make sure that, for multirate simulink system, your block sample time must be integer multiples of model's base sample time.

类别

Help CenterFile Exchange 中查找有关 Schedule Model Components 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by