📄 two_tone_lna.mdl
字号:
BlockType "M-S-Function"
MFile "mlfile"
}
Block {
BlockType Merge
Inputs "2"
InitialOutput "[]"
AllowUnequalInputPortWidths off
InputPortOffsets "[]"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
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 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 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 "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
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 ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
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 "two_tone_lna"
Location [9, 94, 1009, 374]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "112"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Amp to dBm"
Ports [1, 1]
Position [290, 152, 370, 208]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Amp to dBm"
Location [172, 368, 712, 483]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 43, 55, 57]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Gain
Name "Gain2"
Position [150, 35, 180, 65]
AttributesFormatString "%<Gain>"
Gain "1/Z0"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [90, 35, 120, 65]
Operator "magnitude^2"
}
Block {
BlockType Reference
Name "Mean2"
Ports [1, 1]
Position [210, 30, 265, 70]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run off
reset_popup "None"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Mean3"
Ports [1, 1]
Position [290, 30, 345, 70]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run on
reset_popup "None"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "dB Conversion1"
Ports [1, 1]
Position [380, 28, 460, 72]
SourceBlock "commutil2/dB Conversion"
SourceType "dB Conversion"
ShowPortLabels on
dBtype "dBm"
intype "Power"
R "1"
fuzz off
}
Block {
BlockType Outport
Name "Out"
Position [485, 43, 515, 57]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Mean2"
SrcPort 1
DstBlock "Mean3"
DstPort 1
}
Line {
SrcBlock "Mean3"
SrcPort 1
DstBlock "dB Conversion1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Mean2"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "dB Conversion1"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Amp to dBm1"
Ports [1, 1]
Position [575, 172, 655, 228]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Amp to dBm1"
Location [2, 70, 1022, 720]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 43, 55, 57]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Gain
Name "Gain2"
Position [150, 35, 180, 65]
AttributesFormatString "%<Gain>"
Gain "1/Z0"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [90, 35, 120, 65]
Operator "magnitude^2"
}
Block {
BlockType Reference
Name "Mean2"
Ports [1, 1]
Position [210, 30, 265, 70]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run off
reset_popup "None"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Mean3"
Ports [1, 1]
Position [290, 30, 345, 70]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run on
reset_popup "None"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "dB Conversion1"
Ports [1, 1]
Position [380, 28, 460, 72]
SourceBlock "commutil2/dB Conversion"
SourceType "dB Conversion"
ShowPortLabels on
dBtype "dBm"
intype "Power"
R "1"
fuzz off
}
Block {
BlockType Outport
Name "Out"
Position [485, 43, 515, 57]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Mean2"
SrcPort 1
DstBlock "Mean3"
DstPort 1
}
Line {
SrcBlock "Mean3"
SrcPort 1
DstBlock "dB Conversion1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Mean2"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "dB Conversion1"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Amplifier"
Ports [1, 1]
Position [230, 21, 330, 69]
AttributesFormatString "IIP3 = %<iip3> dBm"
SourceBlock "rfmathmodels1/Amplifier"
SourceType "Amplifier"
ShowPortLabels on
model_select "Cubic polynomial"
linGaindB "0"
GindB "0"
iip3 "iip3_dBm"
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 "0"
nfactor "1"
seed "67987"
}
Block {
BlockType SubSystem
Name "Modified\nSpectrum\nScope\nBoxcar"
Ports [1, 1]
Position [575, 20, 610, 70]
AncestorBlock "dspsnks4/Spectrum\nScope"
CopyFcn "sdspfscope2([],[],[],'BlockCopy');\ndspfixptcop"
"ycallback "
DeleteFcn "sdspfscope2([],[],[],'BlockDelete');\ndspblkDDC"
"lose; "
NameChangeFcn "sdspfscope2([],[],[],'NameChange');"
OpenFcn "dspblkDDOpen('SpectrumScope');"
ShowPortLabels off
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Function"
SimViewingDevice on
MaskType "Spectrum Scope"
MaskDescription "Compute and display the periodogram of each inp"
"ut signal. Non-frame based inputs to the block should use the buffering opti"
"on."
MaskHelp "web(dspbhelp);"
MaskPromptString "-------------------------------- Show scope pro"
"perties ------------------------------------|Input domain:|Time display span "
"(number of frames):|Buffer input|Buffer size:|Buffer overlap:|Specify FFT len"
"gth|FFT length:|Number of spectral averages:|--------------------------------"
" Show display properties -----------------------------------|Show grid|Persis"
"tence|Frame number|Channel legend|Compact display|Open scope at start of simu"
"lation|Open scope immediately|Scope position:|-------------------------------"
"- Show axis properties ----------------------------------------|Frequency uni"
"ts:|Frequency range:|Inherit sample increment from input|Sample time of origi"
"nal time series:|X-axis title:|Amplitude scaling:|Minimum Y-limit:|Maximum Y-"
"limit:|Y-axis title:|-------------------------------- Show line properties --"
"---------------------------------------|Line visibility:|Line styles:|Line ma"
"rkers:|Line colors:"
MaskStyleString "checkbox,popup(Time|Frequency|User-defined),edi"
"t,checkbox,edit,edit,checkbox,edit,edit,checkbox,checkbox,checkbox,checkbox,c"
"heckbox,checkbox,checkbox,checkbox,edit,checkbox,popup(Hertz|rad/sec),popup(["
"0...Fs/2]|[-Fs/2...Fs/2]|[0...Fs]),checkbox,edit,edit,popup(Magnitude|dB),edi"
"t,edit,edit,checkbox,edit,edit,edit,edit"
MaskTunableValueString "on,on,off,off,off,off,off,off,off,on,on,on,on,o"
"n,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "dspblkbfftscope2('dynamic','ScopeProperties')||"
"|dspblkbfftscope2('dynamic','useBuffer');|||dspblkbfftscope2('dynamic','FftLe"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -