📄 enabled.mdl
字号:
Location [128, 280, 487, 453]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [430, 71, 435, 109]
ShowName off
FontName "Helvetica"
FontSize 10
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [430, 251, 435, 289]
ShowName off
FontName "Helvetica"
FontSize 10
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Pulse\nGenerator"
Ports [0, 1]
Position [130, 178, 165, 202]
ShowName off
AttributesFormatString "Period: %<period>\\nDuty cycle: %<duty>%"
FontName "Helvetica"
FontSize 10
SourceBlock "simulink3/Sources/Pulse\nGenerator"
SourceType "Pulse Generator"
period "5"
duty "50"
amplitude "1"
start "0"
VectorParams1D on
Port {
PortNumber 1
Name "Enable Signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType SubSystem
Name "Saturation between -0.75 and 0.75\nOutput held"
Ports [1, 1, 1]
Position [265, 239, 345, 281]
FontName "Helvetica"
FontSize 10
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
Port {
PortNumber 1
Name "Saturation - Output Held"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
System {
Name "Saturation between -0.75 and 0.75\nOutput hel"
"d"
Location [148, 182, 415, 317]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [25, 73, 55, 87]
FontName "Helvetica"
FontSize 10
Port "1"
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [30, 15, 50, 35]
FontName "Helvetica"
FontSize 10
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Saturate
Name "Saturation"
Position [105, 65, 135, 95]
FontName "Helvetica"
FontSize 10
UpperLimit "0.75"
LowerLimit "-0.75"
LinearizeAsGain on
}
Block {
BlockType Outport
Name "Out"
Position [195, 73, 225, 87]
FontName "Helvetica"
FontSize 10
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [535, 170, 570, 210]
ShowName off
StartFcn "open_system(gcbh)"
FontName "Helvetica"
FontSize 10
Floating off
Location [531, 136, 924, 691]
Open on
NumInputPorts "3"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
Grid "on"
TimeRange "10"
YMin "-1.6~-0.1~-1.5"
YMax "3.6~1.1~3.5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Structure"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [15, 127, 40, 153]
ShowName off
FontName "Helvetica"
FontSize 10
Amplitude "1"
Frequency "1"
Phase "0"
SampleTime "0"
VectorParams1D on
Port {
PortNumber 1
Name "Sin Wave"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [455, 80, 475, 100]
ShowName off
FontName "Helvetica"
FontSize 10
IconShape "round"
Inputs "++|"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "Output Reset"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [455, 260, 475, 280]
ShowName off
FontName "Helvetica"
FontSize 10
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "Output Held"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Line {
Name "Sin Wave"
FontName "Helvetica"
FontSize 9
SrcBlock "Sine Wave"
SrcPort 1
Points [15, 0]
Branch {
Labels [1, 0]
DstBlock "Abs\nOutput Reset"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, 120]
Branch {
DstBlock "Saturation between -0.75 and 0.75\nOutput h"
"eld"
DstPort 1
}
Branch {
Points [0, 60; 345, 0; 0, -40]
DstBlock "Mux1"
DstPort 2
}
}
}
Line {
Name "Saturation - Output Held"
FontName "Helvetica"
FontSize 9
SrcBlock "Saturation between -0.75 and 0.75\nOutput held"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Saturation between -0.75 and 0.75\nOutput held"
DstPort enable
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Abs\nOutput Reset"
SrcPort 1
Points [50, 0; 0, -40]
DstBlock "Mux"
DstPort 2
}
Line {
Name "Output Reset"
FontName "Helvetica"
FontSize 9
Labels [0, 1]
SrcBlock "Sum"
SrcPort 1
Points [15, 0; 0, 85]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
Name "Enable Signal"
FontName "Helvetica"
FontSize 9
Labels [0, 1]
SrcBlock "Pulse\nGenerator"
SrcPort 1
Points [135, 0]
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 2
}
Branch {
DstBlock "Abs\nOutput Reset"
DstPort enable
}
}
Line {
Name "Output Held"
FontName "Helvetica"
FontSize 9
Labels [0, 0]
SrcBlock "Sum1"
SrcPort 1
Points [15, 0; 0, -65]
DstBlock "Scope"
DstPort 3
}
Annotation {
Position [278, 17]
Text "Enabled Subsystem Demonstration"
FontName "Helvetica"
FontSize 18
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -