Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

快速原型部署

编译、验证、细化和测试生成的可执行文件

根据应用程序要求、原型构建或生产环境以及您当前所处的开发流程阶段,从几种部署方法之中选择一种方法。如果要在开发计算机上运行快速、独立的仿真,例如批量仿真或蒙特卡罗仿真,请使用快速仿真 (RSim) 目标编译可执行文件。加快仿真的另一种方法是生成一个可在其他模型中使用的 S-Function 模块。除了提高仿真速度外,此方法还可以重用代码并保护知识产权。

通过外部模式仿真,您可以创建一个通信信道,连接开发计算机与运行由代码生成及编译过程创建的可执行文件的目标处理器。通过该通信信道,您可以修改目标程序的参数值,并监测和存储来自目标程序的信号数据。

如果实时响应非常重要,请编译并部署可执行程序。基于控制系统的组件或表示受控系统的模型编译程序。在基于组件的情况中,您可以在实时仿真器或微处理器上边运行代码边对其进行编译、部署和调优。对于测试环境,您可以为模型编译一个可执行文件并将其下载到硬件在环 (HIL) 仿真平台上。设置环境后,运行可执行程序,以实时验证系统或控制单元。

全部展开

target.APIDescribe API details
target.APIImplementationDescribe API implementation details
target.BoardProvide hardware board details
target.BuildDependenciesDescribe C and C++ build dependencies to associate with target hardware
target.CommandCapture system command for execution on MATLAB computer
target.CommunicationInterfaceDescribe data I/O details for target hardware
target.CommunicationProtocolStackDescribe communication protocol parameters
target.LanguageImplementationProvide C and C++ compiler implementation details
target.Object用于目标类型的基类
target.ProcessorProvide target processor information
target.CommunicationChannelDescribe communication channel properties
target.RS232ChannelDescribe serial communication channel
target.TCPChannelDescribe TCP communication properties
target.ExternalModeRepresent external mode protocol stack
target.ExternalModeConnectivityBase class for external mode connectivity options
target.XCPDescribe XCP protocol stack for target hardware
target.XCPExternalModeConnectivityRepresent connectivity options in external mode protocol stack
target.XCPPlatformAbstractionSpecify XCP platform abstraction layer for target hardware
target.XCPSerialTransportRepresent XCP serial transport protocol layer
target.XCPTCPIPTransportRepresent XCP TCP/IP transport protocol layer
target.XCPTransportBase class for XCP transport protocol layer

函数

全部展开

rsimgetrtpGlobal model parameter structure
rsimsetrtpparamSet parameters of rtP model parameter structure
extmodeBackgroundRunPerform external mode background activity
extmodeEventExternal mode event trigger
extmodeGetFinalSimulationTimeGet final simulation time for external mode platform abstraction layer
extmodeInitInitialize external mode target connectivity
extmodeParseArgsExtract values of configuration parameters supported by external mode abstraction layer
extmodeResetReset external mode target connectivity
extmodeSetFinalSimulationTimeSet final simulation time in external mode platform abstraction layer
extmodeSimulationCompleteCheck that external mode simulation is complete
extmodeStopRequestedCheck whether request to stop external mode simulation is received from model
extmodeWaitForHostRequestWait for request from development computer to start or stop external mode simulation
rtiostreamtestTest custom rtiostream interface implementation

target管理目标硬件和构建工具信息

App

在自定义硬件上运行Run external mode simulations

模块

Generated S-Function将模型或子系统表示为生成的 S-Function 代码

主题

快速原型注意事项

快速仿真

可重用组件部署

外部模式仿真

HIL 仿真