📄 modelle_v_regelkreis.mdl
字号:
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Messsysteme"
Location [275, 249, 1054, 701]
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 Inport
Name "sP"
Position [20, 43, 50, 57]
BackgroundColor "lightBlue"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "vP"
Position [20, 78, 50, 92]
BackgroundColor "lightBlue"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "aP"
Position [20, 113, 50, 127]
BackgroundColor "lightBlue"
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Derivative
Name "Derivative"
Position [380, 235, 410, 265]
}
Block {
BlockType SubSystem
Name "Diskret"
Ports [1, 1]
Position [95, 157, 155, 203]
BackgroundColor "orange"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Diskret"
Location [19, 191, 534, 396]
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 Inport
Name "sP"
Position [90, 58, 120, 72]
BackgroundColor "lightBlue"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [90, 115, 120, 145]
Value "par_position_diskret"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [170, 56, 215, 89]
Inputs "*/"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [350, 66, 395, 99]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Rounding
Name "Rounding\nFunction"
Position [260, 60, 290, 90]
}
Block {
BlockType Outport
Name "sist"
Position [435, 78, 465, 92]
BackgroundColor "lightBlue"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "sP"
SrcPort 1
Points [0, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0]
DstBlock "Rounding\nFunction"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [0, 0]
DstBlock "sist"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -50]
DstBlock "Product"
DstPort 2
}
Branch {
Points [180, 0; 0, -40]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Rounding\nFunction"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Annotation {
Name "Diskret"
Position [23, 15]
BackgroundColor "orange"
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Constant
Name "Ferraris"
Position [380, 290, 410, 320]
Value "0"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Reference
Name "Linear oder Ferraris"
Ports [2, 1]
Position [470, 242, 500, 278]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
ShowPortLabels "on"
SystemSampleTime "-1"
FunctionWithSeparateData "off"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sw "1"
action "0"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [675, 376, 680, 414]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Quantizer
Name "Quantizer"
Position [195, 165, 225, 195]
QuantizationInterval "par_time_diskret"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [700, 379, 730, 411]
Floating off
Location [13, 351, 337, 590]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.025"
YMin "-0.0005"
YMax "0.0025"
SaveName "ScopeData20"
DataFormat "StructureWithTime"
MaxDataPoints "500000"
SampleTime "0"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [290, 232, 350, 268]
Denominator "[0.001 1]"
}
Block {
BlockType Outport
Name "s_SM"
Position [295, 43, 325, 57]
BackgroundColor "lightBlue"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "v_SM"
Position [295, 78, 325, 92]
BackgroundColor "lightBlue"
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "a_SM"
Position [295, 113, 325, 127]
BackgroundColor "lightBlue"
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "s_ist"
Position [295, 173, 325, 187]
BackgroundColor "lightBlue"
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "v_ist"
Position [565, 253, 595, 267]
BackgroundColor "lightBlue"
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Ferraris"
SrcPort 1
Points [15, 0; 0, -35]
DstBlock "Linear oder Ferraris"
DstPort 2
}
Line {
SrcBlock "Derivative"
SrcPort 1
DstBlock "Linear oder Ferraris"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
DstBlock "Derivative"
DstPort 1
}
Line {
SrcBlock "Linear oder Ferraris"
SrcPort 1
DstBlock "v_ist"
DstPort 1
}
Line {
SrcBlock "sP"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "s_SM"
DstPort 1
}
Branch {
Points [0, 130]
DstBlock "Diskret"
DstPort 1
}
}
Line {
SrcBlock "vP"
SrcPort 1
DstBlock "v_SM"
DstPort 1
}
Line {
SrcBlock "aP"
SrcPort 1
DstBlock "a_SM"
DstPort 1
}
Line {
SrcBlock "Diskret"
SrcPort 1
DstBlock "Quantizer"
DstPort 1
}
Line {
SrcBlock "Quantizer"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "s_ist"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Transfer Fcn"
DstPort 1
}
}
Annotation {
Name "Messsysteme"
Position [37, 11]
BackgroundColor "orange"
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [145, 216, 150, 254]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [750, 16, 755, 54]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "PI_Regler\nGeschwindigkeit"
Ports [3, 1]
Position [100, 67, 180, 113]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "PI_Regler\nGeschwindigkeit"
Location [533, 434, 1053, 664]
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"
Block {
BlockType Inport
Name "v_soll"
Position [35, 43, 65, 57]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "v_additiv"
Position [35, 83, 65, 97]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "v-ist"
Position [35, 128, 65, 142]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType TransferFcn
Name "Glaettungsfilter_v"
Position [255, 32, 315, 68]
Numerator "[Vg_v]"
Denominator "[Tg_v 1]"
}
Block {
BlockType SubSystem
Name "Subsystem_v_Regler"
Ports [2, 1]
Position [355, 107, 420, 158]
BackgroundColor "orange"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem_v_Regler"
Location [490, 99, 930, 297]
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 Inport
Name "v_ist"
Position [25, 78, 55, 92]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "v_soll"
Position [25, 33, 55, 47]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "Gain1"
Position [165, 101, 245, 149]
ShowName off
Gain "Kp_v/Tn_v"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Integrator
Name "Int_R"
Ports
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -