📄 txline_filter_rab.mdl
字号:
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Lookup
InputValues "[-4:5]"
OutputValues " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType MagnitudeAngleToComplex
Input "Magnitude and angle"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType "M-S-Function"
MFile "mlfile"
}
Block {
BlockType Merge
Inputs "2"
InitialOutput "[]"
AllowUnequalInputPortWidths off
InputPortOffsets "[]"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType PMComponent
SubClassName "unknown"
}
Block {
BlockType PMIOPort
}
Block {
BlockType Probe
ProbeWidth on
ProbeSampleTime on
ProbeComplexSignal on
ProbeSignalDimensions off
ProbeFramedSignal off
ProbeWidthDataType "double"
ProbeSampleTimeDataType "double"
ProbeComplexityDataType "double"
ProbeDimensionsDataType "double"
ProbeFrameDataType "double"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
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 "txline_filter_rab"
Location [23, 326, 1155, 627]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name " "
Ports []
Position [15, 200, 75, 240]
BackgroundColor "cyan"
DropShadow on
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Interpolation filter info block"
MaskDisplay "disp('Info')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name " "
Location [6, 240, 534, 665]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name " Transmission Line Bandstop Filters\n\nThe "
"RF Blockset has the following blocks for transmission lines:\nCoaxial Transmi"
"ssion Line\nTransmission Line\nMicrostrip Transmission Line\nParallel Plate T"
"ransmission Line\nTwo Wire Transmission Line \nCoplanar Waveguide Transmissio"
"n Line\n\nThis demo simulates a bandstop Transmission Line filter and\na band"
"stop Microstrip filter with a Gaussian random signal input.\n\nThe spectrum p"
"lot shows frequency ranging from \n1.5GHz to 6.5GHz centered at 4GHz.\n\n\nIf"
" you want to see the frequency response centered at other RF frequency, \nyou"
" need to change the Center frequency parameter in the \n'Input Port' block.\n"
"\nIf you want to change the range of frequency response that is determined by"
" \nthe Sample time parameter specified in the 'Input Port' and 'White Noise' "
"blocks,\nyou need to change the Sample time parameter in both blocks.\n"
Position [265, 214]
FontName "MS Sans Serif"
FontSize 14
}
}
}
Block {
BlockType Reference
Name "Complex Filter Magnitude in dB"
Ports [1]
Position [985, 40, 1020, 90]
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 "-96.1327892395989"
YMax "-0.757755669667495"
YLabel "dB"
LineProperties off
LineColors "[0 1 1]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Complex Filter Phase in Degrees"
Ports [1]
Position [1020, 100, 1055, 150]
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 "-12540.2136509701"
YMax "12378.9930792327"
YLabel "Phase in Degrees"
LineProperties off
ShowPortLabels off
}
Block {
BlockType Reference
Name "Input Port1"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [150, 80, 195, 140]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "128"
Fc "4e9"
Ts "1/5e9"
Zs "50"
NoiseFlag off
seed "67987"
GoToTag "BAEFFHHQSZBERFFHEUVSUCG"
}
Block {
BlockType Reference
Name "Input Port2"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [150, 185, 195, 245]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "128"
Fc "4e9"
Ts "1/5e9"
Zs "50"
NoiseFlag off
seed "67987"
GoToTag "BAEACLDICAAIGSJKBYZDYGF"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [735, 95, 790, 150]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [695, 35, 750, 90]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Microstrip\nTransmission Line"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [220, 191, 310, 239]
ShowName off
SourceBlock "rftxlines1/Microstrip\nTransmission Line"
SourceType "Microstrip Transmission Line"
PhysicalDomain "rfsystemsdomain"
SubClassName "microstrip"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
Width "2.6501e-3"
Height "0.635e-3"
Thickness "0.01e-3"
EpsilonR "9.8"
SigmaCond "inf"
LossTangent "0"
LineLength "0.00663"
StubMode "Series"
Termination "Short"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "1.5e9:10e6:6.5e9"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "Microstrip\nTransmission Line1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [335, 191, 425, 239]
ShowName off
SourceBlock "rftxlines1/Microstrip\nTransmission Line"
SourceType "Microstrip Transmission Line"
PhysicalDomain "rfsystemsdomain"
SubClassName "microstrip"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
Width "0.40564e-3"
Height "0.635e-3"
Thickness "0.01e-3"
EpsilonR "9.8"
SigmaCond "inf"
LossTangent "0"
LineLength "0.00735"
StubMode "Shunt"
Termination "Open"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "1.5e9:10e6:6.5e9"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "Microstrip\nTransmission Line2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [450, 191, 540, 239]
ShowName off
SourceBlock "rftxlines1/Microstrip\nTransmission Line"
SourceType "Microstrip Transmission Line"
PhysicalDomain "rfsystemsdomain"
SubClassName "microstrip"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
Width "2.6501e-3"
Height "0.635e-3"
Thickness "0.01e-3"
EpsilonR "9.8"
SigmaCond "inf"
LossTangent "0"
LineLength "0.00663"
StubMode "Series"
Termination "Short"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "1.5e9:10e6:6.5e9"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "Output Port1"
Ports [0, 1, 0, 0, 0, 1]
Position [565, 80, 610, 140]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -