Matlab 版 (精华区)
发信人: ramjet (德芙), 信区: Matlab
标 题: Good Practises to Generate Large Simulink Models
发信站: 哈工大紫丁香 (2001年06月07日21:35:23 星期四), 站内信件
可能对你有一点参考价值
We've written and used some large Simulink models. Good practices for
Simulink turn out, not surprisingly, to be some combination of common
sense and good practices for most other kinds of programming.
1. Neatness counts. Use color-coding, but don't over-use it.
2. IMO, one should use signal lines to document basic data flow,
otherwise use 'to' and 'from' blocks. Blocks and signal lines should
be used to document basic logic and data flow connections.
3. Vectorize variables that belong together.
4. Don't go to great lengths to use library blocks for computations.
Remember that the objective is to do the computation, not to prove
that it can be broken down into Simulink blocks. In particular,
numerically-intensive computations should be encapsulated in
S-functions.
4. Separate initialization, computation, and reporting functions.
5. Supply the external user with a good number of test cases and be
sure that they work.
--
在这个时代
如果你要为社会做一点贡献的话
那么就想办法
让你和你爱的人
好好的活着
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 天外飞仙]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.568毫秒