two_tone_lna.mdl
上传用户:asli888
上传日期:2013-05-03
资源大小:7045k
文件大小:45k
源码类别:

matlab例程

开发平台:

Matlab

  1. Model {
  2.   Name   "two_tone_lna"
  3.   Version   6.0
  4.   GraphicalInterface {
  5.     NumRootInports     0
  6.     NumRootOutports     0
  7.     ParameterArgumentNames  ""
  8.     ComputedModelVersion    "1.142"
  9.     NumModelReferences     0
  10.     NumTestPointedSignals   0
  11.   }
  12.   SavedCharacterEncoding  "ibm-5348_P100-1997"
  13.   PreLoadFcn   "t_s = 0.5/8e6 % s f_c +- 8MHznsamp_frame = 256nZ0"
  14. " = 1 % ohmsnp_in_dBm = -30nampl = sqrt(Z0 * 10^(p_in_dBm/10) / 1000)nf_c ="
  15. " 2.45e9 % Hzniip3_dBm = 10 % dBmndisp('To edit the workspace variables,')n"
  16. "disp('select the ''Callbacks'' tab')ndisp('from the ''File==>Model Propertie"
  17. "s''... properties box')"
  18.   SaveDefaultBlockParams  on
  19.   SampleTimeColors   off
  20.   LibraryLinkDisplay   "none"
  21.   WideLines   off
  22.   ShowLineDimensions   off
  23.   ShowPortDataTypes   off
  24.   ShowLoopsOnError   on
  25.   IgnoreBidirectionalLines off
  26.   ShowStorageClass   off
  27.   ShowTestPointIcons   on
  28.   ShowViewerIcons   on
  29.   SortedOrder   off
  30.   ExecutionContextIcon   off
  31.   ShowLinearizationAnnotations on
  32.   RecordCoverage   off
  33.   CovPath   "/"
  34.   CovSaveName   "covdata"
  35.   CovMetricSettings   "dw"
  36.   CovNameIncrementing   off
  37.   CovHtmlReporting   on
  38.   covSaveCumulativeToWorkspaceVar on
  39.   CovSaveSingleToWorkspaceVar on
  40.   CovCumulativeVarName   "covCumulativeData"
  41.   CovCumulativeReport   off
  42.   CovReportOnPause   on
  43.   ScopeRefreshTime   0.035000
  44.   OverrideScopeRefreshTime on
  45.   DisableAllScopes   off
  46.   DataTypeOverride   "UseLocalSettings"
  47.   MinMaxOverflowLogging   "UseLocalSettings"
  48.   MinMaxOverflowArchiveMode "Overwrite"
  49.   BlockNameDataTip   off
  50.   BlockParametersDataTip  off
  51.   BlockDescriptionStringDataTip off
  52.   ToolBar   on
  53.   StatusBar   on
  54.   BrowserShowLibraryLinks off
  55.   BrowserLookUnderMasks   off
  56.   Created   "Tue Jun 29 11:29:57 2004"
  57.   UpdateHistory   "UpdateHistoryNever"
  58.   ModifiedByFormat   "%<Auto>"
  59.   LastModifiedBy   "cwarwick"
  60.   ModifiedDateFormat   "%<Auto>"
  61.   LastModifiedDate   "Wed Jul 14 15:33:11 2004"
  62.   ModelVersionFormat   "1.%<AutoIncrement:142>"
  63.   ConfigurationManager   "None"
  64.   LinearizationMsg   "none"
  65.   Profile   off
  66.   ParamWorkspaceSource   "MATLABWorkspace"
  67.   AccelSystemTargetFile   "accel.tlc"
  68.   AccelTemplateMakefile   "accel_default_tmf"
  69.   AccelMakeCommand   "make_rtw"
  70.   TryForcingSFcnDF   off
  71.   ExtModeBatchMode   off
  72.   ExtModeEnableFloating   on
  73.   ExtModeTrigType   "manual"
  74.   ExtModeTrigMode   "normal"
  75.   ExtModeTrigPort   "1"
  76.   ExtModeTrigElement   "any"
  77.   ExtModeTrigDuration   1000
  78.   ExtModeTrigDurationFloating "auto"
  79.   ExtModeTrigHoldOff   0
  80.   ExtModeTrigDelay   0
  81.   ExtModeTrigDirection   "rising"
  82.   ExtModeTrigLevel   0
  83.   ExtModeArchiveMode   "off"
  84.   ExtModeAutoIncOneShot   off
  85.   ExtModeIncDirWhenArm   off
  86.   ExtModeAddSuffixToVar   off
  87.   ExtModeWriteAllDataToWs off
  88.   ExtModeArmWhenConnect   on
  89.   ExtModeSkipDownloadWhenConnect off
  90.   ExtModeLogAll   on
  91.   ExtModeAutoUpdateStatusClock on
  92.   BufferReuse   on
  93.   ProdHWDeviceType   "32-bit Generic"
  94.   ShowModelReferenceBlockVersion off
  95.   ShowModelReferenceBlockIO off
  96.   Array {
  97.     Type     "Handle"
  98.     Dimension     1
  99.     Simulink.ConfigSet {
  100.       $ObjectID       1
  101.       Version       "1.0.4"
  102.       Array {
  103. Type "Handle"
  104. Dimension 7
  105. Simulink.SolverCC {
  106.   $ObjectID   2
  107.   Version   "1.0.4"
  108.   StartTime   "0.0"
  109.   StopTime   "t_s*(samp_frame)"
  110.   AbsTol   "auto"
  111.   FixedStep   "auto"
  112.   InitialStep   "auto"
  113.   MaxNumMinSteps   "-1"
  114.   MaxOrder   5
  115.   ExtrapolationOrder   4
  116.   NumberNewtonIterations  1
  117.   MaxStep   "auto"
  118.   MinStep   "auto"
  119.   RelTol   "1e-3"
  120.   SolverMode   "Auto"
  121.   Solver   "FixedStepDiscrete"
  122.   ZeroCrossControl   "UseLocalSettings"
  123.   PositivePriorityOrder   off
  124.   AutoInsertRateTranBlk   off
  125.   SampleTimeConstraint   "Unconstrained"
  126.   RateTranMode   "Deterministic"
  127. }
  128. Simulink.DataIOCC {
  129.   $ObjectID   3
  130.   Version   "1.0.4"
  131.   Decimation   "1"
  132.   ExternalInput   "[t, u]"
  133.   FinalStateName   "xFinal"
  134.   InitialState   "xInitial"
  135.   LimitDataPoints   on
  136.   MaxDataPoints   "1000"
  137.   LoadExternalInput   off
  138.   LoadInitialState   off
  139.   SaveFinalState   off
  140.   SaveFormat   "Array"
  141.   SaveOutput   on
  142.   SaveState   off
  143.   SaveTime   on
  144.   StateSaveName   "xout"
  145.   TimeSaveName   "tout"
  146.   OutputSaveName   "yout"
  147.   SignalLoggingName   "logsout"
  148.   OutputOption   "RefineOutputTimes"
  149.   OutputTimes   "[]"
  150.   Refine   "1"
  151. }
  152. Simulink.OptimizationCC {
  153.   $ObjectID   4
  154.   Array {
  155.     Type     "Cell"
  156.     Dimension     5
  157.     Cell     "ZeroExternalMemoryAtStartup"
  158.     Cell     "ZeroInternalMemoryAtStartup"
  159.     Cell     "InitFltsAndDblsToZero"
  160.     Cell     "OptimizeModelRefInitCode"
  161.     Cell     "NoFixptDivByZeroProtection"
  162.     PropName     "DisabledProps"
  163.   }
  164.   Version   "1.0.4"
  165.   BlockReduction   on
  166.   BooleanDataType   on
  167.   ConditionallyExecuteInputs on
  168.   ConditionalExecOptimization "on_for_testing"
  169.   InlineParams   off
  170.   InlineInvariantSignals  on
  171.   OptimizeBlockIOStorage  on
  172.   BufferReuse   on
  173.   EnforceIntegerDowncast  on
  174.   ExpressionFolding   on
  175.   FoldNonRolledExpr   on
  176.   LocalBlockOutputs   on
  177.   ParameterPooling   on
  178.   RollThreshold   5
  179.   SystemCodeInlineAuto   off
  180.   StateBitsets   off
  181.   DataBitsets   off
  182.   UseTempVars   off
  183.   ZeroExternalMemoryAtStartup on
  184.   ZeroInternalMemoryAtStartup on
  185.   InitFltsAndDblsToZero   on
  186.   NoFixptDivByZeroProtection off
  187.   OptimizeModelRefInitCode off
  188.   LifeSpan   "inf"
  189. }
  190. Simulink.DebuggingCC {
  191.   $ObjectID   5
  192.   Version   "1.0.4"
  193.   ConsistencyChecking   "none"
  194.   ArrayBoundsChecking   "none"
  195.   AlgebraicLoopMsg   "warning"
  196.   ArtificialAlgebraicLoopMsg "warning"
  197.   CheckSSInitialOutputMsg on
  198.   CheckExecutionContextPreStartOutputMsg off
  199.   CheckExecutionContextRuntimeOutputMsg off
  200.   SignalResolutionControl "TryResolveAllWithWarning"
  201.   BlockPriorityViolationMsg "warning"
  202.   MinStepSizeMsg   "warning"
  203.   SolverPrmCheckMsg   "warning"
  204.   InheritedTsInSrcMsg   "warning"
  205.   DiscreteInheritContinuousMsg "warning"
  206.   MultiTaskRateTransMsg   "error"
  207.   SingleTaskRateTransMsg  "none"
  208.   TasksWithSamePriorityMsg "warning"
  209.   CheckMatrixSingularityMsg "none"
  210.   IntegerOverflowMsg   "warning"
  211.   Int32ToFloatConvMsg   "warning"
  212.   ParameterDowncastMsg   "error"
  213.   ParameterOverflowMsg   "error"
  214.   ParameterPrecisionLossMsg "warning"
  215.   UnderSpecifiedDataTypeMsg "none"
  216.   UnnecessaryDatatypeConvMsg "none"
  217.   VectorMatrixConversionMsg "none"
  218.   InvalidFcnCallConnMsg   "error"
  219.   SignalLabelMismatchMsg  "none"
  220.   UnconnectedInputMsg   "warning"
  221.   UnconnectedOutputMsg   "warning"
  222.   UnconnectedLineMsg   "warning"
  223.   SFcnCompatibilityMsg   "none"
  224.   UniqueDataStoreMsg   "none"
  225.   RootOutportRequireBusObject "warning"
  226.   AssertControl   "UseLocalSettings"
  227.   EnableOverflowDetection off
  228.   ModelReferenceIOMsg   "none"
  229.   ModelReferenceVersionMismatchMessage "none"
  230.   ModelReferenceIOMismatchMessage "none"
  231.   ModelReferenceCSMismatchMessage "none"
  232.   ModelReferenceSimTargetVerbose off
  233.   UnknownTsInhSupMsg   "warning"
  234.   ModelReferenceDataLoggingMessage "warning"
  235.   ModelReferenceSymbolNameMessage "warning"
  236. }
  237. Simulink.HardwareCC {
  238.   $ObjectID   6
  239.   Version   "1.0.4"
  240.   ProdBitPerChar   8
  241.   ProdBitPerShort   16
  242.   ProdBitPerInt   32
  243.   ProdBitPerLong   32
  244.   ProdIntDivRoundTo   "Undefined"
  245.   ProdEndianess   "Unspecified"
  246.   ProdWordSize   32
  247.   ProdShiftRightIntArith  on
  248.   ProdHWDeviceType   "32-bit Generic"
  249.   TargetBitPerChar   8
  250.   TargetBitPerShort   16
  251.   TargetBitPerInt   32
  252.   TargetBitPerLong   32
  253.   TargetShiftRightIntArith on
  254.   TargetIntDivRoundTo   "Undefined"
  255.   TargetEndianess   "Unspecified"
  256.   TargetWordSize   32
  257.   TargetTypeEmulationWarnSuppressLevel 0
  258.   TargetPreprocMaxBitsSint 32
  259.   TargetPreprocMaxBitsUint 32
  260.   TargetHWDeviceType   "Specified"
  261.   TargetUnknown   off
  262.   ProdEqTarget   on
  263. }
  264. Simulink.ModelReferenceCC {
  265.   $ObjectID   7
  266.   Version   "1.0.4"
  267.   UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
  268.   CheckModelReferenceTargetMessage "error"
  269.   ModelReferenceNumInstancesAllowed "Multi"
  270.   ModelReferencePassRootInputsByReference on
  271.   ModelReferenceMinAlgLoopOccurrences off
  272. }
  273. Simulink.RTWCC {
  274.   $BackupClass   "Simulink.RTWCC"
  275.   $ObjectID   8
  276.   Array {
  277.     Type     "Cell"
  278.     Dimension     1
  279.     Cell     "IncludeHyperlinkInReport"
  280.     PropName     "DisabledProps"
  281.   }
  282.   Version   "1.0.4"
  283.   SystemTargetFile   "grt.tlc"
  284.   GenCodeOnly   off
  285.   MakeCommand   "make_rtw"
  286.   TemplateMakefile   "grt_default_tmf"
  287.   GenerateReport   off
  288.   SaveLog   off
  289.   RTWVerbose   on
  290.   RetainRTWFile   off
  291.   ProfileTLC   off
  292.   TLCDebug   off
  293.   TLCCoverage   off
  294.   TLCAssert   off
  295.   ProcessScriptMode   "Default"
  296.   ConfigurationMode   "Optimized"
  297.   ConfigAtBuild   off
  298.   IncludeHyperlinkInReport off
  299.   LaunchReport   off
  300.   Array {
  301.     Type     "Handle"
  302.     Dimension     2
  303.     Simulink.CodeAppCC {
  304.       $ObjectID       9
  305.       Array {
  306. Type "Cell"
  307. Dimension 9
  308. Cell "IgnoreCustomStorageClasses"
  309. Cell "InsertBlockDesc"
  310. Cell "SFDataObjDesc"
  311. Cell "SimulinkDataObjDesc"
  312. Cell "DefineNamingRule"
  313. Cell "SignalNamingRule"
  314. Cell "ParamNamingRule"
  315. Cell "InlinedPrmAccess"
  316. Cell "CustomSymbolStr"
  317. PropName "DisabledProps"
  318.       }
  319.       Version       "1.0.4"
  320.       ForceParamTrailComments off
  321.       GenerateComments       on
  322.       IgnoreCustomStorageClasses on
  323.       IncHierarchyInIds       off
  324.       MaxIdLength       31
  325.       PreserveName       off
  326.       PreserveNameWithParent  off
  327.       ShowEliminatedStatement off
  328.       IncAutoGenComments      off
  329.       SimulinkDataObjDesc     off
  330.       SFDataObjDesc       off
  331.       IncDataTypeInIds       off
  332.       PrefixModelToSubsysFcnNames on
  333.       CustomSymbolStr       "$R$N$M"
  334.       MangleLength       1
  335.       DefineNamingRule       "None"
  336.       ParamNamingRule       "None"
  337.       SignalNamingRule       "None"
  338.       InsertBlockDesc       off
  339.       SimulinkBlockComments   on
  340.       EnableCustomComments    off
  341.       InlinedPrmAccess       "Literals"
  342.       ReqsInCode       off
  343.     }
  344.     Simulink.GRTTargetCC {
  345.       $BackupClass       "Simulink.TargetCC"
  346.       $ObjectID       10
  347.       Array {
  348. Type "Cell"
  349. Dimension 12
  350. Cell "IncludeMdlTerminateFcn"
  351. Cell "CombineOutputUpdateFcns"
  352. Cell "SuppressErrorStatus"
  353. Cell "ERTCustomFileBanners"
  354. Cell "GenerateSampleERTMain"
  355. Cell "MultiInstanceERTCode"
  356. Cell "PurelyIntegerCode"
  357. Cell "SupportNonFinite"
  358. Cell "SupportComplex"
  359. Cell "SupportAbsoluteTime"
  360. Cell "SupportContinuousTime"
  361. Cell "SupportNonInlinedSFcns"
  362. PropName "DisabledProps"
  363.       }
  364.       Version       "1.0.4"
  365.       TargetFcnLib       "ansi_tfl_tmw.mat"
  366.       GenFloatMathFcnCalls    "ANSI_C"
  367.       UtilityFuncGeneration   "Auto"
  368.       GenerateFullHeader      on
  369.       GenerateSampleERTMain   off
  370.       IsPILTarget       off
  371.       ModelReferenceCompliant on
  372.       IncludeMdlTerminateFcn  on
  373.       CombineOutputUpdateFcns off
  374.       SuppressErrorStatus     off
  375.       IncludeFileDelimiter    "Auto"
  376.       ERTCustomFileBanners    off
  377.       SupportAbsoluteTime     on
  378.       LogVarNameModifier      "rt_"
  379.       MatFileLogging       on
  380.       MultiInstanceERTCode    off
  381.       SupportNonFinite       on
  382.       SupportComplex       on
  383.       PurelyIntegerCode       off
  384.       SupportContinuousTime   on
  385.       SupportNonInlinedSFcns  on
  386.       ExtMode       off
  387.       ExtModeStaticAlloc      off
  388.       ExtModeTesting       off
  389.       ExtModeStaticAllocSize  1000000
  390.       ExtModeTransport       0
  391.       ExtModeMexFile       "ext_comm"
  392.       RTWCAPISignals       off
  393.       RTWCAPIParams       off
  394.       RTWCAPIStates       off
  395.       GenerateASAP2       off
  396.     }
  397.     PropName     "Components"
  398.   }
  399. }
  400. PropName "Components"
  401.       }
  402.       Name       "Configuration"
  403.       SimulationMode       "normal"
  404.       CurrentDlgPage       "Solver"
  405.     }
  406.     PropName     "ConfigurationSets"
  407.   }
  408.   Simulink.ConfigSet {
  409.     $PropName     "ActiveConfigurationSet"
  410.     $ObjectID     1
  411.   }
  412.   BlockDefaults {
  413.     Orientation     "right"
  414.     ForegroundColor     "black"
  415.     BackgroundColor     "white"
  416.     DropShadow     off
  417.     NamePlacement     "normal"
  418.     FontName     "Helvetica"
  419.     FontSize     10
  420.     FontWeight     "normal"
  421.     FontAngle     "normal"
  422.     ShowName     on
  423.   }
  424.   BlockParameterDefaults {
  425.     Block {
  426.       BlockType       ActionPort
  427.       InitializeStates       "held"
  428.       ActionType       "unset"
  429.     }
  430.     Block {
  431.       BlockType       SwitchCase
  432.       CaseConditions       "{1}"
  433.       CaseShowDefault       on
  434.       ZeroCross       on
  435.       SampleTime       "-1"
  436.     }
  437.     Block {
  438.       BlockType       ComplexToMagnitudeAngle
  439.       Output       "Magnitude and angle"
  440.       SampleTime       "-1"
  441.     }
  442.     Block {
  443.       BlockType       Constant
  444.       Value       "1"
  445.       VectorParams1D       on
  446.       OutDataTypeMode       "Inherit from 'Constant value'"
  447.       OutDataType       "sfix(16)"
  448.       ConRadixGroup       "Use specified scaling"
  449.       OutScaling       "2^0"
  450.       SampleTime       "inf"
  451.     }
  452.     Block {
  453.       BlockType       DataTypeConversion
  454.       OutDataTypeMode       "Inherit via back propagation"
  455.       OutDataType       "sfix(16)"
  456.       OutScaling       "2^0"
  457.       LockScale       off
  458.       ConvertRealWorld       "Real World Value (RWV)"
  459.       RndMeth       "Zero"
  460.       SaturateOnIntegerOverflow on
  461.       SampleTime       "-1"
  462.     }
  463.     Block {
  464.       BlockType       Display
  465.       Format       "short"
  466.       Decimation       "10"
  467.       Floating       off
  468.       SampleTime       "-1"
  469.     }
  470.     Block {
  471.       BlockType       From
  472.       IconDisplay       "Tag"
  473.     }
  474.     Block {
  475.       BlockType       Gain
  476.       Gain       "1"
  477.       Multiplication       "Element-wise(K.*u)"
  478.       ParameterDataTypeMode   "Same as input"
  479.       ParameterDataType       "sfix(16)"
  480.       ParameterScalingMode    "Best Precision: Matrix-wise"
  481.       ParameterScaling       "2^0"
  482.       OutDataTypeMode       "Same as input"
  483.       OutDataType       "sfix(16)"
  484.       OutScaling       "2^0"
  485.       LockScale       off
  486.       RndMeth       "Floor"
  487.       SaturateOnIntegerOverflow on
  488.       SampleTime       "-1"
  489.     }
  490.     Block {
  491.       BlockType       Goto
  492.       IconDisplay       "Tag"
  493.     }
  494.     Block {
  495.       BlockType       Ground
  496.     }
  497.     Block {
  498.       BlockType       Inport
  499.       BusObject       "BusObject"
  500.       BusOutputAsStruct       off
  501.       PortDimensions       "-1"
  502.       SampleTime       "-1"
  503.       DataType       "auto"
  504.       OutDataType       "sfix(16)"
  505.       OutScaling       "2^0"
  506.       SignalType       "auto"
  507.       SamplingMode       "auto"
  508.       Interpolate       on
  509.     }
  510.     Block {
  511.       BlockType       MagnitudeAngleToComplex
  512.       Input       "Magnitude and angle"
  513.       ConstantPart       "0"
  514.       SampleTime       "-1"
  515.     }
  516.     Block {
  517.       BlockType       Math
  518.       Operator       "exp"
  519.       OutputSignalType       "auto"
  520.       SampleTime       "-1"
  521.       OutDataTypeMode       "Same as first input"
  522.       OutDataType       "sfix(16)"
  523.       OutScaling       "2^0"
  524.       LockScale       off
  525.       RndMeth       "Floor"
  526.       SaturateOnIntegerOverflow on
  527.     }
  528.     Block {
  529.       BlockType       "M-S-Function"
  530.       MFile       "mlfile"
  531.     }
  532.     Block {
  533.       BlockType       Merge
  534.       Inputs       "2"
  535.       InitialOutput       "[]"
  536.       AllowUnequalInputPortWidths off
  537.       InputPortOffsets       "[]"
  538.     }
  539.     Block {
  540.       BlockType       Mux
  541.       Inputs       "4"
  542.       DisplayOption       "none"
  543.       BusObject       "BusObject"
  544.       NonVirtualBus       off
  545.     }
  546.     Block {
  547.       BlockType       Outport
  548.       Port       "1"
  549.       BusObject       "BusObject"
  550.       BusOutputAsStruct       off
  551.       PortDimensions       "-1"
  552.       SampleTime       "-1"
  553.       DataType       "auto"
  554.       OutDataType       "sfix(16)"
  555.       OutScaling       "2^0"
  556.       SignalType       "auto"
  557.       SamplingMode       "auto"
  558.       OutputWhenDisabled      "held"
  559.       InitialOutput       "[]"
  560.     }
  561.     Block {
  562.       BlockType       Probe
  563.       ProbeWidth       on
  564.       ProbeSampleTime       on
  565.       ProbeComplexSignal      on
  566.       ProbeSignalDimensions   off
  567.       ProbeFramedSignal       off
  568.       ProbeWidthDataType      "double"
  569.       ProbeSampleTimeDataType "double"
  570.       ProbeComplexityDataType "double"
  571.       ProbeDimensionsDataType "double"
  572.       ProbeFrameDataType      "double"
  573.     }
  574.     Block {
  575.       BlockType       Product
  576.       Inputs       "2"
  577.       Multiplication       "Element-wise(.*)"
  578.       InputSameDT       on
  579.       OutDataTypeMode       "Same as first input"
  580.       OutDataType       "sfix(16)"
  581.       OutScaling       "2^0"
  582.       LockScale       off
  583.       RndMeth       "Zero"
  584.       SaturateOnIntegerOverflow on
  585.       SampleTime       "-1"
  586.     }
  587.     Block {
  588.       BlockType       Saturate
  589.       UpperLimit       "0.5"
  590.       LowerLimit       "-0.5"
  591.       LinearizeAsGain       on
  592.       ZeroCross       on
  593.       SampleTime       "-1"
  594.     }
  595.     Block {
  596.       BlockType       Selector
  597.       InputType       "Vector"
  598.       IndexMode       "One-based"
  599.       ElementSrc       "Internal"
  600.       Elements       "1"
  601.       RowSrc       "Internal"
  602.       Rows       "1"
  603.       ColumnSrc       "Internal"
  604.       Columns       "1"
  605.       InputPortWidth       "-1"
  606.       IndexIsStartValue       off
  607.       OutputPortSize       "1"
  608.     }
  609.     Block {
  610.       BlockType       "S-Function"
  611.       FunctionName       "system"
  612.       PortCounts       "[]"
  613.       SFunctionModules       "''"
  614.     }
  615.     Block {
  616.       BlockType       SubSystem
  617.       ShowPortLabels       on
  618.       Permissions       "ReadWrite"
  619.       PermitHierarchicalResolution "All"
  620.       SystemSampleTime       "-1"
  621.       RTWFcnNameOpts       "Auto"
  622.       RTWFileNameOpts       "Auto"
  623.       SimViewingDevice       off
  624.       DataTypeOverride       "UseLocalSettings"
  625.       MinMaxOverflowLogging   "UseLocalSettings"
  626.     }
  627.     Block {
  628.       BlockType       Sum
  629.       IconShape       "rectangular"
  630.       Inputs       "++"
  631.       InputSameDT       on
  632.       OutDataTypeMode       "Same as first input"
  633.       OutDataType       "sfix(16)"
  634.       OutScaling       "2^0"
  635.       LockScale       off
  636.       RndMeth       "Floor"
  637.       SaturateOnIntegerOverflow on
  638.       SampleTime       "-1"
  639.     }
  640.     Block {
  641.       BlockType       Terminator
  642.     }
  643.     Block {
  644.       BlockType       ToWorkspace
  645.       VariableName       "simulink_output"
  646.       MaxDataPoints       "1000"
  647.       Decimation       "1"
  648.       SampleTime       "0"
  649.       FixptAsFi       off
  650.     }
  651.     Block {
  652.       BlockType       Trigonometry
  653.       Operator       "sin"
  654.       OutputSignalType       "auto"
  655.       SampleTime       "-1"
  656.     }
  657.   }
  658.   AnnotationDefaults {
  659.     HorizontalAlignment     "center"
  660.     VerticalAlignment     "middle"
  661.     ForegroundColor     "black"
  662.     BackgroundColor     "white"
  663.     DropShadow     off
  664.     FontName     "Helvetica"
  665.     FontSize     10
  666.     FontWeight     "normal"
  667.     FontAngle     "normal"
  668.   }
  669.   LineDefaults {
  670.     FontName     "Helvetica"
  671.     FontSize     9
  672.     FontWeight     "normal"
  673.     FontAngle     "normal"
  674.   }
  675.   System {
  676.     Name     "two_tone_lna"
  677.     Location     [9, 94, 1009, 374]
  678.     Open     on
  679.     ModelBrowserVisibility  off
  680.     ModelBrowserWidth     200
  681.     ScreenColor     "white"
  682.     PaperOrientation     "landscape"
  683.     PaperPositionMode     "auto"
  684.     PaperType     "usletter"
  685.     PaperUnits     "inches"
  686.     ZoomFactor     "112"
  687.     ReportName     "simulink-default.rpt"
  688.     Block {
  689.       BlockType       SubSystem
  690.       Name       "Amp to dBm"
  691.       Ports       [1, 1]
  692.       Position       [290, 152, 370, 208]
  693.       TreatAsAtomicUnit       off
  694.       MinAlgLoopOccurrences   off
  695.       RTWSystemCode       "Auto"
  696.       System {
  697. Name "Amp to dBm"
  698. Location [172, 368, 712, 483]
  699. Open off
  700. ModelBrowserVisibility off
  701. ModelBrowserWidth 200
  702. ScreenColor "white"
  703. PaperOrientation "landscape"
  704. PaperPositionMode "auto"
  705. PaperType "usletter"
  706. PaperUnits "inches"
  707. ZoomFactor "100"
  708. Block {
  709.   BlockType   Inport
  710.   Name   "In"
  711.   Position   [25, 43, 55, 57]
  712.   Port   "1"
  713.   IconDisplay   "Port number"
  714.   LatchInput   off
  715. }
  716. Block {
  717.   BlockType   Gain
  718.   Name   "Gain2"
  719.   Position   [150, 35, 180, 65]
  720.   AttributesFormatString  "%<Gain>"
  721.   Gain   "1/Z0"
  722.   ParameterDataTypeMode   "Inherit via internal rule"
  723.   OutDataTypeMode   "Inherit via internal rule"
  724.   SaturateOnIntegerOverflow off
  725. }
  726. Block {
  727.   BlockType   Math
  728.   Name   "MathnFunction1"
  729.   Ports   [1, 1]
  730.   Position   [90, 35, 120, 65]
  731.   Operator   "magnitude^2"
  732. }
  733. Block {
  734.   BlockType   Reference
  735.   Name   "Mean2"
  736.   Ports   [1, 1]
  737.   Position   [210, 30, 265, 70]
  738.   DialogController   "dspDDGCreate"
  739.   DialogControllerArgs   "DataTag0"
  740.   SourceBlock   "dspstat3/Mean"
  741.   SourceType   "Mean"
  742.   run   off
  743.   reset_popup   "None"
  744.   additionalParams   off
  745.   allowOverrides   on
  746.   outputMode   "Same as accumulator"
  747.   outputWordLength   "32"
  748.   outputFracLength   "30"
  749.   accumMode   "Same as input"
  750.   accumWordLength   "32"
  751.   accumFracLength   "30"
  752.   roundingMode   "Floor"
  753.   overflowMode   off
  754.   LockScale   off
  755. }
  756. Block {
  757.   BlockType   Reference
  758.   Name   "Mean3"
  759.   Ports   [1, 1]
  760.   Position   [290, 30, 345, 70]
  761.   DialogController   "dspDDGCreate"
  762.   DialogControllerArgs   "DataTag1"
  763.   SourceBlock   "dspstat3/Mean"
  764.   SourceType   "Mean"
  765.   run   on
  766.   reset_popup   "None"
  767.   additionalParams   off
  768.   allowOverrides   on
  769.   outputMode   "Same as accumulator"
  770.   outputWordLength   "32"
  771.   outputFracLength   "30"
  772.   accumMode   "Same as input"
  773.   accumWordLength   "32"
  774.   accumFracLength   "30"
  775.   roundingMode   "Floor"
  776.   overflowMode   off
  777.   LockScale   off
  778. }
  779. Block {
  780.   BlockType   Reference
  781.   Name   "dB Conversion1"
  782.   Ports   [1, 1]
  783.   Position   [380, 28, 460, 72]
  784.   SourceBlock   "commutil2/dB Conversion"
  785.   SourceType   "dB Conversion"
  786.   ShowPortLabels   on
  787.   dBtype   "dBm"
  788.   intype   "Power"
  789.   R   "1"
  790.   fuzz   off
  791. }
  792. Block {
  793.   BlockType   Outport
  794.   Name   "Out"
  795.   Position   [485, 43, 515, 57]
  796.   IconDisplay   "Port number"
  797.   BusOutputAsStruct   off
  798. }
  799. Line {
  800.   SrcBlock   "MathnFunction1"
  801.   SrcPort   1
  802.   DstBlock   "Gain2"
  803.   DstPort   1
  804. }
  805. Line {
  806.   SrcBlock   "Mean2"
  807.   SrcPort   1
  808.   DstBlock   "Mean3"
  809.   DstPort   1
  810. }
  811. Line {
  812.   SrcBlock   "Mean3"
  813.   SrcPort   1
  814.   DstBlock   "dB Conversion1"
  815.   DstPort   1
  816. }
  817. Line {
  818.   SrcBlock   "Gain2"
  819.   SrcPort   1
  820.   DstBlock   "Mean2"
  821.   DstPort   1
  822. }
  823. Line {
  824.   SrcBlock   "In"
  825.   SrcPort   1
  826.   DstBlock   "MathnFunction1"
  827.   DstPort   1
  828. }
  829. Line {
  830.   SrcBlock   "dB Conversion1"
  831.   SrcPort   1
  832.   DstBlock   "Out"
  833.   DstPort   1
  834. }
  835.       }
  836.     }
  837.     Block {
  838.       BlockType       SubSystem
  839.       Name       "Amp to dBm1"
  840.       Ports       [1, 1]
  841.       Position       [575, 172, 655, 228]
  842.       TreatAsAtomicUnit       off
  843.       MinAlgLoopOccurrences   off
  844.       RTWSystemCode       "Auto"
  845.       System {
  846. Name "Amp to dBm1"
  847. Location [2, 70, 1022, 720]
  848. Open off
  849. ModelBrowserVisibility off
  850. ModelBrowserWidth 200
  851. ScreenColor "white"
  852. PaperOrientation "landscape"
  853. PaperPositionMode "auto"
  854. PaperType "usletter"
  855. PaperUnits "inches"
  856. ZoomFactor "100"
  857. Block {
  858.   BlockType   Inport
  859.   Name   "In"
  860.   Position   [25, 43, 55, 57]
  861.   Port   "1"
  862.   IconDisplay   "Port number"
  863.   LatchInput   off
  864. }
  865. Block {
  866.   BlockType   Gain
  867.   Name   "Gain2"
  868.   Position   [150, 35, 180, 65]
  869.   AttributesFormatString  "%<Gain>"
  870.   Gain   "1/Z0"
  871.   ParameterDataTypeMode   "Inherit via internal rule"
  872.   OutDataTypeMode   "Inherit via internal rule"
  873.   SaturateOnIntegerOverflow off
  874. }
  875. Block {
  876.   BlockType   Math
  877.   Name   "MathnFunction1"
  878.   Ports   [1, 1]
  879.   Position   [90, 35, 120, 65]
  880.   Operator   "magnitude^2"
  881. }
  882. Block {
  883.   BlockType   Reference
  884.   Name   "Mean2"
  885.   Ports   [1, 1]
  886.   Position   [210, 30, 265, 70]
  887.   DialogController   "dspDDGCreate"
  888.   DialogControllerArgs   "DataTag2"
  889.   SourceBlock   "dspstat3/Mean"
  890.   SourceType   "Mean"
  891.   run   off
  892.   reset_popup   "None"
  893.   additionalParams   off
  894.   allowOverrides   on
  895.   outputMode   "Same as accumulator"
  896.   outputWordLength   "32"
  897.   outputFracLength   "30"
  898.   accumMode   "Same as input"
  899.   accumWordLength   "32"
  900.   accumFracLength   "30"
  901.   roundingMode   "Floor"
  902.   overflowMode   off
  903.   LockScale   off
  904. }
  905. Block {
  906.   BlockType   Reference
  907.   Name   "Mean3"
  908.   Ports   [1, 1]
  909.   Position   [290, 30, 345, 70]
  910.   DialogController   "dspDDGCreate"
  911.   DialogControllerArgs   "DataTag3"
  912.   SourceBlock   "dspstat3/Mean"
  913.   SourceType   "Mean"
  914.   run   on
  915.   reset_popup   "None"
  916.   additionalParams   off
  917.   allowOverrides   on
  918.   outputMode   "Same as accumulator"
  919.   outputWordLength   "32"
  920.   outputFracLength   "30"
  921.   accumMode   "Same as input"
  922.   accumWordLength   "32"
  923.   accumFracLength   "30"
  924.   roundingMode   "Floor"
  925.   overflowMode   off
  926.   LockScale   off
  927. }
  928. Block {
  929.   BlockType   Reference
  930.   Name   "dB Conversion1"
  931.   Ports   [1, 1]
  932.   Position   [380, 28, 460, 72]
  933.   SourceBlock   "commutil2/dB Conversion"
  934.   SourceType   "dB Conversion"
  935.   ShowPortLabels   on
  936.   dBtype   "dBm"
  937.   intype   "Power"
  938.   R   "1"
  939.   fuzz   off
  940. }
  941. Block {
  942.   BlockType   Outport
  943.   Name   "Out"
  944.   Position   [485, 43, 515, 57]
  945.   IconDisplay   "Port number"
  946.   BusOutputAsStruct   off
  947. }
  948. Line {
  949.   SrcBlock   "MathnFunction1"
  950.   SrcPort   1
  951.   DstBlock   "Gain2"
  952.   DstPort   1
  953. }
  954. Line {
  955.   SrcBlock   "Mean2"
  956.   SrcPort   1
  957.   DstBlock   "Mean3"
  958.   DstPort   1
  959. }
  960. Line {
  961.   SrcBlock   "Mean3"
  962.   SrcPort   1
  963.   DstBlock   "dB Conversion1"
  964.   DstPort   1
  965. }
  966. Line {
  967.   SrcBlock   "Gain2"
  968.   SrcPort   1
  969.   DstBlock   "Mean2"
  970.   DstPort   1
  971. }
  972. Line {
  973.   SrcBlock   "In"
  974.   SrcPort   1
  975.   DstBlock   "MathnFunction1"
  976.   DstPort   1
  977. }
  978. Line {
  979.   SrcBlock   "dB Conversion1"
  980.   SrcPort   1
  981.   DstBlock   "Out"
  982.   DstPort   1
  983. }
  984.       }
  985.     }
  986.     Block {
  987.       BlockType       Reference
  988.       Name       "Amplifier"
  989.       Ports       [1, 1]
  990.       Position       [230, 21, 330, 69]
  991.       AttributesFormatString  "IIP3 = %<iip3> dBm"
  992.       SourceBlock       "rfmathmodels1/Amplifier"
  993.       SourceType       "Amplifier"
  994.       ShowPortLabels       on
  995.       model_select       "Cubic polynomial"
  996.       linGaindB       "0"
  997.       GindB       "0"
  998.       iip3       "iip3_dBm"
  999.       am2pm       "0"
  1000.       amam       "[2.1587 1.1517]"
  1001.       ampm       "[4.0033 9.1040]"
  1002.       x       "[8.1081 1.5413 6.5202 -0.0718]"
  1003.       y       "[4.6645 2.0965 10.88 -0.003]"
  1004.       p       "0.5"
  1005.       GoutdB       "0"
  1006.       vsat       "1"
  1007.       method_select       "Noise figure"
  1008.       ntemp       "290"
  1009.       nfigure       "0"
  1010.       nfactor       "1"
  1011.       seed       "67987"
  1012.     }
  1013.     Block {
  1014.       BlockType       SubSystem
  1015.       Name       "ModifiednSpectrumnScopenBoxcar"
  1016.       Ports       [1, 1]
  1017.       Position       [575, 20, 610, 70]
  1018.       AncestorBlock       "dspsnks4/SpectrumnScope"
  1019.       CopyFcn       "sdspfscope2([],[],[],'BlockCopy');ndspfixptcop"
  1020. "ycallback              "
  1021.       DeleteFcn       "sdspfscope2([],[],[],'BlockDelete');ndspblkDDC"
  1022. "lose;                      "
  1023.       NameChangeFcn       "sdspfscope2([],[],[],'NameChange');"
  1024.       OpenFcn       "dspblkDDOpen('SpectrumScope');"
  1025.       ShowPortLabels       off
  1026.       TreatAsAtomicUnit       on
  1027.       MinAlgLoopOccurrences   off
  1028.       RTWSystemCode       "Function"
  1029.       SimViewingDevice       on
  1030.       MaskType       "Spectrum Scope"
  1031.       MaskDescription       "Compute and display the periodogram of each inp"
  1032. "ut signal.  Non-frame based inputs to the block should use the buffering opti"
  1033. "on."
  1034.       MaskHelp       "web(dspbhelp);"
  1035.       MaskPromptString       "-------------------------------- Show scope pro"
  1036. "perties ------------------------------------|Input domain:|Time display span "
  1037. "(number of frames):|Buffer input|Buffer size:|Buffer overlap:|Specify FFT len"
  1038. "gth|FFT length:|Number of spectral averages:|--------------------------------"
  1039. " Show display properties -----------------------------------|Show grid|Persis"
  1040. "tence|Frame number|Channel legend|Compact display|Open scope at start of simu"
  1041. "lation|Open scope immediately|Scope position:|-------------------------------"
  1042. "- Show axis properties ----------------------------------------|Frequency uni"
  1043. "ts:|Frequency range:|Inherit sample increment from input|Sample time of origi"
  1044. "nal time series:|X-axis title:|Amplitude scaling:|Minimum Y-limit:|Maximum Y-"
  1045. "limit:|Y-axis title:|-------------------------------- Show line properties --"
  1046. "---------------------------------------|Line visibility:|Line styles:|Line ma"
  1047. "rkers:|Line colors:"
  1048.       MaskStyleString       "checkbox,popup(Time|Frequency|User-defined),edi"
  1049. "t,checkbox,edit,edit,checkbox,edit,edit,checkbox,checkbox,checkbox,checkbox,c"
  1050. "heckbox,checkbox,checkbox,checkbox,edit,checkbox,popup(Hertz|rad/sec),popup(["
  1051. "0...Fs/2]|[-Fs/2...Fs/2]|[0...Fs]),checkbox,edit,edit,popup(Magnitude|dB),edi"
  1052. "t,edit,edit,checkbox,edit,edit,edit,edit"
  1053.       MaskTunableValueString  "on,on,off,off,off,off,off,off,off,on,on,on,on,o"
  1054. "n,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
  1055.       MaskCallbackString      "dspblkbfftscope2('dynamic','ScopeProperties')||"
  1056. "|dspblkbfftscope2('dynamic','useBuffer');|||dspblkbfftscope2('dynamic','FftLe"
  1057. "nCheckbox');|||dspblkbfftscope2('dynamic','DisplayProperties');|||||||dspblkb"
  1058. "fftscope2('dynamic','OpenScope');||dspblkbfftscope2('dynamic','AxisProperties"
  1059. "');|||dspblkbfftscope2('dynamic','InheritXIncr');|||||||dspblkbfftscope2('dyn"
  1060. "amic','LineProperties');||||"
  1061.       MaskEnableString       "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
  1062. ",on,on,on,on,on,on,off,on,on,on,on,on,on,on,on,on,on"
  1063.       MaskVisibilityString    "on,off,off,on,off,off,on,off,on,on,off,off,off,"
  1064. "off,off,off,off,off,on,off,off,off,off,off,off,off,off,off,on,off,off,off,off"
  1065.       MaskToolTipString       "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
  1066. ",on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
  1067.       MaskVarAliasString      ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
  1068.       MaskVariables       "ScopeProperties=&1;Domain=@2;HorizSpan=@3;UseBu"
  1069. "ffer=&4;BufferSize=@5;Overlap=@6;inpFftLenInherit=@7;FFTlength=@8;numAvg=@9;D"
  1070. "isplayProperties=&10;AxisGrid=&11;Memory=&12;FrameNumber=&13;AxisLegend=&14;A"
  1071. "xisZoom=&15;OpenScopeAtSimStart=&16;OpenScopeImmediately=&17;FigPos=@18;AxisP"
  1072. "roperties=&19;XUnits=@20;XRange=@21;InheritXIncr=&22;XIncr=@23;XLabel=&24;YUn"
  1073. "its=@25;YMin=@26;YMax=@27;YLabel=&28;LineProperties=&29;LineDisables=&30;Line"
  1074. "Styles=&31;LineMarkers=&32;LineColors=&33;"
  1075.       MaskInitialization      "[x,y,str] = dspblkbfftscope2('icon');ns = dspb"
  1076. "lkbfftscope2('init');"
  1077.       MaskDisplay       "plot(x,y); text(14,20,str);n"
  1078.       MaskSelfModifiable      on
  1079.       MaskIconFrame       on
  1080.       MaskIconOpaque       on
  1081.       MaskIconRotate       "none"
  1082.       MaskIconUnits       "autoscale"
  1083.       MaskValueString       "on|Frequency|1|off|128|64|off|128|2|off|on|off|"
  1084. "on|off|off|on|off|get(0,'defaultfigureposition')|off|Hertz|[-Fs/2...Fs/2]|on|"
  1085. "1.0|Samples|dB|-160|40|Magnitude, dB|off|||x|"
  1086.       MaskTabNameString       ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
  1087.       System {
  1088. Name "ModifiednSpectrumnScopenBoxcar"
  1089. Location [388, 484, 878, 627]
  1090. Open off
  1091. ModelBrowserVisibility off
  1092. ModelBrowserWidth 200
  1093. ScreenColor "white"
  1094. PaperOrientation "landscape"
  1095. PaperPositionMode "auto"
  1096. PaperType "usletter"
  1097. PaperUnits "inches"
  1098. ZoomFactor "100"
  1099. Block {
  1100.   BlockType   Inport
  1101.   Name   "In1"
  1102.   Position   [25, 53, 55, 67]
  1103.   Port   "1"
  1104.   IconDisplay   "Port number"
  1105.   LatchInput   off
  1106. }
  1107. Block {
  1108.   BlockType   Gain
  1109.   Name   "Calibration Gain"
  1110.   Position   [135, 45, 165, 75]
  1111.   AttributesFormatString  "%<Gain>"
  1112.   Gain   "sqrt(1000/samp_frame/Z0) % 1000 mW per W"
  1113.   ParameterDataTypeMode   "Inherit via internal rule"
  1114.   OutDataTypeMode   "Inherit via internal rule"
  1115.   SaturateOnIntegerOverflow off
  1116. }
  1117. Block {
  1118.   BlockType   DataTypeConversion
  1119.   Name   "Data Type Conversion"
  1120.   Position   [305, 46, 360, 74]
  1121.   ShowName   off
  1122.   OutDataTypeMode   "double"
  1123. }
  1124. Block {
  1125.   BlockType   "M-S-Function"
  1126.   Name   "Frame Scope"
  1127.   Ports   [1]
  1128.   Position   [510, 46, 590, 74]
  1129.   CopyFcn   ";"
  1130.   MFile   "sdspfscope2"
  1131.   Parameters   "2"
  1132.   MaskType   "Frame Scope"
  1133.   MaskDescription   "Level-2 M-file S-function for frame scope."
  1134.   MaskHelp   "web(dspbhelp);"
  1135.   MaskDisplay   "disp('Frame\nScope')"
  1136.   MaskSelfModifiable   on
  1137.   MaskIconFrame   on
  1138.   MaskIconOpaque   on
  1139.   MaskIconRotate   "none"
  1140.   MaskIconUnits   "autoscale"
  1141. }
  1142. Block {
  1143.   BlockType   SubSystem
  1144.   Name   "OptionalnBuffering"
  1145.   Ports   [1, 1]
  1146.   Position   [225, 38, 275, 82]
  1147.   TreatAsAtomicUnit   off
  1148.   MinAlgLoopOccurrences   off
  1149.   RTWSystemCode   "Auto"
  1150.   MaskType   "Replaceable Contents"
  1151.   MaskDescription   "Configurable subsystem holding blocks which"
  1152. " may be replaced by virtual short-circuits (muxes) when not needed."
  1153.   MaskHelp   "n"
  1154.   MaskPromptString   "Relative name of blocks to replace:|Simulin"
  1155. "k path to each source block:|Parameter/value pairs to each block:|Replace wit"
  1156. "h short-circuit:"
  1157.   MaskStyleString   "edit,edit,edit,edit"
  1158.   MaskTunableValueString  "off,off,off,off"
  1159.   MaskCallbackString   "|||"
  1160.   MaskEnableString   "on,on,on,on"
  1161.   MaskVisibilityString   "on,on,on,on"
  1162.   MaskToolTipString   "on,on,on,on"
  1163.   MaskVarAliasString   ",,,"
  1164.   MaskVariables   "oname=&1;osrc=&2;oargs=@3;replace=@4;"
  1165.   MaskInitialization   "opts.name = oname; opts.src = osrc; opts.ar"
  1166. "gs = oargs;ndspskipblk(gcb,opts,replace);n"
  1167.   MaskSelfModifiable   on
  1168.   MaskIconFrame   on
  1169.   MaskIconOpaque   on
  1170.   MaskIconRotate   "none"
  1171.   MaskIconUnits   "autoscale"
  1172.   MaskValueString   "Buffer|dspbuff3/Buffer|{'N','BufferSize','V"
  1173. "','Overlap','ic','0'}|strcmp(UseBuffer,'off')"
  1174.   MaskTabNameString   ",,,"
  1175.   System {
  1176.     Name     "OptionalnBuffering"
  1177.     Location     [112, 787, 368, 881]
  1178.     Open     off
  1179.     ModelBrowserVisibility  off
  1180.     ModelBrowserWidth     200
  1181.     ScreenColor     "white"
  1182.     PaperOrientation     "landscape"
  1183.     PaperPositionMode     "auto"
  1184.     PaperType     "usletter"
  1185.     PaperUnits     "inches"
  1186.     ZoomFactor     "100"
  1187.     Block {
  1188.       BlockType       Inport
  1189.       Name       "In"
  1190.       Position       [25, 38, 55, 52]
  1191.       Port       "1"
  1192.       IconDisplay       "Port number"
  1193.       LatchInput       off
  1194.     }
  1195.     Block {
  1196.       BlockType       Mux
  1197.       Name       "Buffer"
  1198.       Ports       [1, 1]
  1199.       Position       [80, 20, 130, 70]
  1200.       Inputs       "1"
  1201.     }
  1202.     Block {
  1203.       BlockType       Outport
  1204.       Name       "Out"
  1205.       Position       [160, 38, 190, 52]
  1206.       IconDisplay       "Port number"
  1207.       BusOutputAsStruct       off
  1208.       InitialOutput       "0"
  1209.     }
  1210.     Line {
  1211.       SrcBlock       "Buffer"
  1212.       SrcPort       1
  1213.       DstBlock       "Out"
  1214.       DstPort       1
  1215.     }
  1216.     Line {
  1217.       SrcBlock       "In"
  1218.       SrcPort       1
  1219.       DstBlock       "Buffer"
  1220.       DstPort       1
  1221.     }
  1222.   }
  1223. }
  1224. Block {
  1225.   BlockType   Reference
  1226.   Name   "Periodogram"
  1227.   Ports   [1, 1]
  1228.   Position   [390, 34, 470, 86]
  1229.   SourceBlock   "dspspect3/Periodogram"
  1230.   SourceType   "Periodogram"
  1231.   ShowPortLabels   on
  1232.   wintype   "Boxcar"
  1233.   Rs   "50"
  1234.   beta   "5"
  1235.   winsamp   "Periodic"
  1236.   inheritFFT   on
  1237.   fftsize   "FFTlength"
  1238.   navg   "numAvg"
  1239. }
  1240. Block {
  1241.   BlockType   Outport
  1242.   Name   "Out"
  1243.   Position   [530, 158, 560, 172]
  1244.   IconDisplay   "Port number"
  1245.   BusOutputAsStruct   off
  1246. }
  1247. Line {
  1248.   SrcBlock   "Periodogram"
  1249.   SrcPort   1
  1250.   Points   [0, 0; 10, 0]
  1251.   Branch {
  1252.     DstBlock     "Frame Scope"
  1253.     DstPort     1
  1254.   }
  1255.   Branch {
  1256.     Points     [0, 105]
  1257.     DstBlock     "Out"
  1258.     DstPort     1
  1259.   }
  1260. }
  1261. Line {
  1262.   SrcBlock   "In1"
  1263.   SrcPort   1
  1264.   DstBlock   "Calibration Gain"
  1265.   DstPort   1
  1266. }
  1267. Line {
  1268.   SrcBlock   "OptionalnBuffering"
  1269.   SrcPort   1
  1270.   DstBlock   "Data Type Conversion"
  1271.   DstPort   1
  1272. }
  1273. Line {
  1274.   SrcBlock   "Data Type Conversion"
  1275.   SrcPort   1
  1276.   DstBlock   "Periodogram"
  1277.   DstPort   1
  1278. }
  1279. Line {
  1280.   SrcBlock   "Calibration Gain"
  1281.   SrcPort   1
  1282.   DstBlock   "OptionalnBuffering"
  1283.   DstPort   1
  1284. }
  1285.       }
  1286.     }
  1287.     Block {
  1288.       BlockType       SubSystem
  1289.       Name       "Peak detect to Workspace"
  1290.       Ports       [1]
  1291.       Position       [665, 26, 705, 64]
  1292.       TreatAsAtomicUnit       off
  1293.       MinAlgLoopOccurrences   off
  1294.       RTWSystemCode       "Auto"
  1295.       System {
  1296. Name "Peak detect to Workspace"
  1297. Location [512, 160, 922, 407]
  1298. Open off
  1299. ModelBrowserVisibility off
  1300. ModelBrowserWidth 200
  1301. ScreenColor "white"
  1302. PaperOrientation "landscape"
  1303. PaperPositionMode "auto"
  1304. PaperType "usletter"
  1305. PaperUnits "inches"
  1306. ZoomFactor "100"
  1307. Block {
  1308.   BlockType   Inport
  1309.   Name   "In"
  1310.   Position   [25, 25, 55, 40]
  1311.   Orientation   "down"
  1312.   Port   "1"
  1313.   IconDisplay   "Port number"
  1314.   LatchInput   off
  1315. }
  1316. Block {
  1317.   BlockType   Selector
  1318.   Name   "0 Hz intermod tone"
  1319.   Ports   [1, 1]
  1320.   Position   [120, 41, 160, 79]
  1321.   InputPortWidth   "samp_frame"
  1322. }
  1323. Block {
  1324.   BlockType   Reference
  1325.   Name   "Abs Maximum"
  1326.   Ports   [1, 2]
  1327.   Position   [160, 135, 215, 175]
  1328.   DialogController   "dspDDGCreate"
  1329.   DialogControllerArgs   "DataTag4"
  1330.   SourceBlock   "dspstat3/Maximum"
  1331.   SourceType   "Maximum"
  1332.   fcn   "Value and Index"
  1333.   reset   "None"
  1334.   additionalParams   off
  1335.   allowOverrides   on
  1336.   accumMode   "Same as product output"
  1337.   accumWordLength   "32"
  1338.   accumFracLength   "30"
  1339.   prodOutputMode   "Same as input"
  1340.   prodOutputWordLength   "32"
  1341.   prodOutputFracLength   "30"
  1342.   roundingMode   "Floor"
  1343.   overflowMode   off
  1344.   LockScale   off
  1345. }
  1346. Block {
  1347.   BlockType   ToWorkspace
  1348.   Name   "To Workspace"
  1349.   Position   [325, 45, 385, 75]
  1350.   VariableName   "intermod"
  1351.   MaxDataPoints   "1"
  1352.   SampleTime   "-1"
  1353.   SaveFormat   "Array"
  1354. }
  1355. Block {
  1356.   BlockType   ToWorkspace
  1357.   Name   "To Workspace1"
  1358.   Position   [275, 130, 335, 160]
  1359.   VariableName   "peak"
  1360.   MaxDataPoints   "1"
  1361.   SampleTime   "-1"
  1362.   SaveFormat   "Array"
  1363. }
  1364. Block {
  1365.   BlockType   ToWorkspace
  1366.   Name   "To Workspace2"
  1367.   Position   [285, 190, 345, 220]
  1368.   VariableName   "peak_index"
  1369.   MaxDataPoints   "1"
  1370.   SampleTime   "-1"
  1371.   SaveFormat   "Array"
  1372. }
  1373. Line {
  1374.   SrcBlock   "In"
  1375.   SrcPort   1
  1376.   Points   [0, 0; 0, 15]
  1377.   Branch {
  1378.     DstBlock     "0 Hz intermod tone"
  1379.     DstPort     1
  1380.   }
  1381.   Branch {
  1382.     Points     [0, 95]
  1383.     DstBlock     "Abs Maximum"
  1384.     DstPort     1
  1385.   }
  1386. }
  1387. Line {
  1388.   SrcBlock   "0 Hz intermod tone"
  1389.   SrcPort   1
  1390.   DstBlock   "To Workspace"
  1391.   DstPort   1
  1392. }
  1393. Line {
  1394.   SrcBlock   "Abs Maximum"
  1395.   SrcPort   1
  1396.   DstBlock   "To Workspace1"
  1397.   DstPort   1
  1398. }
  1399. Line {
  1400.   SrcBlock   "Abs Maximum"
  1401.   SrcPort   2
  1402.   Points   [25, 0; 0, 40]
  1403.   DstBlock   "To Workspace2"
  1404.   DstPort   1
  1405. }
  1406.       }
  1407.     }
  1408.     Block {
  1409.       BlockType       Reference
  1410.       Name       "Sine Wave"
  1411.       Ports       [0, 1]
  1412.       Position       [15, 23, 60, 67]
  1413.       AttributesFormatString  "Amplitude = %<Amplitude>"
  1414.       SourceBlock       "dspsrcs4/Sine Wave"
  1415.       SourceType       "Sine Wave"
  1416.       Amplitude       "ampl"
  1417.       Frequency       "0.125/t_s"
  1418.       Phase       "rand(1,1)*2*pi"
  1419.       SampleMode       "Discrete"
  1420.       OutComplex       "Complex"
  1421.       CompMethod       "Trigonometric fcn"
  1422.       TableSize       "Speed"
  1423.       SampleTime       "t_s"
  1424.       SamplesPerFrame       "samp_frame"
  1425.       additionalParams       off
  1426.       allowOverrides       on
  1427.       dataType       "double"
  1428.       wordLen       "16"
  1429.       udDataType       "sfix(16)"
  1430.       fracBitsMode       "Best precision"
  1431.       numFracBits       "15"
  1432.       ResetState       "Restart at time zero"
  1433.     }
  1434.     Block {
  1435.       BlockType       Reference
  1436.       Name       "Sine Wave1"
  1437.       Ports       [0, 1]
  1438.       Position       [20, 118, 65, 162]
  1439.       AttributesFormatString  "Amplitude = %<Amplitude>"
  1440.       SourceBlock       "dspsrcs4/Sine Wave"
  1441.       SourceType       "Sine Wave"
  1442.       Amplitude       "ampl"
  1443.       Frequency       "0.0625/t_s"
  1444.       Phase       "rand(1,1)*2*pi"
  1445.       SampleMode       "Discrete"
  1446.       OutComplex       "Complex"
  1447.       CompMethod       "Trigonometric fcn"
  1448.       TableSize       "Speed"
  1449.       SampleTime       "t_s"
  1450.       SamplesPerFrame       "samp_frame"
  1451.       additionalParams       off
  1452.       allowOverrides       on
  1453.       dataType       "double"
  1454.       wordLen       "16"
  1455.       udDataType       "sfix(16)"
  1456.       fracBitsMode       "Best precision"
  1457.       numFracBits       "15"
  1458.       ResetState       "Restart at time zero"
  1459.     }
  1460.     Block {
  1461.       BlockType       Sum
  1462.       Name       "Sum"
  1463.       Ports       [2, 1]
  1464.       Position       [90, 35, 110, 55]
  1465.       ShowName       off
  1466.       IconShape       "round"
  1467.       Inputs       "|++"
  1468.       InputSameDT       off
  1469.       OutDataTypeMode       "Inherit via internal rule"
  1470.       SaturateOnIntegerOverflow off
  1471.     }
  1472.     Block {
  1473.       BlockType       Display
  1474.       Name       "dBm"
  1475.       Ports       [1]
  1476.       Position       [415, 165, 505, 195]
  1477.       Format       "bank"
  1478.       Decimation       "1"
  1479.     }
  1480.     Block {
  1481.       BlockType       Display
  1482.       Name       "dBm1"
  1483.       Ports       [1]
  1484.       Position       [705, 185, 795, 215]
  1485.       Format       "bank"
  1486.       Decimation       "1"
  1487.     }
  1488.     Line {
  1489.       SrcBlock       "Sine Wave"
  1490.       SrcPort       1
  1491.       DstBlock       "Sum"
  1492.       DstPort       1
  1493.     }
  1494.     Line {
  1495.       SrcBlock       "Sine Wave1"
  1496.       SrcPort       1
  1497.       Points       [30, 0]
  1498.       DstBlock       "Sum"
  1499.       DstPort       2
  1500.     }
  1501.     Line {
  1502.       SrcBlock       "Sum"
  1503.       SrcPort       1
  1504.       Points       [0, 0; 15, 0]
  1505.       Branch {
  1506. Points [0, 135]
  1507. DstBlock "Amp to dBm"
  1508. DstPort 1
  1509.       }
  1510.       Branch {
  1511. DstBlock "Amplifier"
  1512. DstPort 1
  1513.       }
  1514.     }
  1515.     Line {
  1516.       SrcBlock       "Amplifier"
  1517.       SrcPort       1
  1518.       Points       [195, 0]
  1519.       Branch {
  1520. Points [0, 155]
  1521. DstBlock "Amp to dBm1"
  1522. DstPort 1
  1523.       }
  1524.       Branch {
  1525. DstBlock "ModifiednSpectrumnScopenBoxcar"
  1526. DstPort 1
  1527.       }
  1528.     }
  1529.     Line {
  1530.       SrcBlock       "Amp to dBm"
  1531.       SrcPort       1
  1532.       DstBlock       "dBm"
  1533.       DstPort       1
  1534.     }
  1535.     Line {
  1536.       SrcBlock       "Amp to dBm1"
  1537.       SrcPort       1
  1538.       DstBlock       "dBm1"
  1539.       DstPort       1
  1540.     }
  1541.     Line {
  1542.       SrcBlock       "ModifiednSpectrumnScopenBoxcar"
  1543.       SrcPort       1
  1544.       DstBlock       "Peak detect to Workspace"
  1545.       DstPort       1
  1546.     }
  1547.   }
  1548. }
  1549. MatData {
  1550.   NumRecords   5
  1551.   DataRecord {
  1552.     Tag     DataTag4
  1553.     Data     "  %)30     .    :     8    (     0         %    "
  1554. ""     $    !     0         .    .     8    (    !          %    "     $    "
  1555. "&     0         0    !@   $UI;DUA>   "
  1556.   }
  1557.   DataRecord {
  1558.     Tag     DataTag3
  1559.     Data     "  %)30     .    8     8    (     0         %    "
  1560. ""     $    !     0         .    ,     8    (    !          %    "     $    "
  1561. "$     0         0  0 365A;@"
  1562.   }
  1563.   DataRecord {
  1564.     Tag     DataTag2
  1565.     Data     "  %)30     .    8     8    (     0         %    "
  1566. ""     $    !     0         .    ,     8    (    !          %    "     $    "
  1567. "$     0         0  0 365A;@"
  1568.   }
  1569.   DataRecord {
  1570.     Tag     DataTag1
  1571.     Data     "  %)30     .    8     8    (     0         %    "
  1572. ""     $    !     0         .    ,     8    (    !          %    "     $    "
  1573. "$     0         0  0 365A;@"
  1574.   }
  1575.   DataRecord {
  1576.     Tag     DataTag0
  1577.     Data     "  %)30     .    8     8    (     0         %    "
  1578. ""     $    !     0         .    ,     8    (    !          %    "     $    "
  1579. "$     0         0  0 365A;@"
  1580.   }
  1581. }