📄 coupled_inductor_test.mdl
字号:
}
Line {
SrcBlock "VM2"
SrcPort 1
DstBlock "Int 2"
DstPort 1
}
Line {
SrcBlock "1/L1"
SrcPort 1
Points [29, 0]
DstBlock "Sum"
DstPort 1
}
Line {
Name "I1"
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Labels [1, 1]
DstBlock "CCS1"
DstPort 1
}
Branch {
Points [0, 110]
Branch {
DstBlock "M12/L2"
DstPort 1
}
Branch {
Points [220, 0; 0, 220]
DstBlock "M13/L3"
DstPort 1
}
}
}
Line {
Name "I2"
Labels [0, 0]
SrcBlock "Sum1"
SrcPort 1
Points [0, 0; 50, 0]
Branch {
DstBlock "M12/L1"
DstPort 1
}
Branch {
Points [10, 0]
Branch {
DstBlock "CCS2"
DstPort 1
}
Branch {
Points [0, 65; 55, 0]
DstBlock "M23/L3"
DstPort 1
}
}
}
Line {
SrcBlock "1/L2"
SrcPort 1
Points [14, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "M12/L1"
SrcPort 1
Points [0, -75; -71, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "M12/L2"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
LineType "Connection"
Points [145, 515; 0, 65; 340, 0; 0, -30]
DstBlock "CCs3"
DstPort LConn1
Branch {
ConnectType "SRC_DEST"
SrcBlock "L3A"
SrcPort RConn1
Points [10, 0; 5, 0]
}
Branch {
ConnectType "SRC_SRC"
DstBlock "VM3"
DstPort LConn1
}
}
Line {
LineType "Connection"
Points [580, 535; 0, 75; -380, 0; 0, -85]
DstBlock "VM3"
DstPort LConn2
Branch {
ConnectType "SRC_SRC"
Points [15, 0]
DstBlock "L3B"
DstPort RConn1
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "CCs3"
SrcPort RConn1
Points [0, 0; 25, 0]
}
}
Line {
SrcBlock "Int 3"
SrcPort 1
DstBlock "1/L3"
DstPort 1
}
Line {
SrcBlock "VM3"
SrcPort 1
DstBlock "Int 3"
DstPort 1
}
Line {
Name "I3"
Labels [0, 0]
SrcBlock "Sum2"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "CCs3"
DstPort 1
}
Branch {
Points [0, -40]
Branch {
DstBlock "M13/L1"
DstPort 1
}
Branch {
Points [-70, 0]
DstBlock "M23/L2"
DstPort 1
}
}
}
Line {
SrcBlock "1/L3"
SrcPort 1
Points [14, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "M13/L1"
SrcPort 1
Points [0, -5; 205, 0; 0, -245; -200, 0; 0, -75]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "M23/L2"
SrcPort 1
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "M13/L3"
SrcPort 1
Points [0, 40]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "M23/L3"
SrcPort 1
Points [0, 15; -45, 0; 0, 50]
DstBlock "Sum2"
DstPort 3
}
Annotation {
Name "(1/S)*V1 = I1*L1+M12*I2+M13*I3 ---> "
" (1/L1*S)*V1-(M12/L1)*I2-(M13/L1)*I3=I1"
Position [397, 34]
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "(1/S)*V2 = I1*M12+L2*I2+M23*I3"
Position [172, 239]
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "(1/S)*V3 = I1*M13+L3*I3+M23*I2"
Position [162, 469]
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "This scheme may be expanded to handle 4 or "
"more mutually coupled inductors."
Position [399, 640]
}
}
}
Block {
BlockType Reference
Name "BPF Magnitude dB"
Ports [1]
Position [290, 300, 325, 350]
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 "[29 216 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "2*Fs"
XLabel "Time"
YUnits "dB"
YMin "-60"
YMax "0"
YLabel "dB"
LineProperties off
LineColors "[0 0 1]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType SubSystem
Name "BandPass Transfer Function"
Description "Spectrum Analyzer"
Ports [2, 3]
Position [65, 283, 230, 367]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "Bandwidth|Center Freq|FFT Length (power of 2)|A"
"veraging Factor (>=1)"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "BW=@1;Fc=@2;NFFT=@3;Avg_fac=@4;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "40e6|100e6|1024|100"
MaskTabNameString ",,,"
System {
Name "BandPass Transfer Function"
Location [22, 78, 801, 633]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Reference"
Position [20, 102, 60, 118]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Response"
Position [20, 307, 60, 323]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex1"
Ports [2, 1]
Position [370, 298, 400, 327]
Input "Real and imag"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex2"
Ports [2, 1]
Position [365, 103, 395, 132]
Input "Real and imag"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [25, 35, 55, 65]
ShowName off
SineType "Time based"
Frequency "2*pi*(Fc)"
Phase "-pi/2"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave2"
Ports [0, 1]
Position [25, 160, 55, 190]
ShowName off
SineType "Time based"
Frequency "2*pi*(Fc)"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Transfer Function"
Ports [2, 2]
Position [560, 154, 655, 276]
BackgroundColor "gray"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "FFT length (power of 2):|Spectral Averaging"
" Factor (>=1):|Percentage of Alias Free Data (<=100)|Unwrap Phase"
MaskStyleString "edit,edit,edit,checkbox"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "NFFT=@1;Navg=@2;pcnt=@3;unwrap_flag=@4;"
MaskDisplay "disp('Transfer Function \\n Estimation')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "NFFT|Avg_fac|100/1.28|on"
MaskTabNameString ",,,"
System {
Name "Transfer Function"
Location [8, 82, 1249, 438]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "IN"
Position [15, 48, 45, 62]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "OUT"
Position [15, 128, 45, 142]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [70, 30, 120, 80]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "NFFT"
V "NFFT/2"
ic "0"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [75, 110, 125, 160]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "NFFT"
V "NFFT/2"
ic "0"
}
Block {
BlockType Constant
Name "Complex Range"
Position [270, 175, 300, 205]
Value "[1:round(NFFT*pcnt/200),round(1+NFFT-NF"
"FT*pcnt/200):NFFT];"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle"
Ports [1, 1]
Position [870, 120, 900, 150]
Output "Angle"
}
Block {
BlockType Reference
Name "Downsample1"
Ports [1, 1]
Position [325, 38, 360, 72]
ShowName off
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "2"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Downsample2"
Ports [1, 1]
Position [325, 118, 360, 152]
ShowName off
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "2"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [265, 38, 305, 72]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
additionalParams off
SkipNorm off
allowOverrides on
firstCoeffMode "Specify word length"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as input"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -