📄 base_band_spar.mdl
字号:
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "v"
DstPort 1
}
Line {
SrcBlock "source"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Phasor Measurements"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Mux"
DstPort 2
}
}
}
}
Block {
BlockType PMIOPort
Name "Test Port"
Tag "PMCPort"
Position [550, 96, 580, 114]
Orientation "left"
Port "1"
Side "Right"
}
Block {
BlockType Outport
Name "rho"
Position [550, 148, 580, 162]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Drive"
SrcPort 1
DstBlock "CVS"
DstPort 1
}
Line {
SrcBlock "VM"
SrcPort 1
DstBlock "rho"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "G1"
SrcPort LConn1
Points [0, -150]
DstBlock "CVS"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Test Port"
SrcPort RConn1
Points [0, 0; -50, 0]
Branch {
ConnectType "DEST_SRC"
Points [0, 30; -140, 0]
DstBlock "VM"
DstPort LConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "R3"
SrcPort RConn1
Points [0, 0; 25, 0]
}
}
Line {
LineType "Connection"
SrcBlock "G2"
SrcPort LConn1
Points [0, -20]
DstBlock "R4"
DstPort RConn1
}
Line {
LineType "Connection"
Points [200, 160; 0, -55; 10, 0]
DstBlock "R2"
DstPort LConn1
Branch {
ConnectType "SRC_SRC"
DstBlock "VM"
DstPort LConn2
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "R4"
SrcPort LConn1
Points [-15, 0; 0, -35]
}
}
Line {
LineType "Connection"
SrcBlock "CVS"
SrcPort RConn1
Points [130, 0; 0, 45]
Branch {
ConnectType "DEST_SRC"
DstBlock "R3"
DstPort LConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "R2"
SrcPort RConn1
Points [0, 0; 20, 0]
}
}
Annotation {
Name "Directional Bridge"
Position [349, 23]
}
}
}
Block {
BlockType SubSystem
Name "Format Data \nfor\nWorkspace"
Ports [3]
Position [665, 145, 710, 225]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Format Data \nfor\nWorkspace"
Location [387, 130, 1111, 521]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Syy"
Position [20, 98, 50, 112]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Sxy"
Position [20, 158, 50, 172]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Swap"
Position [20, 288, 50, 302]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [180, 76, 220, 134]
Output "Real and imag"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag1"
Ports [1, 2]
Position [245, 136, 285, 194]
Output "Real and imag"
}
Block {
BlockType Constant
Name "Freq_Vector"
Position [245, 25, 275, 55]
Value "2.56*BW*(0:1:(Frame_Size-1))/((Frame_Si"
"ze-1))"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [6, 1]
Position [420, 49, 510, 221]
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "6"
catMethod "Horizontal"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [105, 146, 145, 184]
Elements "[1:Frame_Size/2.56]"
InputPortWidth "Frame_Size"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [335, 41, 375, 79]
Elements "[1:Frame_Size/2.56]"
InputPortWidth "Frame_Size"
}
Block {
BlockType Selector
Name "Selector3"
Ports [1, 1]
Position [100, 86, 140, 124]
Elements "[1:Frame_Size/2.56]"
InputPortWidth "Frame_Size"
}
Block {
BlockType Switch
Name "Switch1"
Position [225, 248, 260, 342]
Threshold "0.5"
InputSameDT off
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [550, 120, 610, 150]
VariableName "spar"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Constant
Name "ones"
Position [115, 250, 145, 280]
Value "ones(1,Frame_Size/2.56)"
}
Block {
BlockType Constant
Name "zeros"
Position [115, 310, 145, 340]
Value "zeros(1,Frame_Size/2.56)"
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
DstBlock "Matrix\nConcatenation"
DstPort 5
}
Line {
SrcBlock "Freq_Vector"
SrcPort 1
Points [40, 0]
DstBlock "Selector2"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
DstBlock "Matrix\nConcatenation"
DstPort 3
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 4
}
Line {
SrcBlock "Syy"
SrcPort 1
DstBlock "Selector3"
DstPort 1
}
Line {
SrcBlock "Sxy"
SrcPort 1
DstBlock "Selector1"
DstPort 1
}
Line {
SrcBlock "ones"
SrcPort 1
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "zeros"
SrcPort 1
DstBlock "Switch1"
DstPort 3
}
Line {
SrcBlock "Swap"
SrcPort 1
DstBlock "Switch1"
DstPort 2
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [70, 0; 0, -85]
DstBlock "Matrix\nConcatenation"
DstPort 6
}
Line {
SrcBlock "Selector3"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 1
}
}
}
Block {
BlockType Switch
Name "Switch2"
Position [405, 477, 435, 543]
Threshold "0.5"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch3"
Position [405, 572, 435, 638]
Threshold "0.5"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch4"
Position [540, 337, 570, 403]
Orientation "left"
Threshold "0.5"
InputSameDT off
Port {
PortNumber 1
Name "B"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Switch
Name "Switch5"
Position [475, 412, 505, 478]
Orientation "left"
Threshold "0.5"
InputSameDT off
Port {
PortNumber 1
Name "A"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "Sxy Magnitude dB1"
Ports [1]
Position [500, 205, 535, 255]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[24 378 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "2*Fs"
XLabel "Time"
YUnits "dB"
YMin "-13.15892152793"
YMax "13.0887020387105"
YLabel "dB"
LineProperties off
LineColors "[1 0 0]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Syy Magnitude dB"
Ports [1]
Position [580, 65, 615, 115]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[24 92 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "2*Fs"
XLabel "Time"
YUnits "dB"
YMin "-26.6454859696172"
YMax "-20.1948464752037"
YLabel "dB"
LineProperties off
LineColors "[1 0 0]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType SubSystem
Name "Transfer Function 1"
Ports [2, 2]
Position [345, 59, 440, 181]
BackgroundColor "gray"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -