📄 dsp_test.mdl
字号:
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 "2e-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 [6]
Position [505, 268, 540, 307]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [1, 49, 1025, 714]
Open off
NumInputPorts "6"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
axes4 ""
axes5 ""
axes6 ""
}
Grid "on"
TimeRange "0.03"
YMin "0~0~0~0~0~0"
YMax "2~2~2~2~2~2"
SaveToWorkspace off
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "20"
SampleInput off
SampleTime "5e-6"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [900, 275, 935, 315]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [235, 357, 617, 684]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "0.03"
YMin "0"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "20"
SampleInput off
SampleTime "5e-6"
}
Block {
BlockType Reference
Name "Voltage Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [840, 283, 865, 307]
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PSBOutputType "0"
PSBequivalent "1"
}
Line {
SrcBlock "SVPWM Generator"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Scope"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 4
Points [10, 0]
Branch {
DstBlock "Scope"
DstPort 4
}
Branch {
Points [0, -65]
DstBlock "Controlled Voltage Source"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 5
DstBlock "Scope"
DstPort 5
}
Line {
SrcBlock "Demux"
SrcPort 6
DstBlock "Scope"
DstPort 6
}
Line {
SrcBlock "Parallel RLC Branch"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Parallel RLC Branch1"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Voltage Measurement"
DstPort 1
}
}
Line {
SrcBlock "Controlled Voltage Source"
SrcPort 1
Points [40, 0; 0, -10]
DstBlock "Parallel RLC Branch"
DstPort 1
}
Line {
SrcBlock "Controlled Voltage Source"
SrcPort 2
Points [300, 0]
DstBlock "Bus Bar (vert)"
DstPort 2
}
Line {
SrcBlock "Parallel RLC Branch1"
SrcPort 1
DstBlock "Bus Bar (vert)"
DstPort 1
}
Line {
SrcBlock "Ground (output)"
SrcPort 1
Points [0, -30]
Branch {
DstBlock "Voltage Measurement"
DstPort 2
}
Branch {
Points [0, -55]
DstBlock "Bus Bar (vert)"
DstPort 3
}
}
Line {
SrcBlock "Voltage Measurement"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
Annotation {
Position [620, 183]
Text "1.5k"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -