📄 comparison_amp.mdl
字号:
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType ActionPort
InitializeStates "held"
ActionType "unset"
}
Block {
BlockType Actuator
SubClassName "unknown"
PortType "blob"
}
Block {
BlockType SwitchCase
CaseConditions "{1}"
CaseShowDefault on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType ComplexToMagnitudeAngle
Output "Magnitude and angle"
SampleTime "-1"
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType DataTypeConversion
OutDataTypeMode "Inherit via back propagation"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
ConvertRealWorld "Real World Value (RWV)"
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType From
IconDisplay "Tag"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Goto
IconDisplay "Tag"
}
Block {
BlockType Ground
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
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"
FunctionName "mlfile"
}
Block {
BlockType Merge
Inputs "2"
InitialOutput "[]"
AllowUnequalInputPortWidths off
InputPortOffsets "[]"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
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 RealImagToComplex
Input "Real and imag"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType Reference
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "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 Terminator
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
}
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 "comparison_amp"
Location [74, 466, 1031, 933]
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 "Amplifier \nHyperbolic Tangent"
Ports [1, 1]
Position [460, 86, 560, 134]
SourceBlock "rfmathmodels1/Amplifier"
SourceType "Amplifier"
ShowPortLabels on
model_select "Hyperbolic tangent"
linGaindB "22"
GindB "0"
iip3 "35"
am2pm "0"
amam "[2.1587 1.1517]"
ampm "[4.0033 9.1040]"
x "[8.1081 1.5413 6.5202 -0.0718]"
y "[4.6645 2.0965 10.88 -0.003]"
p "0.5"
GoutdB "0"
vsat "1"
method_select "Noise figure"
ntemp "290"
nfigure "3.01"
nfactor "2"
seed "67987"
Port {
PortNumber 1
Name "Math Non-linear"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "Amplifier Linear"
Ports [1, 1]
Position [460, 21, 560, 69]
SourceBlock "rfmathmodels1/Amplifier"
SourceType "Amplifier"
ShowPortLabels on
model_select "Linear"
linGaindB "22"
GindB "0"
iip3 "30"
am2pm "0"
amam "[2.1587 1.1517]"
ampm "[4.0033 9.1040]"
x "[8.1081 1.5413 6.5202 -0.0718]"
y "[4.6645 2.0965 10.88 -0.003]"
p "0.5"
GoutdB "0"
vsat "1"
method_select "Noise figure"
ntemp "290"
nfigure "3.01"
nfactor "2"
seed "67987"
Port {
PortNumber 1
Name "Math Linear"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType SubSystem
Name "Baseband Equivalent\nMulti-Tone Signal"
Ports [0, 1]
Position [35, 126, 125, 174]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Baseband Equivalent Multi-Tone Sine Wave"
MaskDescription "Generate a baseband equivalent multi-tone compl"
"ex sinusoid signal. The frequency of the output multi-tone signal is the diff"
"erence between the Tone frequency and the Center frequency.\n\nThe values spe"
"cified here for the Center frequency and Sample time parameters should be equ"
"al to the values specified in the 'Input Port' block."
MaskPromptString "Center frequency (Hz)|Tone frequency (Hz):|Tone"
" amplitude:|Tone phase offset (rad):|Sample time:|Samples per frame:"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "off,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "Fc=@1;Frequency=@2;Amplitude=@3;Phase=@4;Sample"
"Time=@5;SamplesPerFrame=@6;"
MaskInitialization "if ~isscalar(Fc)\n error('Center frequen"
"cy must be a scalar');\nend\nif ~isnumeric(Frequency)\n error('Tone fr"
"equency must be a real vector');\nend\nif any(Frequency>=2*Fc)\n error"
"('Tone frequency is too large compared to the Center frequency');\nend\n\nFre"
"quency = Frequency-Fc;\n"
MaskDisplay "plot(-0.5,-3,1.5,1,[0:0.005:1], [0.25*sin(2*pi*"
"5*[0:0.005:1])+0.5*sin(2*pi*10*[0:0.005:1]) ]);\ndisp('\\nMulti-Tone');\n"
MaskIconFrame on
MaskIconOpaque on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -