📄 conti_svpwm.mdl
字号:
OutputDimensions "-1"
OutputSignalType "auto"
Output1D off
}
Block {
BlockType Mux
Name "Mux"
Ports [5, 1]
Position [395, 31, 400, 99]
ShowName off
Inputs "5"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [120, 61, 125, 119]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [6, 1]
Position [780, 15, 785, 170]
ShowName off
Inputs "6"
DisplayOption "none"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Position [150, 46, 175, 64]
ShowName off
PulseType "Time-based"
Amplitude "1"
Period "1e-4"
PulseWidth "50"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType Reference
Name "Sample\nand Hold"
Ports [1, 1, 0, 1]
Position [185, 75, 220, 105]
ShowName off
SourceBlock "dspsigops/Sample\nand Hold"
SourceType "Sample and Hold"
trig "Rising edge"
initCond "0"
}
Block {
BlockType Outport
Name "Pulses"
Position [805, 88, 835, 102]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Demux2"
SrcPort 3
Points [110, 0; 0, -20]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [80, 0; 0, -25]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [60, 0; 0, -30]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Sample\nand Hold"
SrcPort 1
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Sample\nand Hold"
DstPort 1
}
Line {
SrcBlock "Discrete\nVirtual PLL"
SrcPort 3
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
Points [20, 0]
DstBlock "Sample\nand Hold"
DstPort trigger
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [35, 0]
DstBlock "Mux"
DstPort 5
}
Line {
SrcBlock "Discrete\nVirtual PLL"
SrcPort 2
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "Discrete\nVirtual PLL"
SrcPort 1
Points [0, -10]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [5, 0; 0, -25; 70, 0]
Branch {
DstBlock "Mux2"
DstPort 1
}
Branch {
DstBlock "Data Type \nConversion"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [55, 0; 0, 15; 10, 0]
Branch {
DstBlock "Mux2"
DstPort 3
}
Branch {
DstBlock "Data Type \nConversion4"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [5, 0; 0, 40; 50, 0; 0, 15; 5, 0]
Branch {
DstBlock "Mux2"
DstPort 5
}
Branch {
Points [0, 25]
DstBlock "Data Type \nConversion5"
DstPort 1
}
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Pulses"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Data Type \nConversion1"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion1"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
DstBlock "Data Type \nConversion2"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion2"
SrcPort 1
DstBlock "Mux2"
DstPort 4
}
Line {
SrcBlock "Logical\nOperator2"
SrcPort 1
DstBlock "Data Type \nConversion3"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion3"
SrcPort 1
DstBlock "Mux2"
DstPort 6
}
Line {
SrcBlock "Data Type \nConversion4"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion5"
SrcPort 1
DstBlock "Logical\nOperator2"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [605, 248, 640, 332]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [255, 53, 765, 691]
Open off
NumInputPorts "4"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
axes4 ""
}
Grid "on"
TimeRange "0.03"
YMin "-750~-12.5~-440~0.25"
YMax "1000~12.5~-432~1.75"
SaveToWorkspace on
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "20"
SampleInput off
SampleTime "5e-6"
}
Block {
BlockType SubSystem
Name "SubSystem1"
Ports []
Position [636, 146, 738, 201]
DropShadow on
ShowName off
OpenFcn "psbfft_scope(ScopeData2,50,1000,20,1);"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('Double click\\n to display spectrum\\nof "
"V inverter\\nScope2')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "SubSystem1"
Location [154, 176, 810, 410]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Annotation {
Position [342, 116]
Text "Double clicking on this block will perform "
"the spectral analysis of a signal stored in a \"Structure with time\"\nThe an"
"alysis is performed by the \"psbfft_scope\" function.\n\nType \"help psbfft_"
"scope\" to obtain the function syntax and documentation.\n\nThe callback to"
" \"psbfft_scope\" is stored in the \"Open function\" field of the Block Prope"
"rties. \n"
FontSize 12
}
}
}
Block {
BlockType Reference
Name "Vab"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [355, 133, 380, 157]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PSBOutputType "0"
PSBequivalent "0"
Port {
PortNumber 1
Name "Vab (V)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Reference
Name "Vdc1"
Tag "PoWeRsYsTeMbLoCk"
Description "source block"
Ports [1, 1]
Position [120, 160, 140, 195]
Orientation "up"
NamePlacement "alternate"
SourceBlock "powerlib2/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
V "644"
mesure "None"
PSBOutputType "1"
}
Line {
Name "Vab (V)"
Labels [-1, 0]
SrcBlock "Vab"
SrcPort 1
Points [205, 0]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Induction Motor\n50 HP / 380V"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Bus Bar (thin horiz)1"
SrcPort 1
DstBlock "Vdc1"
DstPort 1
}
Line {
SrcBlock "Bus Bar (thin horiz)1"
SrcPort 2
DstBlock "IGBT Inverter1"
DstPort 2
}
Line {
SrcBlock "Vdc1"
SrcPort 1
Points [35, 0]
DstBlock "IGBT Inverter1"
DstPort 1
}
Line {
SrcBlock "IGBT Inverter1"
SrcPort 3
DstBlock "Induction Motor\n50 HP / 380V"
DstPort 3
}
Line {
SrcBlock "IGBT Inverter1"
SrcPort 1
Points [25, 0]
Branch {
Points [0, -60]
DstBlock "Vab"
DstPort 1
}
Branch {
DstBlock "Induction Motor\n50 HP / 380V"
DstPort 1
}
}
Line {
SrcBlock "IGBT Inverter1"
SrcPort 2
Points [40, 0]
Branch {
Points [0, -70]
DstBlock "Vab"
DstPort 2
}
Branch {
DstBlock "Induction Motor\n50 HP / 380V"
DstPort 2
}
}
Line {
SrcBlock "Load_torque1"
SrcPort 1
Points [35, 0; 0, -15]
DstBlock "Induction Motor\n50 HP / 380V"
DstPort 4
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [15, 0; 0, 85]
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [25, 0; 0, 70]
DstBlock "Scope"
DstPort 3
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [65, 0]
DstBlock "Scope"
DstPort 4
}
Line {
SrcBlock "SVPWM Generator"
SrcPort 1
Points [25, 0; 0, -15]
DstBlock "IGBT Inverter1"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -