📄 sparam_amp_rab.mdl
字号:
}
Block {
BlockType Ground
}
Block {
BlockType SignalConversion
OverrideOpt off
}
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 "sparam_amp_rab"
Location [6, 76, 958, 378]
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 [370, 185, 430, 225]
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 [10, 147, 536, 549]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "AMP Data File for Amplifiers\n\nThe Amplifi"
"ers library has blocks to handle \nS, Y, and Z parameters of the amplifiers. "
"\nThe library also has 'General Amplifier' block \nthat can be used for the A"
"MP data file.\n\nThe data file: 'default.amp' has \nthe S-parameters of an am"
"plifier\nover the frequency range 1GHz to 2.9GHz,\nand Pin-Pot data at 2.1GHz"
".\nThe spectrum plot shows frequency ranging from \n1.85GHz to 2.35GHz center"
"ed at 2.1GHz.\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'I"
"nput Port' block.\n\nIf you want to change the range of frequency response th"
"at 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 b"
"oth blocks.\n\n"
Position [260, 209]
FontName "MS Sans Serif"
FontSize 14
}
}
}
Block {
BlockType Reference
Name "Complex Filter Magnitude in dB"
Ports [1]
Position [825, 150, 860, 200]
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 "[22 454 372 232]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "2*Fs"
XLabel "Time"
YUnits "dB"
YMin "-10.3908099330801"
YMax "13.8762287344487"
YLabel "dB"
LineProperties off
LineColors "[0 0 0]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Complex Filter Phase in Degrees"
Ports [1]
Position [860, 210, 895, 260]
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 "[403 451 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 [355, 51, 445, 99]
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.amp')"
InterpMethod "Linear"
IP3Type "OIP3"
IIP3 "inf"
OIP3 "inf"
NF "0"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "Extracted from RFDATA object"
Freq "[1.0e9:1.0e8: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 "Input Port"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [275, 45, 320, 105]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "128"
Fc "2.1e9"
Ts "2e-9"
Zs "50"
NoiseFlag off
seed "67987"
GoToTag "ABDCDEBMFDGIKHKQCUCLXRB"
}
Block {
BlockType Reference
Name "Manual Switch"
Ports [2, 1]
Position [155, 57, 185, 93]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
ShowPortLabels on
sw "1"
action "0"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [610, 63, 615, 107]
BackgroundColor "black"
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Output Port"
Ports [0, 1, 0, 0, 0, 1]
Position [480, 45, 525, 105]
SourceBlock "rfports1/Output Port"
SourceType "Output Port"
ShowPortLabels on
Zl "50"
num_Models "0"
GoToTag "ABDCDEBMFDGIKHKQCUCLXRB"
DisplayData off
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"
}
Block {
BlockType Reference
Name "Sine Wave"
Ports [0, 1]
Position [15, 158, 60, 202]
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "-5e6"
Phase "0"
SampleMode "Discrete"
OutComplex "Complex"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "2e-9"
SamplesPerFrame "256"
additionalParams off
allowOverrides on
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
ResetState "Restart at time zero"
}
Block {
BlockType Reference
Name "Sine Wave1"
Ports [0, 1]
Position [15, 228, 60, 272]
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "5e6"
Phase "0"
SampleMode "Discrete"
OutComplex "Complex"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "2e-9"
SamplesPerFrame "256"
additionalParams off
allowOverrides on
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -