Model { Name "am_env_filt" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "1000" SolverMode "SingleTasking" Solver "ode45" RelTol "1e-3" AbsTol "1e-3" Refine "1" MaxStep ".01" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Matrix" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "warning" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ConsistencyChecking "off" ZeroCross on SimulationMode "normal" BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar off StatusBar off BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_unix.tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect off Created "Mon Feb 26 14:13:55 2001" Creator "kozick" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "kozick" ModifiedDateFormat "%" LastModifiedDate "Mon Feb 26 14:14:11 2001" ModelVersionFormat "1.%" ConfigurationManager "none" BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } 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 "am_env_filt" Location [313, 57, 964, 357] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Sin Name "Carrier" Position [220, 180, 240, 200] Amplitude "1" Frequency "10" Phase "0" SampleTime "-1" } Block { BlockType SubSystem Name "Chebychev Type II\nLP Filter" Ports [1, 1, 0, 0, 0] Position [465, 129, 525, 181] ShowPortLabels on MaskType "cheb2ap" MaskDescription "Chebyshev type II low pass filter.\n(Requires S" "ignal Processing Toolbox)" MaskHelp "Analog Chebychev type II low pass filter using " "MATLAB's cheb2ap command." MaskPromptString "Cutoff frequency (rad/sec):|Order:|Db ripple do" "wn in stopband:" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskInitialization "[z,p,k]=cheb2ap(@2,@3); z=@1*z; p=@1*p; k=real(" "prod(-p)/prod(-z)); [num,den]=zp2tf(z,p,k); w=logspace(log10(@1/10),log10(10*" "@1),50); h=freqs(num,den,w); " MaskDisplay "plot(20*log10(w),20*log10(abs(h)))" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "2|2|20" System { Name "Chebychev Type II\nLP Filter" Location [70, 200, 570, 460] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "In1" Position [20, 85, 40, 105] Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType ZeroPole Name "Chebychev Type II\nLP Filter" Position [90, 59, 150, 111] Zeros "z" Poles "p" Gain "k" } Block { BlockType Outport Name "Out1" Position [180, 85, 200, 105] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Chebychev Type II\nLP Filter" DstPort 1 } Line { SrcBlock "Chebychev Type II\nLP Filter" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Constant Name "Constant" Position [55, 135, 75, 155] Value "1" } Block { BlockType Constant Name "Constant1" Position [350, 170, 370, 190] Value "0" } Block { BlockType Switch Name "Diode" Position [395, 139, 425, 171] Threshold "0" } Block { BlockType Scope Name "Envelope" Ports [1, 0, 0, 0, 0] Position [585, 136, 615, 174] Floating off Location [188, 365, 512, 604] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "15" YMin "-2.5" YMax "2.5" SaveToWorkspace off SaveName "ScopeData" DataFormat "Matrix" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sin Name "Message m(t)" Position [55, 85, 75, 105] Amplitude "1" Frequency "1" Phase "1" SampleTime "-1" } Block { BlockType Scope Name "Modulated signal" Ports [1, 0, 0, 0, 0] Position [385, 51, 415, 89] Floating off Location [188, 365, 512, 604] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "15" YMin "-2.5" YMax "2.5" SaveToWorkspace off SaveName "ScopeData" DataFormat "Matrix" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "Plot k m(t)" Ports [1, 0, 0, 0, 0] Position [210, 16, 240, 54] Floating off Location [188, 365, 512, 604] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "15" YMin "-2.5" YMax "2.5" SaveToWorkspace off SaveName "ScopeData" DataFormat "Matrix" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Product Name "Product" Ports [2, 1, 0, 0, 0] Position [295, 143, 325, 167] Inputs "2" SaturateOnIntegerOverflow on } Block { BlockType Reference Name "Slider\nGain" Ports [1, 1, 0, 0, 0] Position [115, 80, 160, 110] SourceBlock "simulink3/Math/Slider\nGain" SourceType "Slider Gain" low "0" gain "0.9" high "2" } Block { BlockType Sum Name "Sum" Ports [2, 1, 0, 0, 0] Position [220, 90, 240, 110] IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Line { SrcBlock "Chebychev Type II\nLP Filter" SrcPort 1 DstBlock "Envelope" DstPort 1 } Line { SrcBlock "Diode" SrcPort 1 DstBlock "Chebychev Type II\nLP Filter" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [0, -15] DstBlock "Diode" DstPort 3 } Line { SrcBlock "Product" SrcPort 1 Points [0, 0] Branch { DstBlock "Diode" DstPort 2 } Branch { Points [25, 0; 0, -10] DstBlock "Diode" DstPort 1 } Branch { Points [0, -85] DstBlock "Modulated signal" DstPort 1 } } Line { SrcBlock "Slider\nGain" SrcPort 1 Points [5, 0] Branch { Points [10, 0; 0, -60] DstBlock "Plot k m(t)" DstPort 1 } Branch { DstBlock "Sum" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 Points [15, 0; 0, 50] DstBlock "Product" DstPort 1 } Line { SrcBlock "Carrier" SrcPort 1 Points [35, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Constant" SrcPort 1 Points [125, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Message m(t)" SrcPort 1 DstBlock "Slider\nGain" DstPort 1 } } }