📄 lorenz.mdl
字号:
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
EnableShiftOperators on
ParenthesesLevel "Nominal"
PortableWordSizes off
ModelStepFunctionPrototypeControlCompliant off
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
ExtModeIntrfLevel "Level1"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
hdlcoderui.hdlcc {
$ObjectID 11
Description "HDL Coder custom configuration component"
Version "1.2.0"
Name "HDL Coder"
Array {
Type "Cell"
Dimension 1
Cell ""
PropName "HDLConfigFile"
}
HDLCActiveTab "0"
}
PropName "Components"
}
Name "Configuration"
CurrentDlgPage "Data Import//Export"
}
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 DataTypeConversion
OutDataTypeMode "Inherit via back propagation"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
ConvertRealWorld "Real World Value (RWV)"
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
ContinuousStateAttributes "''"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
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 "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels "FromPortIcon"
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "Lorenz"
Location [144, 290, 680, 583]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "DEE"
Ports [0, 2]
Position [85, 103, 200, 132]
OpenFcn "diffeqed"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Differential Equation Editor (DEE)"
MaskDisplay "disp('Lorenz')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "DEE"
Location [100, 100, 600, 400]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Integrator
Name "Integ1"
Ports [1, 1]
Position [400, 50, 430, 70]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integ2"
Ports [1, 1]
Position [400, 100, 430, 120]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integ3"
Ports [1, 1]
Position [400, 150, 430, 170]
InitialCondition "0.01"
IgnoreLimit off
}
Block {
BlockType Mux
Name "SysMux"
Ports [3, 1]
Position [100, 250, 150, 280]
Inputs "3"
}
Block {
BlockType Fcn
Name "x1"
Position [300, 50, 330, 70]
Expr "-8*u(1)/3+u(2)*u(3)"
}
Block {
BlockType Fcn
Name "x2"
Position [300, 100, 330, 120]
Expr "-10*u(2)+10*u(3)"
}
Block {
BlockType Fcn
Name "x3"
Position [300, 150, 330, 170]
Expr "-u(1)*u(2)+28*u(2)-u(3)"
}
Block {
BlockType Fcn
Name "y1"
Position [300, 300, 330, 320]
Expr "u(1)"
}
Block {
BlockType Fcn
Name "y2"
Position [300, 350, 330, 370]
Expr "u(2)"
}
Block {
BlockType Outport
Name "Port1"
Position [400, 300, 420, 320]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Port2"
Position [400, 350, 420, 370]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "SysMux"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "x1"
DstPort 1
}
Branch {
DstBlock "x2"
DstPort 1
}
Branch {
DstBlock "x3"
DstPort 1
}
Branch {
DstBlock "y1"
DstPort 1
}
Branch {
DstBlock "y2"
DstPort 1
}
}
Line {
SrcBlock "x1"
SrcPort 1
DstBlock "Integ1"
DstPort 1
}
Line {
SrcBlock "Integ1"
SrcPort 1
DstBlock "SysMux"
DstPort 1
}
Line {
SrcBlock "x2"
SrcPort 1
DstBlock "Integ2"
DstPort 1
}
Line {
SrcBlock "Integ2"
SrcPort 1
DstBlock "SysMux"
DstPort 2
}
Line {
SrcBlock "x3"
SrcPort 1
DstBlock "Integ3"
DstPort 1
}
Line {
SrcBlock "Integ3"
SrcPort 1
DstBlock "SysMux"
DstPort 3
}
Line {
SrcBlock "y1"
SrcPort 1
DstBlock "Port1"
DstPort 1
}
Line {
SrcBlock "y2"
SrcPort 1
DstBlock "Port2"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "XY Graph"
Ports [2]
Position [305, 132, 325, 163]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
xmin "-10"
xmax "50"
ymin "-20"
ymax "30"
st "0.025"
}
Line {
SrcBlock "DEE"
SrcPort 1
Points [40, 0; 0, 30]
DstBlock "XY Graph"
DstPort 1
}
Line {
SrcBlock "DEE"
SrcPort 2
Points [30, 0; 0, 30]
DstBlock "XY Graph"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -