cpubbs论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 907|回复: 0

请教一个与matlab连接的问题

[复制链接]
发表于 2009-9-22 21:38:46 | 显示全部楼层 |阅读模式
使用 cvi 和matlab 混合编程,启动matlab后出现错误 类没有注册,错误代码-2147221164
使用cvi提供的文档
  • Upgrade to the most recent version of the LabWindows/CVI runtime engine available here.
  • Replace the provided MATLAB instrument driver with one that is compatible with your version of MATLAB. Remove the current MATLAB instrument and rebuild the MATLAB Automation Server Type Library by going to Tools»Create ActiveX Controller. The name of the MATLAB instrument will be MATLAB Application Type Library. Save the newly created ActiveX controller with the same name as the one provided with the shipping example (as in, replace the one that is already in the shipping example directory with the newly created one).
  • Change the launch callback within the shipping example matlabdemo.c to read:
    stat = MLApp_NewDIMLApp (NULL, 1, LOCALE_NEUTRAL, 0, &hMatlab);
    instead of
    stat = MLApp_NewDIMLApp (NULL, &hMatlab);

  • Open the source code for the MATLAB instrument and search and replace ALL instances of &MLApp_IID_DIMLApp with &IID_IDispatch. Since parameters were added to the NewDIMLApp function, appropriate modification has to be made to any code using this function. Also, instances of &MLApp_IID_DIMLApp needs to be replaced with &IID_IDispatch for certain versions of the MATLAB software since its automation server only seems to honor the IDispatch interface ID.
完全修改后 发现错误还在 怎么解决啊  我的软件版本 cvi8 +matlab r2007a
谢谢 高手们
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2025-4-20 02:21 , Processed in 1.527710 second(s), 9 queries , Gzip On, File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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