- 积分
- 34
- 注册时间
- 2002-9-6
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2003-1-24 19:14:44
|
显示全部楼层
来自 黑龙江大庆
回复: 【求助】初学者请教2
这个挺有用的
LabVIEW 6.x Does Not Interface Properly with MATLAB 6.1 or MATLAB 6.5
Problem: I have a VI that uses a MATLAB script node. The VI worked correctly when I had MATLAB 5.x or 6.0 installed on my computer. However, when I upgraded to MATLAB 6.1 (or 6.5), my VI stopped working and returned one of the following errors:
"Error occurred while executing script. Error message from server: . in Untitled.vi"
"Error 1047 occurred at Unable to connect to script server"
"Error 1050, LabVIEW: The server failed to execute the script sent by LabVIEW. An error message has been received"
How can I fix this problem?
Solution: The ActiveX ID for MATLAB 6.1 and 6.5 (released after LabVIEW 6.0 was released) is different than in earlier versions. The attached file, matscript.dll, fixes this problem. Detach the file to \resource\script and use it to replace the existing file with the same name. This file is only needed if you are using LabVIEW 6.0.x. or earlier. The updated ActiveX ID's for MATLAB 6.1 are included with LabVIEW 6.1. For more information about the latest version of LabVIEW, please refer to the Upgrade Advisor link below.
Additionally, to run a script node, LabVIEW uses ActiveX technology to communicate with the script server engine that is installed with MATLAB. However, the ActiveX components of MATLAB, including the script server, are not registered with the operating system when MATLAB is first installed. They are registered the first time MATLAB is launched. Therefore, when using a MATLAB script node in LabVIEW make sure that MATLAB has been launched on that particular machine and its ActiveX components have been registered with the operating system. After following this procedure, LabVIEW should be able to run the MATLAB script nodes without error, regardless of what directory MATLAB has been installed into.
Apparently, there is also an alleged problem with the new MATLAB Web Server in MATLAB 6.5. If the web server is installed, LabVIEW can no longer connect to the MATLAB engine. Uninstalling the web server should fix this problem.
把那个matscript.dll下载下来试试。 |
评分
-
1
查看全部评分
-
|