Main Content

库开发

开发代码替换库

要快速入门,请参阅Identify Code Replacement Library Requirements。熟悉开发代码替换库的过程。使用代码替换工具以交互方式开发库或以编程方式开发库。使用 快速向导代码替换库开发 - Simulink了解开发过程和工具。

工具

代码替换工具Create, modify, and validate content of code replacement libraries
代码替换查看器Explore content of code replacement libraries

函数

全部展开

addEntry将表条目添加到代码替换表中注册的表条目集合中
createCRLEntryCreate code replacement table entry from conceptual and implementation argument string specifications
registerCFunctionEntryCreate function entry based on specified parameters and register in code replacement table
registerCPPFunctionEntryCreate C++ function entry based on specified parameters and register in code replacement table
registerCPromotableMacroEntryCreate promotable code replacement macro entry based on specified parameters and register in code replacement table (for abs function replacement only)
RTW.TflBlasEntryGeneratorCreate code replacement table entry for a BLAS operation
RTW.TflCBlasEntryGeneratorCreate code replacement table entry for a CBLAS operation
RTW.TflCFunctionEntryCreate code replacement table entry for a function
RTW.TflCFunctionEntryMLCustom code replacement table function entry
RTW.TflCOperationEntryCreate code replacement table entry for an operator
RTW.TflCOperationEntryGeneratorCreate code replacement table entry for a fixed-point addition or subtraction operation
RTW.TflCOperationEntryGenerator_NetSlopeCreate code replacement table entry for a net slope fixed-point operation
RTW.TflCOperationEntryMLCustom code replacement table operation entry
RTW.TflCSemaphoreEntryCreate code replacement table entry for a semaphore or mutex
RTW.TflTable创建代码替换表
setTflCFunctionEntryParametersSet specified parameters for function entry in code replacement table
setTflCOperationEntryParametersSet specified parameters for operator entry in code replacement table
setTflCSemaphoreEntryParametersSet specified parameters for semaphore entry in code replacement table
addConceptualArgAdd conceptual argument to array of conceptual arguments for code replacement table entry
addDWorkArgAdd DWork argument for entry in code replacement table
copyConceptualArgsToImplementationCopy conceptual argument specifications to implementation specifications of an entry for code replacement table entry
createAndAddImplementationArgCreate implementation argument from specified properties and add to implementation arguments for code replacement table entry
createAndSetCImplementationReturnCreate implementation return argument from specified properties and add to implementation for code replacement table entry
createCRLEntryCreate code replacement table entry from conceptual and implementation argument string specifications
createAndAddConceptualArgCreate conceptual argument from specified properties and add to conceptual arguments for code replacement table entry
getTflArgFromStringCreate code replacement argument based on specified name and built-in data type
getTflDWorkFromStringCreate code replacement DWork argument for semaphore entry based on specified name and data type
addAdditionalHeaderFileAdd header file to array of header files for code replacement table entry
addAdditionalIncludePathAdd include path to array of include paths for code replacement table entry
addAdditionalLinkObjAdd link object to array of link objects for code replacement table entry
addAdditionalLinkObjPathAdd link object path to array of link object paths for code replacement table entry
addAdditionalSourceFileAdd source file to array of source files for code replacement table entry
addAdditionalSourcePathAdd source path to array of source paths for code replacement table entry
enableCPPEnable C++ support for function entry in code replacement table
registerCPPFunctionEntryCreate C++ function entry based on specified parameters and register in code replacement table
setNameSpaceSet namespace for C++ function entry in code replacement table
addAlgorithmPropertyAdd algorithm properties for code replacement table entry
getAlgorithmParametersExamine algorithm parameter settings for lookup table function code replacement table entry
setAlgorithmParametersSet algorithm parameters for lookup table function code replacement table entry
addComplexTypeAlignmentSpecify alignment boundary of a complex type
setReservedIdentifiersRegister reserved identifiers to associate with code replacement library
coder.ceval从生成的代码中调用 C/C++ 函数
coder.dataAlignmentSpecify data alignment for global or entry-point/exported function input and output arguments
coder.replaceReplace current MATLAB function implementation with code replacement library function in generated code

全部展开

RTW.TflArgNumericNumeric argument for code replacement entry
RTW.TflArgMatrixMatrix argument for code replacement entry

主题

快速入门

实现更多控制的选项

疑难解答

Troubleshoot Code Replacement Library Registration

Troubleshoot the library registration if a code replacement library is not listed as a configuration option or does not appear in the Code Replacement Viewer.

Troubleshoot Code Replacement Misses

Analyze and correct code replacement misses with miss reason messages that appear in the Code Replacement Viewer.

相关信息