two_tone_lna.mdl
上传用户:asli888
上传日期:2013-05-03
资源大小:7045k
文件大小:45k
- Model {
- Name "two_tone_lna"
- Version 6.0
- GraphicalInterface {
- NumRootInports 0
- NumRootOutports 0
- ParameterArgumentNames ""
- ComputedModelVersion "1.142"
- NumModelReferences 0
- NumTestPointedSignals 0
- }
- SavedCharacterEncoding "ibm-5348_P100-1997"
- PreLoadFcn "t_s = 0.5/8e6 % s f_c +- 8MHznsamp_frame = 256nZ0"
- " = 1 % ohmsnp_in_dBm = -30nampl = sqrt(Z0 * 10^(p_in_dBm/10) / 1000)nf_c ="
- " 2.45e9 % Hzniip3_dBm = 10 % dBmndisp('To edit the workspace variables,')n"
- "disp('select the ''Callbacks'' tab')ndisp('from the ''File==>Model Propertie"
- "s''... properties box')"
- SaveDefaultBlockParams on
- SampleTimeColors off
- LibraryLinkDisplay "none"
- WideLines off
- ShowLineDimensions off
- ShowPortDataTypes off
- ShowLoopsOnError on
- IgnoreBidirectionalLines off
- ShowStorageClass off
- ShowTestPointIcons on
- ShowViewerIcons on
- SortedOrder off
- ExecutionContextIcon off
- ShowLinearizationAnnotations on
- RecordCoverage off
- CovPath "/"
- CovSaveName "covdata"
- CovMetricSettings "dw"
- CovNameIncrementing off
- CovHtmlReporting on
- covSaveCumulativeToWorkspaceVar on
- CovSaveSingleToWorkspaceVar on
- CovCumulativeVarName "covCumulativeData"
- CovCumulativeReport off
- CovReportOnPause on
- ScopeRefreshTime 0.035000
- OverrideScopeRefreshTime on
- DisableAllScopes off
- DataTypeOverride "UseLocalSettings"
- MinMaxOverflowLogging "UseLocalSettings"
- MinMaxOverflowArchiveMode "Overwrite"
- BlockNameDataTip off
- BlockParametersDataTip off
- BlockDescriptionStringDataTip off
- ToolBar on
- StatusBar on
- BrowserShowLibraryLinks off
- BrowserLookUnderMasks off
- Created "Tue Jun 29 11:29:57 2004"
- UpdateHistory "UpdateHistoryNever"
- ModifiedByFormat "%<Auto>"
- LastModifiedBy "cwarwick"
- ModifiedDateFormat "%<Auto>"
- LastModifiedDate "Wed Jul 14 15:33:11 2004"
- ModelVersionFormat "1.%<AutoIncrement:142>"
- ConfigurationManager "None"
- LinearizationMsg "none"
- Profile off
- ParamWorkspaceSource "MATLABWorkspace"
- AccelSystemTargetFile "accel.tlc"
- AccelTemplateMakefile "accel_default_tmf"
- AccelMakeCommand "make_rtw"
- TryForcingSFcnDF off
- ExtModeBatchMode off
- ExtModeEnableFloating on
- ExtModeTrigType "manual"
- ExtModeTrigMode "normal"
- ExtModeTrigPort "1"
- ExtModeTrigElement "any"
- ExtModeTrigDuration 1000
- ExtModeTrigDurationFloating "auto"
- ExtModeTrigHoldOff 0
- ExtModeTrigDelay 0
- ExtModeTrigDirection "rising"
- ExtModeTrigLevel 0
- ExtModeArchiveMode "off"
- ExtModeAutoIncOneShot off
- ExtModeIncDirWhenArm off
- ExtModeAddSuffixToVar off
- ExtModeWriteAllDataToWs off
- ExtModeArmWhenConnect on
- ExtModeSkipDownloadWhenConnect off
- ExtModeLogAll on
- ExtModeAutoUpdateStatusClock on
- BufferReuse on
- ProdHWDeviceType "32-bit Generic"
- ShowModelReferenceBlockVersion off
- ShowModelReferenceBlockIO off
- Array {
- Type "Handle"
- Dimension 1
- Simulink.ConfigSet {
- $ObjectID 1
- Version "1.0.4"
- Array {
- Type "Handle"
- Dimension 7
- Simulink.SolverCC {
- $ObjectID 2
- Version "1.0.4"
- StartTime "0.0"
- StopTime "t_s*(samp_frame)"
- AbsTol "auto"
- FixedStep "auto"
- InitialStep "auto"
- MaxNumMinSteps "-1"
- MaxOrder 5
- ExtrapolationOrder 4
- NumberNewtonIterations 1
- MaxStep "auto"
- MinStep "auto"
- RelTol "1e-3"
- SolverMode "Auto"
- Solver "FixedStepDiscrete"
- ZeroCrossControl "UseLocalSettings"
- PositivePriorityOrder off
- AutoInsertRateTranBlk off
- SampleTimeConstraint "Unconstrained"
- RateTranMode "Deterministic"
- }
- Simulink.DataIOCC {
- $ObjectID 3
- Version "1.0.4"
- Decimation "1"
- ExternalInput "[t, u]"
- FinalStateName "xFinal"
- InitialState "xInitial"
- LimitDataPoints on
- MaxDataPoints "1000"
- LoadExternalInput off
- LoadInitialState off
- SaveFinalState off
- SaveFormat "Array"
- SaveOutput on
- SaveState off
- SaveTime on
- StateSaveName "xout"
- TimeSaveName "tout"
- OutputSaveName "yout"
- SignalLoggingName "logsout"
- OutputOption "RefineOutputTimes"
- OutputTimes "[]"
- Refine "1"
- }
- Simulink.OptimizationCC {
- $ObjectID 4
- Array {
- Type "Cell"
- Dimension 5
- Cell "ZeroExternalMemoryAtStartup"
- Cell "ZeroInternalMemoryAtStartup"
- Cell "InitFltsAndDblsToZero"
- Cell "OptimizeModelRefInitCode"
- Cell "NoFixptDivByZeroProtection"
- PropName "DisabledProps"
- }
- Version "1.0.4"
- BlockReduction on
- BooleanDataType on
- ConditionallyExecuteInputs on
- ConditionalExecOptimization "on_for_testing"
- InlineParams off
- InlineInvariantSignals on
- OptimizeBlockIOStorage on
- BufferReuse on
- EnforceIntegerDowncast on
- ExpressionFolding on
- FoldNonRolledExpr on
- LocalBlockOutputs on
- ParameterPooling on
- RollThreshold 5
- SystemCodeInlineAuto off
- StateBitsets off
- DataBitsets off
- UseTempVars off
- ZeroExternalMemoryAtStartup on
- ZeroInternalMemoryAtStartup on
- InitFltsAndDblsToZero on
- NoFixptDivByZeroProtection off
- OptimizeModelRefInitCode off
- LifeSpan "inf"
- }
- Simulink.DebuggingCC {
- $ObjectID 5
- Version "1.0.4"
- ConsistencyChecking "none"
- ArrayBoundsChecking "none"
- AlgebraicLoopMsg "warning"
- ArtificialAlgebraicLoopMsg "warning"
- CheckSSInitialOutputMsg on
- CheckExecutionContextPreStartOutputMsg off
- CheckExecutionContextRuntimeOutputMsg off
- SignalResolutionControl "TryResolveAllWithWarning"
- BlockPriorityViolationMsg "warning"
- MinStepSizeMsg "warning"
- SolverPrmCheckMsg "warning"
- InheritedTsInSrcMsg "warning"
- DiscreteInheritContinuousMsg "warning"
- MultiTaskRateTransMsg "error"
- SingleTaskRateTransMsg "none"
- TasksWithSamePriorityMsg "warning"
- CheckMatrixSingularityMsg "none"
- IntegerOverflowMsg "warning"
- Int32ToFloatConvMsg "warning"
- ParameterDowncastMsg "error"
- ParameterOverflowMsg "error"
- ParameterPrecisionLossMsg "warning"
- UnderSpecifiedDataTypeMsg "none"
- UnnecessaryDatatypeConvMsg "none"
- VectorMatrixConversionMsg "none"
- InvalidFcnCallConnMsg "error"
- SignalLabelMismatchMsg "none"
- UnconnectedInputMsg "warning"
- UnconnectedOutputMsg "warning"
- UnconnectedLineMsg "warning"
- SFcnCompatibilityMsg "none"
- UniqueDataStoreMsg "none"
- RootOutportRequireBusObject "warning"
- AssertControl "UseLocalSettings"
- EnableOverflowDetection off
- ModelReferenceIOMsg "none"
- ModelReferenceVersionMismatchMessage "none"
- ModelReferenceIOMismatchMessage "none"
- ModelReferenceCSMismatchMessage "none"
- ModelReferenceSimTargetVerbose off
- UnknownTsInhSupMsg "warning"
- ModelReferenceDataLoggingMessage "warning"
- ModelReferenceSymbolNameMessage "warning"
- }
- Simulink.HardwareCC {
- $ObjectID 6
- Version "1.0.4"
- ProdBitPerChar 8
- ProdBitPerShort 16
- ProdBitPerInt 32
- ProdBitPerLong 32
- ProdIntDivRoundTo "Undefined"
- ProdEndianess "Unspecified"
- ProdWordSize 32
- ProdShiftRightIntArith on
- ProdHWDeviceType "32-bit Generic"
- TargetBitPerChar 8
- TargetBitPerShort 16
- TargetBitPerInt 32
- TargetBitPerLong 32
- TargetShiftRightIntArith on
- TargetIntDivRoundTo "Undefined"
- TargetEndianess "Unspecified"
- TargetWordSize 32
- TargetTypeEmulationWarnSuppressLevel 0
- TargetPreprocMaxBitsSint 32
- TargetPreprocMaxBitsUint 32
- TargetHWDeviceType "Specified"
- TargetUnknown off
- ProdEqTarget on
- }
- Simulink.ModelReferenceCC {
- $ObjectID 7
- Version "1.0.4"
- UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
- CheckModelReferenceTargetMessage "error"
- ModelReferenceNumInstancesAllowed "Multi"
- ModelReferencePassRootInputsByReference on
- ModelReferenceMinAlgLoopOccurrences off
- }
- Simulink.RTWCC {
- $BackupClass "Simulink.RTWCC"
- $ObjectID 8
- Array {
- Type "Cell"
- Dimension 1
- Cell "IncludeHyperlinkInReport"
- PropName "DisabledProps"
- }
- Version "1.0.4"
- SystemTargetFile "grt.tlc"
- GenCodeOnly off
- MakeCommand "make_rtw"
- TemplateMakefile "grt_default_tmf"
- GenerateReport off
- SaveLog off
- RTWVerbose on
- RetainRTWFile off
- ProfileTLC off
- TLCDebug off
- TLCCoverage off
- TLCAssert off
- ProcessScriptMode "Default"
- ConfigurationMode "Optimized"
- ConfigAtBuild off
- IncludeHyperlinkInReport off
- LaunchReport off
- Array {
- Type "Handle"
- Dimension 2
- Simulink.CodeAppCC {
- $ObjectID 9
- Array {
- Type "Cell"
- Dimension 9
- Cell "IgnoreCustomStorageClasses"
- Cell "InsertBlockDesc"
- Cell "SFDataObjDesc"
- Cell "SimulinkDataObjDesc"
- Cell "DefineNamingRule"
- Cell "SignalNamingRule"
- Cell "ParamNamingRule"
- Cell "InlinedPrmAccess"
- Cell "CustomSymbolStr"
- PropName "DisabledProps"
- }
- Version "1.0.4"
- ForceParamTrailComments off
- GenerateComments on
- IgnoreCustomStorageClasses on
- IncHierarchyInIds off
- MaxIdLength 31
- PreserveName off
- PreserveNameWithParent off
- ShowEliminatedStatement off
- IncAutoGenComments off
- SimulinkDataObjDesc off
- SFDataObjDesc off
- IncDataTypeInIds off
- PrefixModelToSubsysFcnNames on
- CustomSymbolStr "$R$N$M"
- MangleLength 1
- DefineNamingRule "None"
- ParamNamingRule "None"
- SignalNamingRule "None"
- InsertBlockDesc off
- SimulinkBlockComments on
- EnableCustomComments off
- InlinedPrmAccess "Literals"
- ReqsInCode off
- }
- Simulink.GRTTargetCC {
- $BackupClass "Simulink.TargetCC"
- $ObjectID 10
- Array {
- Type "Cell"
- Dimension 12
- Cell "IncludeMdlTerminateFcn"
- Cell "CombineOutputUpdateFcns"
- Cell "SuppressErrorStatus"
- Cell "ERTCustomFileBanners"
- Cell "GenerateSampleERTMain"
- Cell "MultiInstanceERTCode"
- Cell "PurelyIntegerCode"
- Cell "SupportNonFinite"
- Cell "SupportComplex"
- Cell "SupportAbsoluteTime"
- Cell "SupportContinuousTime"
- Cell "SupportNonInlinedSFcns"
- PropName "DisabledProps"
- }
- Version "1.0.4"
- TargetFcnLib "ansi_tfl_tmw.mat"
- GenFloatMathFcnCalls "ANSI_C"
- UtilityFuncGeneration "Auto"
- GenerateFullHeader on
- GenerateSampleERTMain off
- IsPILTarget off
- ModelReferenceCompliant on
- IncludeMdlTerminateFcn on
- CombineOutputUpdateFcns off
- SuppressErrorStatus off
- IncludeFileDelimiter "Auto"
- ERTCustomFileBanners off
- SupportAbsoluteTime on
- LogVarNameModifier "rt_"
- MatFileLogging on
- MultiInstanceERTCode off
- SupportNonFinite on
- SupportComplex on
- PurelyIntegerCode off
- SupportContinuousTime on
- SupportNonInlinedSFcns on
- ExtMode off
- ExtModeStaticAlloc off
- ExtModeTesting off
- ExtModeStaticAllocSize 1000000
- ExtModeTransport 0
- ExtModeMexFile "ext_comm"
- RTWCAPISignals off
- RTWCAPIParams off
- RTWCAPIStates off
- GenerateASAP2 off
- }
- PropName "Components"
- }
- }
- PropName "Components"
- }
- Name "Configuration"
- SimulationMode "normal"
- CurrentDlgPage "Solver"
- }
- PropName "ConfigurationSets"
- }
- Simulink.ConfigSet {
- $PropName "ActiveConfigurationSet"
- $ObjectID 1
- }
- BlockDefaults {
- Orientation "right"
- ForegroundColor "black"
- BackgroundColor "white"
- DropShadow off
- NamePlacement "normal"
- FontName "Helvetica"
- FontSize 10
- FontWeight "normal"
- FontAngle "normal"
- ShowName on
- }
- BlockParameterDefaults {
- Block {
- BlockType ActionPort
- InitializeStates "held"
- ActionType "unset"
- }
- 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 Display
- Format "short"
- Decimation "10"
- Floating off
- 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
- BusObject "BusObject"
- BusOutputAsStruct off
- PortDimensions "-1"
- SampleTime "-1"
- DataType "auto"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- SignalType "auto"
- SamplingMode "auto"
- 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"
- 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 "MathnFunction1"
- 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 "MathnFunction1"
- 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 "MathnFunction1"
- 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 "MathnFunction1"
- 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 "MathnFunction1"
- 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 "MathnFunction1"
- 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 "ModifiednSpectrumnScopenBoxcar"
- Ports [1, 1]
- Position [575, 20, 610, 70]
- AncestorBlock "dspsnks4/SpectrumnScope"
- 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"
- "nCheckbox');|||dspblkbfftscope2('dynamic','DisplayProperties');|||||||dspblkb"
- "fftscope2('dynamic','OpenScope');||dspblkbfftscope2('dynamic','AxisProperties"
- "');|||dspblkbfftscope2('dynamic','InheritXIncr');|||||||dspblkbfftscope2('dyn"
- "amic','LineProperties');||||"
- MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
- ",on,on,on,on,on,on,off,on,on,on,on,on,on,on,on,on,on"
- MaskVisibilityString "on,off,off,on,off,off,on,off,on,on,off,off,off,"
- "off,off,off,off,off,on,off,off,off,off,off,off,off,off,off,on,off,off,off,off"
- MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
- ",on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
- MaskVarAliasString ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
- MaskVariables "ScopeProperties=&1;Domain=@2;HorizSpan=@3;UseBu"
- "ffer=&4;BufferSize=@5;Overlap=@6;inpFftLenInherit=@7;FFTlength=@8;numAvg=@9;D"
- "isplayProperties=&10;AxisGrid=&11;Memory=&12;FrameNumber=&13;AxisLegend=&14;A"
- "xisZoom=&15;OpenScopeAtSimStart=&16;OpenScopeImmediately=&17;FigPos=@18;AxisP"
- "roperties=&19;XUnits=@20;XRange=@21;InheritXIncr=&22;XIncr=@23;XLabel=&24;YUn"
- "its=@25;YMin=@26;YMax=@27;YLabel=&28;LineProperties=&29;LineDisables=&30;Line"
- "Styles=&31;LineMarkers=&32;LineColors=&33;"
- MaskInitialization "[x,y,str] = dspblkbfftscope2('icon');ns = dspb"
- "lkbfftscope2('init');"
- MaskDisplay "plot(x,y); text(14,20,str);n"
- MaskSelfModifiable on
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "on|Frequency|1|off|128|64|off|128|2|off|on|off|"
- "on|off|off|on|off|get(0,'defaultfigureposition')|off|Hertz|[-Fs/2...Fs/2]|on|"
- "1.0|Samples|dB|-160|40|Magnitude, dB|off|||x|"
- MaskTabNameString ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
- System {
- Name "ModifiednSpectrumnScopenBoxcar"
- Location [388, 484, 878, 627]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In1"
- Position [25, 53, 55, 67]
- Port "1"
- IconDisplay "Port number"
- LatchInput off
- }
- Block {
- BlockType Gain
- Name "Calibration Gain"
- Position [135, 45, 165, 75]
- AttributesFormatString "%<Gain>"
- Gain "sqrt(1000/samp_frame/Z0) % 1000 mW per W"
- ParameterDataTypeMode "Inherit via internal rule"
- OutDataTypeMode "Inherit via internal rule"
- SaturateOnIntegerOverflow off
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type Conversion"
- Position [305, 46, 360, 74]
- ShowName off
- OutDataTypeMode "double"
- }
- Block {
- BlockType "M-S-Function"
- Name "Frame Scope"
- Ports [1]
- Position [510, 46, 590, 74]
- CopyFcn ";"
- MFile "sdspfscope2"
- Parameters "2"
- MaskType "Frame Scope"
- MaskDescription "Level-2 M-file S-function for frame scope."
- MaskHelp "web(dspbhelp);"
- MaskDisplay "disp('Frame\nScope')"
- MaskSelfModifiable on
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- }
- Block {
- BlockType SubSystem
- Name "OptionalnBuffering"
- Ports [1, 1]
- Position [225, 38, 275, 82]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskType "Replaceable Contents"
- MaskDescription "Configurable subsystem holding blocks which"
- " may be replaced by virtual short-circuits (muxes) when not needed."
- MaskHelp "n"
- MaskPromptString "Relative name of blocks to replace:|Simulin"
- "k path to each source block:|Parameter/value pairs to each block:|Replace wit"
- "h short-circuit:"
- MaskStyleString "edit,edit,edit,edit"
- MaskTunableValueString "off,off,off,off"
- MaskCallbackString "|||"
- MaskEnableString "on,on,on,on"
- MaskVisibilityString "on,on,on,on"
- MaskToolTipString "on,on,on,on"
- MaskVarAliasString ",,,"
- MaskVariables "oname=&1;osrc=&2;oargs=@3;replace=@4;"
- MaskInitialization "opts.name = oname; opts.src = osrc; opts.ar"
- "gs = oargs;ndspskipblk(gcb,opts,replace);n"
- MaskSelfModifiable on
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "Buffer|dspbuff3/Buffer|{'N','BufferSize','V"
- "','Overlap','ic','0'}|strcmp(UseBuffer,'off')"
- MaskTabNameString ",,,"
- System {
- Name "OptionalnBuffering"
- Location [112, 787, 368, 881]
- 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, 38, 55, 52]
- Port "1"
- IconDisplay "Port number"
- LatchInput off
- }
- Block {
- BlockType Mux
- Name "Buffer"
- Ports [1, 1]
- Position [80, 20, 130, 70]
- Inputs "1"
- }
- Block {
- BlockType Outport
- Name "Out"
- Position [160, 38, 190, 52]
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Line {
- SrcBlock "Buffer"
- SrcPort 1
- DstBlock "Out"
- DstPort 1
- }
- Line {
- SrcBlock "In"
- SrcPort 1
- DstBlock "Buffer"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Reference
- Name "Periodogram"
- Ports [1, 1]
- Position [390, 34, 470, 86]
- SourceBlock "dspspect3/Periodogram"
- SourceType "Periodogram"
- ShowPortLabels on
- wintype "Boxcar"
- Rs "50"
- beta "5"
- winsamp "Periodic"
- inheritFFT on
- fftsize "FFTlength"
- navg "numAvg"
- }
- Block {
- BlockType Outport
- Name "Out"
- Position [530, 158, 560, 172]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Periodogram"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- DstBlock "Frame Scope"
- DstPort 1
- }
- Branch {
- Points [0, 105]
- DstBlock "Out"
- DstPort 1
- }
- }
- Line {
- SrcBlock "In1"
- SrcPort 1
- DstBlock "Calibration Gain"
- DstPort 1
- }
- Line {
- SrcBlock "OptionalnBuffering"
- SrcPort 1
- DstBlock "Data Type Conversion"
- DstPort 1
- }
- Line {
- SrcBlock "Data Type Conversion"
- SrcPort 1
- DstBlock "Periodogram"
- DstPort 1
- }
- Line {
- SrcBlock "Calibration Gain"
- SrcPort 1
- DstBlock "OptionalnBuffering"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Peak detect to Workspace"
- Ports [1]
- Position [665, 26, 705, 64]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- System {
- Name "Peak detect to Workspace"
- Location [512, 160, 922, 407]
- 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, 25, 55, 40]
- Orientation "down"
- Port "1"
- IconDisplay "Port number"
- LatchInput off
- }
- Block {
- BlockType Selector
- Name "0 Hz intermod tone"
- Ports [1, 1]
- Position [120, 41, 160, 79]
- InputPortWidth "samp_frame"
- }
- Block {
- BlockType Reference
- Name "Abs Maximum"
- Ports [1, 2]
- Position [160, 135, 215, 175]
- DialogController "dspDDGCreate"
- DialogControllerArgs "DataTag4"
- SourceBlock "dspstat3/Maximum"
- SourceType "Maximum"
- fcn "Value and Index"
- reset "None"
- additionalParams off
- allowOverrides on
- accumMode "Same as product output"
- accumWordLength "32"
- accumFracLength "30"
- prodOutputMode "Same as input"
- prodOutputWordLength "32"
- prodOutputFracLength "30"
- roundingMode "Floor"
- overflowMode off
- LockScale off
- }
- Block {
- BlockType ToWorkspace
- Name "To Workspace"
- Position [325, 45, 385, 75]
- VariableName "intermod"
- MaxDataPoints "1"
- SampleTime "-1"
- SaveFormat "Array"
- }
- Block {
- BlockType ToWorkspace
- Name "To Workspace1"
- Position [275, 130, 335, 160]
- VariableName "peak"
- MaxDataPoints "1"
- SampleTime "-1"
- SaveFormat "Array"
- }
- Block {
- BlockType ToWorkspace
- Name "To Workspace2"
- Position [285, 190, 345, 220]
- VariableName "peak_index"
- MaxDataPoints "1"
- SampleTime "-1"
- SaveFormat "Array"
- }
- Line {
- SrcBlock "In"
- SrcPort 1
- Points [0, 0; 0, 15]
- Branch {
- DstBlock "0 Hz intermod tone"
- DstPort 1
- }
- Branch {
- Points [0, 95]
- DstBlock "Abs Maximum"
- DstPort 1
- }
- }
- Line {
- SrcBlock "0 Hz intermod tone"
- SrcPort 1
- DstBlock "To Workspace"
- DstPort 1
- }
- Line {
- SrcBlock "Abs Maximum"
- SrcPort 1
- DstBlock "To Workspace1"
- DstPort 1
- }
- Line {
- SrcBlock "Abs Maximum"
- SrcPort 2
- Points [25, 0; 0, 40]
- DstBlock "To Workspace2"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Reference
- Name "Sine Wave"
- Ports [0, 1]
- Position [15, 23, 60, 67]
- AttributesFormatString "Amplitude = %<Amplitude>"
- SourceBlock "dspsrcs4/Sine Wave"
- SourceType "Sine Wave"
- Amplitude "ampl"
- Frequency "0.125/t_s"
- Phase "rand(1,1)*2*pi"
- SampleMode "Discrete"
- OutComplex "Complex"
- CompMethod "Trigonometric fcn"
- TableSize "Speed"
- SampleTime "t_s"
- SamplesPerFrame "samp_frame"
- 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 [20, 118, 65, 162]
- AttributesFormatString "Amplitude = %<Amplitude>"
- SourceBlock "dspsrcs4/Sine Wave"
- SourceType "Sine Wave"
- Amplitude "ampl"
- Frequency "0.0625/t_s"
- Phase "rand(1,1)*2*pi"
- SampleMode "Discrete"
- OutComplex "Complex"
- CompMethod "Trigonometric fcn"
- TableSize "Speed"
- SampleTime "t_s"
- SamplesPerFrame "samp_frame"
- additionalParams off
- allowOverrides on
- dataType "double"
- wordLen "16"
- udDataType "sfix(16)"
- fracBitsMode "Best precision"
- numFracBits "15"
- ResetState "Restart at time zero"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [90, 35, 110, 55]
- ShowName off
- IconShape "round"
- Inputs "|++"
- InputSameDT off
- OutDataTypeMode "Inherit via internal rule"
- SaturateOnIntegerOverflow off
- }
- Block {
- BlockType Display
- Name "dBm"
- Ports [1]
- Position [415, 165, 505, 195]
- Format "bank"
- Decimation "1"
- }
- Block {
- BlockType Display
- Name "dBm1"
- Ports [1]
- Position [705, 185, 795, 215]
- Format "bank"
- Decimation "1"
- }
- Line {
- SrcBlock "Sine Wave"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Sine Wave1"
- SrcPort 1
- Points [30, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- Points [0, 0; 15, 0]
- Branch {
- Points [0, 135]
- DstBlock "Amp to dBm"
- DstPort 1
- }
- Branch {
- DstBlock "Amplifier"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Amplifier"
- SrcPort 1
- Points [195, 0]
- Branch {
- Points [0, 155]
- DstBlock "Amp to dBm1"
- DstPort 1
- }
- Branch {
- DstBlock "ModifiednSpectrumnScopenBoxcar"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Amp to dBm"
- SrcPort 1
- DstBlock "dBm"
- DstPort 1
- }
- Line {
- SrcBlock "Amp to dBm1"
- SrcPort 1
- DstBlock "dBm1"
- DstPort 1
- }
- Line {
- SrcBlock "ModifiednSpectrumnScopenBoxcar"
- SrcPort 1
- DstBlock "Peak detect to Workspace"
- DstPort 1
- }
- }
- }
- MatData {
- NumRecords 5
- DataRecord {
- Tag DataTag4
- Data " %)30 . : 8 ( 0 % "
- "" $ ! 0 . . 8 ( ! % " $ "
- "& 0 0 !@ $UI;DUA> "
- }
- DataRecord {
- Tag DataTag3
- Data " %)30 . 8 8 ( 0 % "
- "" $ ! 0 . , 8 ( ! % " $ "
- "$ 0 0 0 365A;@"
- }
- DataRecord {
- Tag DataTag2
- Data " %)30 . 8 8 ( 0 % "
- "" $ ! 0 . , 8 ( ! % " $ "
- "$ 0 0 0 365A;@"
- }
- DataRecord {
- Tag DataTag1
- Data " %)30 . 8 8 ( 0 % "
- "" $ ! 0 . , 8 ( ! % " $ "
- "$ 0 0 0 365A;@"
- }
- DataRecord {
- Tag DataTag0
- Data " %)30 . 8 8 ( 0 % "
- "" $ ! 0 . , 8 ( ! % " $ "
- "$ 0 0 0 365A;@"
- }
- }