Main Content

针对目标硬件的自定义软件

创建用于将 MATLAB® 和 Simulink® 设计部署到硬件平台的软件

创建用于实现或支持将 MATLAB 和 Simulink 设计部署到硬件平台的软件。了解文件夹和文件约定、软件组件以及编译过程中的信息传递。

您可以:

  • 为编译过程注册自定义工具链。

  • 为目标硬件自定义 XCP 服务器软件。

  • 创建一个目标硬件应用程序,用于检查代码生成假设的有效性。

使用目标包,您可以:

  • 扩大支持的硬件的范围。

  • 为外部模式和处理器在环 (PIL) 仿真提供 Simulink 和您的目标硬件之间的连接。

为实现开发目标和控制代码生成,您可以自定义系统目标文件。

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

全部展开

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

函数

全部展开

slConfigUIGetValReturn current value for any model configuration parameter
slConfigUISetEnabledEnable or disable any model configuration parameter
slConfigUISetValSet value for any model configuration parameter
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

主题

自定义目标硬件支持

通过使用目标包开发支持

通过使用系统目标文件开发支持