声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2016|回复: 1

[编程技巧] 关于SIMIULINK的菜鸟问题

[复制链接]
发表于 2007-5-15 17:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我想在COMMAND WINDOWS用指令来控制SIMULINK中的电路图进行仿真,电路图保存名为nn,已经把仿真设置成TO WORKSPACE了,错误信息和电路图如下:
>> sim('nn')
??? Error using ==> sim
--> Error evaluating expression '[t, u]' for 'External Inputs' specified in the Configuration Parameters dialog for block diagram 'nn'. It must be possible to completely evaluate expressions in block-diagram parameter fields either in the model or source workspace.
Error in model and source workspaces: Error using ==> sim
Undefined function or variable 't'.
--> Error evaluating element '1' in list of external inputs specified in Configuration Parameters dialog. External inputs may be specified as either (a) a list of matrices and structures or (b) a single MATLAB expression or function.

clip_image002.jpg
哪位朋友能解释一下,直接用sim('文件名‘)不能对电路图进行仿真吗?

回复
分享到:

使用道具 举报

发表于 2007-5-15 22:43 | 显示全部楼层

回复 #1 happydzps 的帖子

可以仿真吧,但电路图里面的示波器要换成输出接口模块,在模块库sinks里面找,还有命令要有返回值[t,u],试一下吧。
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-10-3 08:31 , Processed in 0.062538 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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