Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2009-01-13, 20:30   #1
binro
初级会员
 
注册日期: 2008-03-02
年龄: 39
帖子: 2
声望力: 0
binro 正向着好的方向发展
难过 [原创][讨论]警告!还在用DDE的同志停手吧!(关于excel接口的讨论,请用过的进来,谢谢!)

老板让做MATLAB的EXCEL的接口,最开始找到的就是EXCEL LINK。可是这个不能满足动态性。于是选择DDE,DDE的上手很简单,调用函数ddeinit, ddepoke都是ok的。可到了动态链接ddeadv,怎么也不行,查了整整半天的资料,一个老外也问同样的问题
I am facing problem in using ddeadv(function responsible
for hot link between dde server and client) in newer
version of matlab R2007a/b. Although I can init the
communication, request and poke value to dde server but
only ddeadv is not working. Please help me out.

Sample code:
channel=ddeinit('excel','m.xls'); working
a=ddepoke(channel,'r1c1',5); working
b=ddereq(channel,'r1c1'); working
d=ddereq(channel,'r1c1','disp(x)','x') NOT WORKING;

althout I am getting d=1 for that syntex but callback is
not working, means when I change the value in the m.xls
r1c1 the disp(x) function is not called .

没有人回答,原因只是用了7.1以上的版本!
同业的代码,同样用excel在6.5上就可以!!
有点无语了。浪费了一天的时间:cry:

最好大家讨论下其他的方法,要满足数据交换的动态性。既EXCEL改变一个数,在MATLAB中要相应的改变。谢谢大家!
binro 当前离线   回复时引用此帖
回复

主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码


相似的主题
主题 主题作者 版面 回复 最后发表
有哪位做过BEESSEL法数字下变频? yqgame365 MATLAB论坛 0 2008-12-07 23:53
[讨论]已知各节点的水面高程做视频? shxshd MATLAB论坛 0 2008-11-25 23:44
GM(1,1) lvlianggan MATLAB论坛 2 2008-11-07 22:52
Simplify Instrument Communication: Using Instrument Drivers with the Instrument Contr TechnicalArticles MATLAB技术文章 0 2008-01-06 16:32


所有时间均为北京时间。现在的时间是 11:22


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.