📄 bpf_2_compare.mdl
字号:
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RateTransition
Integrity on
Deterministic on
X0 "0"
OutPortSampleTime "-1"
}
Block {
BlockType Sensor
SubClassName "unknown"
PortType "blob"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
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 Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
}
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 "bpf_2_compare"
Location [30, 114, 942, 493]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Complex Filter Magnitude in dB"
Ports [1]
Position [790, 145, 825, 195]
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 "[75 330 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "2*Fs"
XLabel "Time"
YUnits "dB"
YMin "-95"
YMax "5"
YLabel "dB"
LineProperties off
LineColors "[0 0 1]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Complex Filter Phase in Degrees"
Ports [1]
Position [785, 205, 820, 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 "[457 331 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Frequency"
YUnits "Magnitude"
YMin "-651.813751660222"
YMax "818.964133807658"
YLabel "Phase in Degrees"
LineProperties off
LineColors "[0 0 1]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType Gain
Name "Gain"
Position [100, 75, 130, 105]
Gain "2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "General\nPassive Network"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [265, 66, 355, 114]
SourceBlock "rfblackbox1/General\nPassive Network"
SourceType "General Passive Network"
PhysicalDomain "rfsystemsdomain"
SubClassName "general-passive-network"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
RFDATA "read(rfdata.data, 'rab_bpf_2.s2p')"
InterpMethod "Linear"
DisplayData on
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "Extracted from RFDATA object"
Freq "[0.3e6:0.1e6:6e9]"
AllPlotType "Composite data"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "General \nCircuit Element"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [260, 241, 350, 289]
SourceBlock "rfblackbox1/General \nCircuit Element"
SourceType "General Circuit Element"
PhysicalDomain "rfsystemsdomain"
SubClassName "general-circuit-element"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
Ckt "LCBPF_filt"
DisplayData on
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "[1.0e9:1.0e6:1.4e9]"
AllPlotType "Composite data"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "Input Port1"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [185, 70, 215, 110]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "256"
Fc "1.2e9"
Ts "1/(200e6)"
Zs "50"
NoiseFlag off
seed "67987"
GoToTag "BBCFECDBVZDKWZGASVBTWTO"
}
Block {
BlockType Reference
Name "Input Port2"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [185, 245, 215, 285]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "256"
Fc "1.2e9"
Ts "1/(200e6)"
Zs "50"
NoiseFlag off
seed "67987"
GoToTag "BADDICMIBWYZHILASVBAWTO"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [520, 149, 575, 191]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [515, 234, 570, 276]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Output Port1"
Ports [0, 1, 0, 0, 0, 1]
Position [395, 71, 435, 109]
SourceBlock "rfports1/Output Port"
SourceType "Output Port"
ShowPortLabels on
Zl "50"
num_Models "1"
GoToTag "BBCFECDBVZDKWZGASVBTWTO"
DisplayData on
PlotFreq "Derived from Input Port parameters"
Freq "1e9:1e8:3e9"
AllPlotType "Composite data"
NoBudgetPlot "Composite data"
NetworkData "S11"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
DBMFormat "dBm"
NoneFormat "None"
Port {
PortNumber 1
Name "Top Filt"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "Output Port2"
Ports [0, 1, 0, 0, 0, 1]
Position [395, 246, 435, 284]
SourceBlock "rfports1/Output Port"
SourceType "Output Port"
ShowPortLabels on
Zl "50"
num_Models "1"
GoToTag "BADDICMIBWYZHILASVBAWTO"
DisplayData on
PlotFreq "Derived from Input Port parameters"
Freq "1e9:1e8:3e9"
AllPlotType "Composite data"
NoBudgetPlot "Composite data"
NetworkData "S11"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
DBMFormat "dBm"
NoneFormat "None"
Port {
PortNumber 1
Name "Bottom Filt"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "Random\nSource"
Ports [0, 1]
Position [35, 71, 70, 109]
UserDataPersistent on
UserData "DataTag0"
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "dspsrcs4/Random\nSource"
SourceType "Random Source"
SrcType "Gaussian"
NormMethod "Ziggurat"
CltLength "12"
MinVal "0"
MaxVal "1"
MeanVal "0"
VarVal "1"
RepMode "Not repeatable"
rawSeed "1"
IsInherit off
SampMode "Discrete"
SampTime "1/(200e6)"
SampFrame "256"
DataType "Double"
OutComplex "Complex"
}
Block {
BlockType SubSystem
Name "Transfer Function "
Ports [2, 2]
Position [625, 139, 720, 261]
BackgroundColor "gray"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "FFT length (power of 2):|Spectral Averaging Fac"
"tor (>=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 "1024|100|100|on"
MaskTabNameString ",,,"
System {
Name "Transfer Function "
Location [10, 78, 1247, 418]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Reference"
Position [15, 48, 45, 62]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Response"
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-NFFT*p"
"cnt/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 "DataTag1"
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 {
BlockType Reference
Name "FFT1"
Ports [1, 1]
Position [265, 118, 305, 152]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
additionalParams off
SkipNorm off
allowOverrides on
firstCoeffMode "User-defined"
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 {
BlockType Reference
Name "Filter1"
Ports [1, 1]
Position [675, 43, 745, 87]
ShowName off
SourceBlock "dsparch3/Direct-Form II\nTranspose Filter"
SourceType "Direct-Form II Transpose Filter"
num "1"
den "[Navg -(Navg-1)]"
ic "eps"
}
Block {
BlockType Reference
Name "Filter2"
Ports [1, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -