📄 apsuat.mdl
字号:
DstPort 1
}
Line {
SrcBlock "in1"
SrcPort 1
Points [135, 0; 0, -30]
DstBlock "\"Transistor\"\ndieu khien ap"
DstPort 2
}
Line {
SrcBlock "Tin hieu tu CPU"
SrcPort 1
DstBlock "Lay trung binh\nva gioi han trong\nkhoang ["
"-1 - 1]"
DstPort 1
}
Line {
SrcBlock "Lay trung binh\nva gioi han trong\nkhoang ["
"-1 - 1]"
SrcPort 1
Points [40, 0; 0, 30]
DstBlock "\"Transistor\"\ndieu khien ap"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "He thong can\ndieu ap"
Ports [2, 1]
Position [485, 155, 575, 215]
BackgroundColor "lightBlue"
DropShadow on
ShowPortLabels off
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('Binh ap suat\\n(Binh phan ung)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "He thong can\ndieu ap"
Location [174, 173, 583, 434]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Ap suat bom vao\nhay lay ra tu bo\ndieu khi"
"en ap"
Position [40, 75, 60, 95]
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "Ap suat \"nhieu\""
Position [40, 145, 60, 165]
Port "2"
Interpolate on
}
Block {
BlockType Scope
Name "Bieu do 1"
Ports [1]
Position [335, 14, 365, 46]
Floating off
Location [146, 155, 470, 394]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "100"
YMin "-1"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Bieu do 2"
Ports [1]
Position [335, 64, 365, 96]
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Bieu do 3"
Ports [1]
Position [335, 194, 365, 226]
Floating off
Location [188, 355, 512, 594]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "100"
YMin "-0.3"
YMax "0.3"
SaveToWorkspace off
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [270, 110, 290, 130]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Integrator
Name "Tong"
Ports [1, 1]
Position [195, 70, 225, 100]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "Ap suat tong\ncong trong binh"
Position [340, 110, 360, 130]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Ap suat bom vao\nhay lay ra tu bo\ndieu khi"
"en ap"
SrcPort 1
Points [50, 0]
Branch {
Points [0, -55]
DstBlock "Bieu do 1"
DstPort 1
}
Branch {
DstBlock "Tong"
DstPort 1
}
}
Line {
SrcBlock "Tong"
SrcPort 1
Points [0, 30]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Ap suat \"nhieu\""
SrcPort 1
Points [50, 0]
Branch {
Points [115, 0; 0, -30]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 55]
DstBlock "Bieu do 3"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Ap suat tong\ncong trong binh"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "Bieu do 2"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "He thong lam\ngiam toc do\ncua Simulink\nnham p"
"huc vu\ncho animate"
Ports []
Position [500, 47, 558, 78]
DropShadow on
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('ZELDA')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "He thong lam\ngiam toc do\ncua Simulink\nnham"
" phuc vu\ncho animate"
Location [220, 110, 526, 231]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Scope
Name "Nhan vao de xem su\nhan che toc do cua\nSim"
"ulink do he thong\nnay tao ra"
Ports [1]
Position [230, 24, 260, 56]
Floating off
Location [188, 355, 512, 594]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1000"
YMin "-2.5"
YMax "2.5"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Reference
Name "PID controller\nvoi N>>1"
Ports [1, 1]
Position [130, 25, 160, 55]
SourceBlock "simulink_extras/Additional\nLinear/PID Cont"
"roller\n(with Approximate\nDerivative)"
SourceType "PID(2) Controller"
P "2"
I "0"
D "1"
N "50"
}
Block {
BlockType Sin
Name "Tin hieu bat ky"
Position [30, 25, 60, 55]
Amplitude "1"
Frequency "1"
Phase "0"
SampleTime "0"
VectorParams1D on
}
Line {
SrcBlock "PID controller\nvoi N>>1"
SrcPort 1
DstBlock "Nhan vao de xem su\nhan che toc do cua\nSim"
"ulink do he thong\nnay tao ra"
DstPort 1
}
Line {
SrcBlock "Tin hieu bat ky"
SrcPort 1
DstBlock "PID controller\nvoi N>>1"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Ket qua cua su\ndieu khien ap suat"
Ports [1]
Position [645, 209, 700, 261]
BackgroundColor "green"
DropShadow on
Floating off
Location [579, 53, 795, 454]
Open on
NumInputPorts "1"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "200"
YMin "-0.25"
YMax "2.5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Array"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
MaskDisplay "disp('Bieu do')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType "S-Function"
Name "Ket qua cua su\ndieu khien ap suat "
Ports [1]
Position [645, 108, 700, 162]
BackgroundColor "green"
DropShadow on
NamePlacement "alternate"
FunctionName "apsuat_ani"
PortCounts "[]"
SFunctionModules "''"
MaskDisplay "disp('Animation')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "MCU: don vi dieu khien\ntrung tam voi ky thuat "
"\ndieu khien Fuzzy Logic"
Ports [1, 1]
Position [250, 118, 370, 202]
BackgroundColor "red"
DropShadow on
NamePlacement "alternate"
AncestorBlock "fuzblock/Fuzzy Logic \nController"
FontName "Arial"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "FIS"
MaskDescription "FIS"
MaskHelp "Fuzzy Inference System"
MaskPromptString "FIS File or Structure:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "fis=@1;"
MaskInitialization "fis = fuzblockmask(gcb,fis);"
MaskDisplay "plot(0, -0.3, 6, -0.3, 0, 1.2, 6, 1.2, [0 6], ["
"0 0], [1 2 3],[0 1 0],[2 3 4],[0 1 0],[3 4 5],[0 1 0])"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "apsuat_fuzzy"
MaskVariableAliases "MaskParam1"
System {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -