📄 cascaded_system_rab.mdl
字号:
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
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 "cascaded_system_rab"
Location [141, 81, 1163, 600]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name " "
Ports []
Position [50, 405, 110, 445]
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 [12, 147, 535, 514]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "Cascaded RF System\n\nThis demo shows how t"
"o cascade blocks from RF Physical Library. \nIn each of the first three yello"
"w diagrams from the top, \nthree physical blocks are cascaded:\nDifferent typ"
"es of transmission lines are used in the diagrams\nand they have different lo"
"ss. However,\ntheir characteristic impedances are all approximately 50 Ohm.\n"
"\nThe spectrum plot shows frequency ranging from \n1.85GHz to 2.35GHz centere"
"d at 2.1GHz.\n\nIf you want to see the frequency response centered at other R"
"F frequency, \nyou need to change the Center frequency parameter in the \n'In"
"put Port' block.\n\nIf you want to change the range of frequency response tha"
"t 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 bo"
"th blocks.\n"
Position [260, 184]
FontName "MS Sans Serif"
FontSize 14
}
}
}
Block {
BlockType Reference
Name "Coaxial\nTransmission Line"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [295, 221, 385, 269]
SourceBlock "rftxlines1/Coaxial\nTransmission Line"
SourceType "Coaxial Transmission Line"
PhysicalDomain "rfsystemsdomain"
SubClassName "coaxial"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
OuterRadius "5e-3"
InnerRadius "1.411e-3"
MuR "1"
EpsilonR "2.3"
SigmaCond "6.55e7"
SigmaDiel "0"
LineLength "1"
StubMode "Not a stub"
Termination "Open"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "[1.85e9:1e8:2.35e9]"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "Coaxial\nTransmission Line1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [525, 221, 615, 269]
SourceBlock "rftxlines1/Coaxial\nTransmission Line"
SourceType "Coaxial Transmission Line"
PhysicalDomain "rfsystemsdomain"
SubClassName "coaxial"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
OuterRadius "5e-3"
InnerRadius "1.411e-3"
MuR "1"
EpsilonR "2.3"
SigmaCond "6.55e7"
SigmaDiel "0"
LineLength "1"
StubMode "Not a stub"
Termination "Open"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "[1.85e9:1e8:2.35e9]"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "Complex Filter Magnitude in dB"
Ports [1]
Position [1060, 35, 1095, 85]
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 "-20.2850087376398"
YMax "16.6246691491821"
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 [1095, 95, 1130, 145]
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 "General Amplifier"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [410, 126, 500, 174]
SourceBlock "rfamplifiers1/General Amplifier"
SourceType "General Amplifier"
PhysicalDomain "rfsystemsdomain"
SubClassName "general-amplifier"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
RFDATA "read(rfdata.data, 'default.s2p')"
InterpMethod "Linear"
IP3Type "OIP3"
IIP3 "inf"
OIP3 "inf"
NF "0"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "Extracted from RFDATA object"
Freq "[1e9:1e8:2.9e9]"
AllPlotType "X-Y plane"
NetworkData "S21"
PowerData "S11"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
PowerFormat "dBm"
PhaseFormat "Angle (degrees)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "General Amplifier1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [410, 221, 500, 269]
SourceBlock "rfamplifiers1/General Amplifier"
SourceType "General Amplifier"
PhysicalDomain "rfsystemsdomain"
SubClassName "general-amplifier"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
RFDATA "read(rfdata.data, 'default.s2p')"
InterpMethod "Linear"
IP3Type "OIP3"
IIP3 "inf"
OIP3 "inf"
NF "0"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "Extracted from RFDATA object"
Freq "[1e9:1e8:2.9e9]"
AllPlotType "X-Y plane"
NetworkData "S21"
PowerData "S11"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
PowerFormat "dBm"
PhaseFormat "Angle (degrees)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "General Amplifier2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [410, 321, 500, 369]
SourceBlock "rfamplifiers1/General Amplifier"
SourceType "General Amplifier"
PhysicalDomain "rfsystemsdomain"
SubClassName "general-amplifier"
LeftPortType "p1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -