声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1194|回复: 3

[求助]关于c-mex函数实时控制的使用问题!

[复制链接]
发表于 2006-6-14 23:53 | 显示全部楼层 |阅读模式

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

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

x
我编写c-mex函数用于simulink仿真没问题,但用于实物实时控制时,出现如下问题:<BR>
<P ><FONT face="Times New Roman">controls.obj : error LNK2001: unresolved external symbol __CItanh </FONT></P>
<P ><FONT face="Times New Roman">controlp.obj : error LNK2001: unresolved external symbol __CItanh </FONT></P>
<P ><FONT face="Times New Roman">..\l2diplqr.rwd : fatal error LNK1120: 1 unresolved externals </FONT></P>NMAKE : fatal error U1077: 'link' : return code '0x460' <BR><BR>tanh 为c-mex函数中用到的函数,为何用于simulink仿真没问题,而用于实物实时控制时出现这样的问题,该怎么解决?
回复
分享到:

使用道具 举报

发表于 2006-6-15 09:48 | 显示全部楼层

回复:(zyq6132003)[求助]关于c-mex函数实时控制的使...

请说明你是如何进行实物实时控制的
 楼主| 发表于 2006-6-15 12:45 | 显示全部楼层
实时控制对象为倒立摆,在simulink里建模相应接口接受实物倒立摆信息,发出控制信号进行实时控制。<BR><BR>错误提示为:
<P 0cm 0cm 0pt"><FONT face="Times New Roman">Error executing build command: Error using ==&gt; make_rtw</FONT></P>
<P 0cm 0cm 0pt"><FONT face="Times New Roman">Error using ==&gt; rtw_c</FONT></P>
<P 0cm 0cm 0pt"><FONT face="Times New Roman">Error(s) encountered while building model "l2diplqr"<BR><BR><BR>当去掉c-mex的S函数中的tanh函数时,实时控制编译后没错误。</FONT></P>
 楼主| 发表于 2006-6-18 09:19 | 显示全部楼层
real target workshop作为前台控制界面,其中包含c-mex的s函数,当把tanh换成sin函数时却可以正常工作,为什么会出现这样的问题?
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-9-25 13:24 , Processed in 0.056248 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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