📄 pt_readme.txt
字号:
================================================================================
Copyright 1994-2002 The MathWorks, Inc.
$Revision: 1.15 $
=== Abstract ===================================================================
Parameter tuning is a Real-Time Workshop feature provided as a convenience for
those needing to modify parameter values independent of Simulink's External
Mode. Parameter tuning allows MATLAB, Simulink and Stateflow data to be
modified independently of the Simulink environment.
Using the C API, you can
o Modify all occurrences of a MATLAB variable within a Simulink model.
o Modify Stateflow machine data
o Modify a specified block parameter. For example,
Block : clutch/Kp
Parameter: Gain
New value: 2.0
o Modify a specific element within a block parameter. For example,
Block : clutch/gain
Parameter Element: Value[2]
New value : 5.0
The C API does not support:
o complex parameters (e.g., k=1+i)
o parameters local to Stateflow (e.g., chart parented data)
o parameters transformed by Simulink (e.g., params of zero-pole TF)
o parameters transformed by mask initialization code (note that trivial
transformations are supported, i.e., transformations that do not
change the value of a masked parameter. An example is a=k)
o fixed-point parameters (Fixed-point Blockset parameters are not supported
unless they have a nominal scaling. Note that Simulink data types are
supported which includes signed/unsigned 8, 16, 32-bit integer, double,
single and boolean)
Note that you can create your own C API using the GlobalMemoryMap. For more
details see MATLAB/rtw/c/tlc/globalmaplib.tlc.
Related Demos:
ASAP2 data export (asap2demo)
Simulink data objects (objectdemo)
C API for signal monitoring (signalcapidemo)
C API for parameter tuning (ptdemo)
Related Documentation:
Real-Time Workshop User's Guide
=== Note =======================================================================
The content previous found in this file is now part of the Real-Time Workshop
User's Guide (C API for Parameter Tuning).
=== Relevant Files =============================================================
MATLAB/rtw/c/tlc/ptinfo.tlc - TLC file to produce model_pt.c
MATLAB/rtw/c/tlc/ptinfotestfile.tlc - TLC file to hook-in print code for demo
MATLAB/rtw/c/tlc/globalmaplib.tlc - TLC file to produce GlobalMemoryMap
MATLAB/rtw/c/src/pt_print.c - Example code to print/modify parameters
MATLAB/rtw/c/src/mdl_info.h - Model mapping info structure definition
MATLAB/rtw/c/src/pt_info.h - Parameter tuning structure definitions
MATLAB/rtw/c/src/pt_readme.txt - This file
================================================================================
[EOF] pt_readme.txt
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -