找回密码
 注册
Simdroid-非首页
查看: 88|回复: 2

请教MATLAB下stateflow中一个参数的设置问题~~

[复制链接]
发表于 2007-11-29 21:56:21 | 显示全部楼层 |阅读模式 来自 江苏镇江
我用MATLAB做仿真,其中用到stateflow状态流进行控制,但是里面有些参数
after(TWAIT,tick)
[speed <= down_th]
{gear_state.DOWN}
这中间TWAIT,tick 两个参数该在哪里如何设置呢?急。。。。
在stateflow的TOOL/explore里面总是设置不成功,求大侠教我!!!
发表于 2007-11-30 22:32:15 | 显示全部楼层 来自 山西太原
Simdroid开发平台
菜单tool里有添加事件和数据的设计
回复 不支持

使用道具 举报

发表于 2008-1-24 03:41:23 | 显示全部楼层 来自 加拿大

about the internal parameters in the model

The TWAIT is set to be 20, if I did not remember it wrong, you can change it as the internal varible in the stateflow explore.

As to the tick, you can not change it, cus it is the default value in the matlab system, as a time counting step.
If you really want to change this number, you can set your own timer outside this subsystem and make it as a event input and then use it.

Hope it can helps!



:)

评分

1

查看全部评分

回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-5 07:18 , Processed in 0.039185 second(s), 17 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表