Simulink转与LabVIEWveristand的DLL及out文件

更新时间:2023-07-08 15:33:23 阅读: 评论:0

Simulink转与LabVIEWveristand的DLL及out⽂件
农作物种植Simulink转与LabVIEW、Veristand调⽤的DLL、OUT⽂件
1.在软件安装过程中先安装MATLAB,simulink,simulinkcoder,embedded coder等组件,
不同的序列号有不同的模块,可以⾃定义选择;simulink coder与embedded coder即是以前版本的real-time workshop。MATLAB的位数应该与LabVIEW的位数保持⼀致,否则可能会导致Veristand不能与simulink对接。
2.安装LabVIEW,real-time等软件后,安装Veristand完成后会在simulink⾥出现如下接⼝,
3.确保上述步骤正确后,安装编译软件Microsoft Visual C++ 6.0, 和SDK,版本应匹配。
MATLAB内部默认的编译软件为lcc,可以通过mex –tup命令修改编译软件为Microsoft Visual C++。
炒冬瓜的家常做法4.如果编译为PXI⽤的.DLL⽂件就可以了,如果是编译为CRIO使⽤的.out⽂件则还需要
Wind River GNU Toolchain,在相应的帮助⽂件下可以连接下载。以Veristand2014的为例,会下载到⼀个名为的压缩⽂件,解压后有三个⽂件
夹,把上层的⽂件夹gccdist直接复制到C盘下,打开supplement
⾥有tup-gcc,右击“编辑”修改⾏⾥的红⾊字体supp为supplement,就是修改路径的意思。
t LM_LICENSE_FILE=%GCCPATH%\supp\zwrsLicen.lic
在这⾥我不建议编辑tup-gcc⽂件,⽽是把⽂件夹的supplement改为supp,这样在simulink你编译时就不⽤每次修改编译⽂件调⽤路径。
/doc/3ac451485022aaea988f0f0d.html piled Model
After you have the correct compiler t up and lected, complete the following steps to build the co
mpiled model in the Real-Time Workshop software:
/doc/3ac451485022aaea988f0f0d.html unch the Simulink software and load your model you want to convert.
2.Select Simulation?Configuration Parameters to launch the
Configuration Parameters dialog box.
3.Click the Solver tab and configure the following options:
o Stop time: inf
o Type: Fixed-step
4.Click the Real-Time Workshop tab.
5.Click the Brow button to launch the System Target File Browr
桂的成语dialog box.
6.Select the correct option for your target from the list:
o(Windows, Phar Lap ETS) NIVeriStand.tlc—NI Real-Time Target
黄精的药用价值o(VxWorks) NIVeriStand VxWorks.tlc—NI Real-Time Target
Note If the appropriate .tlc is not visible, the MATLAB
翻译英语单词software files might be read-only, and NI VeriStand is not able
to provide this option. To display the option, add the
following lines to the matlabrc.m file, a file that is
installed by the MATLAB software:
addpath('X:\VeriStand');
NIVeriStandAddPaths;
编译完成后,Matlab的Command Windows中出现下列提⽰
### Successful completion of Real-Time Workshop build procedure for model:ModelName
### Generating code into build folder: C:\Urs\LabVIEW\Documents\MATLAB\engine_niVeriStand_rtw
Warning: Signal logging is not supported when MAT-file logging is enabled. When your model code executes, the
signal logging variable 'rt_sldemo_engine_output' will not be saved to the MAT-file. (To suppress this warning,
disable signal logging for your model)
### Generated code for 'engine' is up to date becau no structural, parameter or code
replacement library changes were found.
### NI VeriStand code generation started
### NI VeriStand code generation done
.
### Processing Template Makefile: D:\VeriStand\2014\ModelInterface\tmw\R2007b\f
NI VeriStand ==> Using the Microsoft Visual C++ 10.0 tools.
### engine.mk which is generated from D:\VeriStand\2014\ModelInterface\tmw\R2007b\f is up to date ### Building engine: .\engine_vc.bat
C:\Urs\LabVIEW\Documents\MATLAB\engine_niVeriStand_rtw>t MATLAB=D:\Program Files\MATLAB\R2012b
C:\Urs\LabVIEW\Documents\MATLAB\engine_niVeriStand_rtw>t VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 10.0\VC\
C:\Urs\LabVIEW\Documents\MATLAB\engine_niVeriStand_rtw>call
"D:\VeriStand\2014\ModelInterface\tmw\toolchain\nivs_vcvars32_100.bat"
Setting environment for using Microsoft Visual Studio 2010 x86 tools.手相断掌
C:\Urs\LabVIEW\Documents\MATLAB\engine_niVeriStand_rtw>cd /d
C:\Urs\LabVIEW\Documents\MATLAB\engine_niVeriStand_rtw\
C:\Urs\LabVIEW\Documents\MATLAB\engine_niVeriStand_rtw>nmake -f engine.mk GENERATE_REPORT=0 NIDEBUG=0 NIOPT="Default" OPTS="" /I
Microsoft (R) 程序维护实⽤⼯具10.00.30319.01 版
版权所有(C) Microsoft Corporation。保留所有权利。
严格近义词### Linking ...
D:\PROGRA~2\MATLAB\R2012b\sys\perl\win32\bin\perl
D:\PROGRA~2\MATLAB\R2012b\rtw\c\tools\mkvc_lnk.pl engine.lnk engine.obj NIVeriStand_main.obj engine_data.obj rtGetInf.obj rtGetNaN.obj rt_logging.obj rt_nonfinite.obj rt_zcfcn.obj rt_sim.s
link /RELEASE /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib advapi32.lib wsock32.lib @engine.lnk /dll -out:engine.dll
微信登不上去怎么办
正在创建库engine.lib 和对象p
*** Created DLL C:\Urs\LabVIEW\Documents\MATLAB\engine_niVeriStand_rtw\engine.dll
C:\Urs\LabVIEW\Documents\MATLAB\engine_niVeriStand_rtw>exit /B 0
### Successful completion of Real-Time Workshop build procedure for model: engine

本文发布于:2023-07-08 15:33:23,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1085732.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:安装   软件   编译
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图