MATLAB2011b编译dll过程
1、选择工作目录
2、新建DeploymentProject
3、修改Project名称、保存路径,特别注意选择【.NetAssembly】
4、右侧【.NetAssembly】标签页中,首先点击【AddClass】,修改Class名字为C#端调用的类名。然后点击类名下的【Addfiles】,选取需要添加到类里面的所有方法。
5、点击按钮,进入项目构建阶段,构建过程需要几分钟,随着脚本内容的增加,所需时间更长。
6、直到对话框显示【BuildFinished】为止,说明对应目录下已生成dll,选择src路径下或者distrib路径下的.dll均可
MATLAB2011b的license2017年10月过期问题解决
找到MATLAB的安装路径,我的是在C:\Program Files\MATLAB\R2011b。
在C:\Program Files\MATLAB\R2011b\licenses文件夹下,编辑license_(计算机名)_161052_R2011b.lic文件。将内容清空,替换为如下:
INCREMENT Aerospace_Blockset MLM 99 permanent uncounted \
A05070F00D1EB1F92326 VENDOR_STRING=QQ=47399897 HOSTID=ANY \
ck=216 SN=888888 TS_OK
INCREMENT Aerospace_Toolbox MLM 99 permanent uncounted \
6090F0C08395D4289512 VENDOR_STRING=QQ=47399897 HOSTID=ANY \
ck=237 SN=888888 TS_OK
INCREMENT Bioinformatics_Toolbox MLM 99 permanent uncounted \
40E0B0406DE56D23A426 VENDOR_STRING=QQ=47399897 HOSTID=ANY \
ck=190 SN=888888 TS_OK
INCREMENT Cert_Kit_IEC MLM 99 permanent uncounted \
9080309041D2DCCB2B10 VENDOR_STRING=QQ=47399897 HOSTID=ANY \
ck=179 SN=888888 TS_OK
INCREMENT Communication_Blocks MLM 99 permanent uncounted \
80E010304ACCEEB5E0AA VENDOR_STRING=QQ=47399897 HOSTID=ANY \
ck=77 SN=888888 TS_OK
INCREMENT Communication_Toolbox MLM 99 permanent uncounted \
C0003000770A1A086530 VENDOR_STRING=QQ=47399897 HOSTID=ANY \
ck=162 SN=888888 TS_OK
INCREMENT Compiler MLM 99 permanent uncounted 60D0C0F0DC03C2F72FF7 \
VENDOR_STRING=QQ=47399897 HOSTID=ANY ck=232 SN=888888 TS_OK
INCREMENT Control_Toolbox MLM 99 permanent uncounted \
6020E0B00B7ECE0893BB VENDOR_STRING=QQ=47399897 HOSTID=ANY ck=7 \
SN=888888 TS_OK
INCREMENT Curve_Fitting_Toolbox MLM 99 permanent uncounted \
10703080061FF9DA5A81 VENDOR_STRING=QQ=47399897 HOSTID=ANY \
ck=229 SN=888888 TS_OK
INCREMENT Data_Acq_Toolbox MLM 99 permanent uncounted \
E0B0E0E05124CF4A1A8D VENDOR_STRING=QQ=473998