📄 vehicle_series1.mdl
字号:
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
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 PMComponent
SubClassName "unknown"
}
Block {
BlockType PMIOPort
}
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
Floating off
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 "0"
}
Block {
BlockType Signum
ZeroCross on
SampleTime "-1"
}
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"
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "vehicle_series1"
Location [2, 82, 1014, 721]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Scope
Name "Acceleration"
Ports [1]
Position [805, 409, 835, 441]
Location [190, 508, 514, 747]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Constant
Name "Constant"
Position [550, 220, 580, 250]
Value "0"
}
Block {
BlockType Scope
Name "Current"
Ports [1]
Position [730, 374, 760, 406]
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Reference
Name "Current Measurement"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [388, 265, 412, 290]
Orientation "down"
NamePlacement "alternate"
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "DC Machine"
Ports [1, 1, 0, 0, 0, 2, 2]
Position [290, 62, 375, 158]
AncestorBlock "powerlib/Machines/DC Machine"
LoadFcn "find_system(gcs,'FollowLinks', 'on', 'LookUnder"
"Masks', 'all');"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "DC machine"
MaskDescription "This block implements a separately excited DC m"
"achine. Access is provided to the field connections so that the machine can "
"be used as a shunt-connected or a series-connected DC machine."
MaskHelp "web(psbhelp)"
MaskPromptString "Preset model|----------------- Show detailed "
"parameters ----------------- |Armature resistance and inductance [Ra (ohms) L"
"a (H) ]|Field resistance and inductance [Rf (ohms) Lf (H) ]|Field-armature mu"
"tual inductance Laf (H) :|Total inertia J (kg.m^2)|Viscous friction coefficie"
"nt Bm (N.m.s)|Coulomb friction torque Tf (N.m)|Initial speed (rad/s) :"
MaskStyleString "popup(No|01: 5HP 240V 1750RPM Field:300V|02: 5H"
"P 240V 1750RPM Field:150V|03: 5HP 500V 1750RPM Field:300V|04: 10HP 240V 1750R"
"PM Field:300V|05: 10HP 500V 1750RPM Field:300V|06: 20HP 240V 1750RPM Field:30"
"0V|07: 20HP 500V 1750RPM Field:300V|08: 30HP 240V 1750RPM Field:300V|09: 30HP"
" 500V 1750RPM Field:300V|10: 40HP 240V 1750RPM Field:300V|11: 40HP 500V 1750R"
"PM Field:300V|12: 50HP 240V 1750RPM Field:300V|13: 50HP 500V 1750RPM Field:30"
"0V|14: 75HP 500V 1750RPM Field:300V|15: 100HP 500V 1750RPM Field:300V|16: 125"
"HP 500V 1750RPM Field:300V|17: 150HP 500V 1750RPM Field:300V|18: 175HP 500V 1"
"750RPM Field:300V|19: 200HP 440V 1184RPM Field:310V|20: 200HP 500V 1750RPM Fi"
"eld:150V|21: 200HP 500V 1750RPM Field:300V|22: 225HP 500V 1750RPM Field:300V|"
"23: 250HP 500V 1750RPM Field:300V),checkbox,edit,edit,edit,edit,edit,edit,edi"
"t"
MaskTunableValueString "off,off,off,off,off,off,off,off,off"
MaskCallbackString "powericon('DCMachineCback',gcb,'Continuous');|p"
"owericon('DCMachineCback',gcb,'Continuous');|||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,"
MaskVariables "PresetModel=@1;ShowDetailedParameters=@2;RLa=@3"
";RLf=@4;Laf=@5;J=@6;Bm=@7;Tf=@8;w0=@9;"
MaskInitialization "Ra=RLa(1); La=RLa(2);\n\nRf=RLf(1); Lf=RLf(2);"
"\n\n"
MaskDisplay "plot(-80,-80,80,80,[0,9,18,24,29,30,29,24,18,9,"
"0,-9,-18,-24,-29,-30,-29,-24,-18,-9,0],[30,29,24,18,9,0,-9,-18,-24,-29,-30,-2"
"9,-24,-18,-9,0,9,18,24,29,30],[-29,-35,-35,-29],[-8,-8,8,8],[29,35,35,29],[-8"
",-8,8,8],[-35,-55],[0,0],[35,55],[0,0],[-78,-50,-50,-49,-45,-39,-33,-26,-21,-"
"18,-17,-19,-22,-22,-26,-27,-25,-22,-16,-9,-3,2,6,6,4,1,1,-3,-4,-2,2,7,14,20,2"
"6,29,30,28,24,24,21,20,21,25,31,37,44,49,50,50,50,78]*.7,[58,58,57.2,49.2,42."
"8,38.8,38,39.6,44.4,51.6,59.6,67.6,72.4,72.4,65.2,57.2,49.2,42.8,38.8,38,39.6"
",44.4,51.6,59.6,67.6,72.4,72.4,65.2,57.2,49.2,42.8,38.8,38,39.6,44.4,51.6,59."
"6,67.6,72.4,72.4,65.2,57.2,49.2,42.8,38.8,38,39.6,44.4,51.6,58,58,58]*.6-85 )"
";\n\ndisp('dc')\n\ncolor('blue');\n\nplot([-50,-10,-10],[50,50,30]);\n\nplot("
"[50,10,10],[50,50,30]);\n\n"
MaskIconFrame off
MaskIconOpaque off
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "No|on|[ 0.0867 3.605e-3]|[ 0.0333 2.403e-3]|1"
".766e-3|0.05|0.0002|0|0"
MaskTabNameString ",,,,,,,,"
System {
Name "DC Machine"
Location [349, 321, 883, 631]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "TL"
Position [180, 113, 210, 127]
ForegroundColor "blue"
NamePlacement "alternate"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "FCEM"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [422, 55, 458, 100]
Orientation "up"
SourceBlock "powerlib/Electrical\nSources/Controlled Vol"
"tage Source"
SourceType "Controlled Voltage Source"
ShowPortLabels on
Initialize on
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType SubSystem
Name "Measurement list"
Ports [1, 1]
Position [325, 144, 375, 166]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Measurement list"
Location [66, 280, 424, 413]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "cyan"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 63, 50, 77]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType BusCreator
Name "Bus\nCreator1"
Ports [4, 1]
Position [265, 18, 270, 117]
ShowName off
DialogController "Simulink.DDGSource_Bus"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 4]
Position [75, 16, 80, 119]
ShowName off
Outputs "[1,1,1,1]"
DisplayOption "bar"
Port {
PortNumber 1
Name "Speed wm (rad/s)"
PropagatedSignals "w"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 2
Name "Armature current ia (A)"
PropagatedSignals "ia"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 3
Name "Field current if (A)"
PropagatedSignals "a"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 4
Name "Electrical torque Te (n m)"
PropagatedSignals "Te"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Outport
Name "Out1"
Position [295, 63, 325, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Name "Electrical torque Te (n m)"
Labels [0, 0]
SrcBlock "Demux"
SrcPort 4
DstBlock "Bus\nCreator1"
DstPort 4
}
Line {
Name "Field current if (A)"
Labels [0, 0]
SrcBlock "Demux"
SrcPort 3
DstBlock "Bus\nCreator1"
DstPort 3
}
Line {
Name "Armature current ia (A)"
Labels [0, 0]
SrcBlock "Demux"
SrcPort 2
DstBlock "Bus\nCreator1"
DstPort 2
}
Line {
Name "Speed wm (rad/s)"
Labels [0, 0]
SrcBlock "Demux"
SrcPort 1
DstBlock "Bus\nCreator1"
DstPort 1
}
Line {
SrcBlock "Bus\nCreator1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Mechanics"
Ports [3, 2]
Position [240, 110, 300, 170]
DropShadow on
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Mechanics"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "TL"
Position [15, 15, 35, 35]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "ia"
Position [15, 64, 40, 86]
Port "2"
IconDisplay "Port number"
LatchInput off
Port {
PortNumber 1
Name "ia"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Inport
Name "if"
Position [15, 213, 40, 237]
Port "3"
IconDisplay "Port number"
LatchInput off
Port {
PortNumber 1
Name "If"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "Coulomb (Tf) &\nViscous ( Bm*w) \nFrict"
"ion Torques"
Ports [1, 1]
Position [350, 135, 380, 165]
Orientation "left"
SourceBlock "simulink/Discontinuities/Coulomb &\nVis"
"cous Friction"
SourceType "Coulombic and Viscous Friction"
ShowPortLabels on
offset "Tf"
gain "Bm"
}
Block {
BlockType Gain
Name "Gain2"
Position [365, 70, 395, 100]
ShowName off
Gain "1/J"
Port {
PortNumber 1
Name "a"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -