Model { Name "rcdemo" Version 2.09 SimParamPage RTWExternal SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off PaperOrientation landscape PaperType usletter PaperUnits inches StartTime "0.0" StopTime "999999" Solver VariableStepDiscrete RelTol "1e-3" AbsTol "1e-6" Refine "1" MaxStep "auto" 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" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg warning MinStepSizeMsg warning UnconnectedInputMsg warning UnconnectedOutputMsg warning UnconnectedLineMsg warning ConsistencyChecking off ZeroCross on SimulationMode normal RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_unix.tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off PreLoadFcn "M=2;td=.1;ts=.01;Fc=100/pi/2;[num,den]=butter(5,Fc*" "2*ts);" 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 "rcdemo" Location [53, 134, 950, 450] Open on ScreenColor white Block { BlockType Reference Name "DSB AM\nbaseband" Ports [1, 1, 0, 0, 0] Position [325, 48, 405, 92] ForegroundColor blue SourceBlock "com_cemo/DSB AM\nbaseband" SourceType "DSB-SC AM CE" Ph "0" } Block { BlockType Reference Name "DSB-ADM\nbaseband" Ports [1, 1, 0, 0, 0] Position [525, 58, 605, 102] ForegroundColor blue SourceBlock "com_cemo/DSB-ADM\nbaseband" SourceType "DSB-SC ADM CE" num "num" den "den" Ph "0" ts "ts" } Block { BlockType Reference Name "Error rate" Ports [2, 0, 0, 0, 0] Position [745, 23, 825, 67] ShowName off SourceBlock "com_sour/Error rate" SourceType "Symbol/bit error counter" K "ceil(log10(M)/log10(2))" num_lin "0" TDelay "td*4" Sample "td" } Block { BlockType Reference Name "Eye-diagram\nscatter plot" Ports [2, 0, 0, 0, 0] Position [720, 143, 800, 187] ShowName off SourceBlock "com_sour/Eye-diagram\nscatter plot" SourceType "Eye-diagram/scatter plot" time_range "2*td" boundary "[-2 2]" kept_length "10" eye_line "'r-/g--/b-.'" scatter_line "'r+/gx/b*'" two_d_line "0" } Block { BlockType Reference Name "K-step\ndelay1" Ports [1, 1, 0, 0, 0] Position [360, 153, 440, 197] ShowName off SourceBlock "com_util/K-step\ndelay" SourceType "Multi-step delay" n "ceil(td/ts/4)" ts "ts" ini "NaN" } Block { BlockType Reference Name "MASK demap" Ports [1, 1, 0, 0, 0] Position [635, 48, 715, 92] ForegroundColor blue SourceBlock "com_mocd/MASK demap" SourceType "MASK demap" N "M" td "[td td/4]" } Block { BlockType Reference Name "MASK map" Ports [1, 1, 0, 0, 0] Position [115, 58, 195, 102] ForegroundColor blue SourceBlock "com_mocd/MASK map" SourceType "MASK map" N "M" td "td" } Block { BlockType Reference Name "Raised cosine\nfilter" Ports [1, 1, 0, 0, 0] Position [225, 48, 305, 92] ShowName off SourceBlock "com_filt/Raised cosine\nfilter" SourceType "R-C filter" td "td" ts "ts" R "0" delay "3" fil "'FIR'" x "1" } Block { BlockType Reference Name "Rayleigh noise\nchannel CE" Ports [1, 1, 0, 0, 0] Position [425, 58, 505, 102] ShowName off SourceBlock "com_chan/Rayleigh noise\nchannel CE" SourceType "Rayleigh noise channel, fixed parameter" d ".001" s "[12345 54321]" } Block { BlockType Reference Name "Sampled read with\nsynchronized pulse" Ports [0, 2, 0, 0, 0] Position [5, 68, 85, 112] ShowName off SourceBlock "com_sour/Sampled read with\nsynchronized pulse" SourceType "Read from workspace" var "randint(100,1,M)" td "td" cyc "1" ini "0" } Line { SrcBlock "Sampled read with\nsynchronized pulse" SrcPort 1 Points [10, 0] Branch { DstBlock "MASK map" DstPort 1 } Branch { Points [0, -45] DstBlock "Error rate" DstPort 1 } } Line { SrcBlock "Rayleigh noise\nchannel CE" SrcPort 1 DstBlock "DSB-ADM\nbaseband" DstPort 1 } Line { SrcBlock "MASK demap" SrcPort 1 Points [5, 0; 0, -15] DstBlock "Error rate" DstPort 2 } Line { SrcBlock "DSB AM\nbaseband" SrcPort 1 DstBlock "Rayleigh noise\nchannel CE" DstPort 1 } Line { SrcBlock "MASK map" SrcPort 1 Points [0, -10] DstBlock "Raised cosine\nfilter" DstPort 1 } Line { SrcBlock "Raised cosine\nfilter" SrcPort 1 DstBlock "DSB AM\nbaseband" DstPort 1 } Line { SrcBlock "Sampled read with\nsynchronized pulse" SrcPort 2 Points [10, 0; 0, 75] DstBlock "K-step\ndelay1" DstPort 1 } Line { SrcBlock "K-step\ndelay1" SrcPort 1 DstBlock "Eye-diagram\nscatter plot" DstPort 2 } Line { SrcBlock "DSB-ADM\nbaseband" SrcPort 1 Points [0, -10; 5, 0] Branch { Points [0, 85] DstBlock "Eye-diagram\nscatter plot" DstPort 1 } Branch { Points [0, 0] DstBlock "MASK demap" DstPort 1 } } } }