📄 dalin2.mdl
字号:
TargetFcnLib "ansi_tfl_tmw.mat"
TargetLibSuffix ""
TargetPreCompLibLocation ""
GenFloatMathFcnCalls "ANSI_C"
UtilityFuncGeneration "Auto"
GenerateFullHeader on
GenerateSampleERTMain off
IsPILTarget off
ModelReferenceCompliant on
IncludeMdlTerminateFcn on
CombineOutputUpdateFcns off
SuppressErrorStatus off
IncludeFileDelimiter "Auto"
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier "rt_"
MatFileLogging on
MultiInstanceERTCode off
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime on
SupportNonInlinedSFcns on
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
SimulationMode "normal"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Clock
DisplayTime off
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType DiscreteTransferFcn
Numerator "[1]"
Denominator "[1 0.5]"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
Realization "auto"
}
Block {
BlockType DiscreteZeroPole
Zeros "[1]"
Poles "[0 1]"
Gain "[1]"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Scope
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "dalin2"
Location [116, 152, 861, 445]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "95"
ReportName "simulink-default.rpt"
Block {
BlockType DiscreteTransferFcn
Name "Discrete\nTransfer Fcn"
Position [505, 12, 565, 48]
Numerator "[0.6321]"
Denominator "[1 -0.3679]"
}
Block {
BlockType DiscreteZeroPole
Name "Discrete\nZero-Pole"
Position [435, 102, 535, 138]
Zeros "[-0.733]"
Poles "[0 0 0.7413]"
Gain "0.1493"
}
Block {
BlockType DiscreteZeroPole
Name "Discrete\nZero-Pole1"
Position [80, 17, 175, 53]
Zeros "[0.3679]"
Poles "[1]"
Gain "1.582"
}
Block {
BlockType DiscreteZeroPole
Name "Discrete\nZero-Pole2"
Position [55, 236, 155, 274]
Zeros "[1 0.286]"
Poles "[-2.78 -0.2]"
Gain "3.774"
}
Block {
BlockType DiscreteZeroPole
Name "Discrete\nZero-Pole3"
Position [230, 105, 310, 145]
Zeros "[0 0 0.7413]"
Poles "[-0.733 1 -0.3935]"
Gain "2.6356"
}
Block {
BlockType DiscreteZeroPole
Name "Discrete\nZero-Pole4"
Position [520, 251, 620, 289]
Zeros "[0 0.7413]"
Poles "[1 -0.3935]"
Gain "1.5208"
}
Block {
BlockType Reference
Name "Ramp"
Ports [0, 1]
Position [55, 175, 85, 205]
SourceBlock "simulink/Sources/Ramp"
SourceType "Ramp"
ShowPortLabels on
slope "1"
start "0"
X0 "0"
VectorParams1D on
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [395, 34, 425, 66]
Floating off
Location [38, 244, 362, 483]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [680, 94, 710, 126]
Floating off
Location [372, 283, 696, 522]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [670, 219, 700, 251]
Floating off
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [55, 110, 85, 140]
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [135, 115, 155, 135]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Discrete\nZero-Pole3"
SrcPort 1
Points [60, 0]
Branch {
Points [45, 0]
DstBlock "Discrete\nZero-Pole"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Discrete\nZero-Pole"
SrcPort 1
Points [0, 5; 20, 0]
Branch {
Points [15, 0; 0, 90; -430, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, -15]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Discrete\nZero-Pole3"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -