📄 sd2mod_colored.mdl
字号:
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 RandomNumber Mean "0" Variance "1" Seed "0" SampleTime "-1" VectorParams1D on } Block { BlockType Reference } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on SampleTime "-1" } Block { BlockType Scope Floating off ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } 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 Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } 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 ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" FixptAsFi off } Block { BlockType UnitDelay X0 "0" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType ZeroOrderHold 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 "sd2mod_colored" Location [398, 205, 1292, 600] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Reference Name " ADC-DAC" Ports [1, 2] Position [610, 170, 720, 230] SourceBlock "SDtoolbox/ADC-DAC" SourceType "" ShowPortLabels on k "NCOMPARATORI" MM off match "match" CST "Cs" VVG off argo "argo(:,3)" LF on NF "retA.log" } Block { BlockType Reference Name " Colored Noise" Ports [0, 1] Position [175, 199, 220, 241] SourceBlock "SDtoolbox/Colored Noise" SourceType "" ShowPortLabels on N "N" FN "40" EIV on noisein "noise_by_eldo" Fs "Fs" fC1 "201e3 " AmplCorner1 "81.9e-18" fC2 "13e6" AmplCorner2 "23.2e-18" RNS "floor((sum(clock))^32.1234)" DPSD on } Block { BlockType Reference Name "IDEAL\nIntegrator (with delay)" Ports [1, 1] Position [490, 182, 545, 218] SourceBlock "SDtoolbox/IDEAL Integrator\n(with Delay)" SourceType "" ShowPortLabels on Amax "Amax" Ts "Ts" } Block { BlockType Reference Name "Jittered SineWave" Ports [0, 1] Position [170, 37, 210, 73] Orientation "left" SourceBlock "SDtoolbox/Jittered SineWave" SourceType "" ShowPortLabels on Ampl "Ampl" Bias "0" Freq "finrad" Phase "0" SampJ "delta" Ts "Ts" seed "floor(100*sum(clock))" } Block { BlockType Reference Name "Power Spectral Density" Ports [1] Position [795, 163, 835, 207] SourceBlock "SDtoolbox/Power Spectral Density" SourceType "" ShowPortLabels on SN "7" Fs "Fs" fBL "1" fBH "Fs/R" Fin "Fin" N "N" Ntransient "Ntransient" VW off savename "savemat" Scale_type "logarithmic" } Block { BlockType Reference Name "REAL Integrator\n(with delay)" Ports [1, 1] Position [295, 175, 350, 215] SourceBlock "SDtoolbox/REAL Integrator\n(with Delay)" SourceType "" ShowPortLabels on Ts "Ts" alfa "alfa" Amax "Amax" sr "sr" GBW "GBW" } Block { BlockType Scope Name "Scope" Ports [1] Position [790, 54, 830, 96] Location [188, 365, 512, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%<SignalLabel>" } YMin "-0.6" YMax "0.6" DataFormat "StructureWithTime" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [260, 185, 280, 205] ShowName off Inputs "+-" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [145, 180, 165, 200] ShowName off Inputs "+-" } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [390, 190, 410, 210] ShowName off Inputs "+-" } Block { BlockType Gain Name "c1" Position [570, 185, 595, 215] ShowName off Gain "1/(b*b)" } Block { BlockType Gain Name "c2" Position [97, 135, 123, 165] Orientation "down" NamePlacement "alternate" ShowName off Gain "b" } Block { BlockType Gain Name "c3" Position [440, 187, 470, 213] ShowName off Gain "b" } Block { BlockType Gain Name "c4" Position [97, 205, 123, 235] Orientation "up" NamePlacement "alternate" ShowName off Gain "b" } Block { BlockType Reference Name "kT/C noise" Ports [1, 1] Position [86, 75, 134, 115] Orientation "down" NamePlacement "alternate" SourceBlock "SDtoolbox/kT//C noise" SourceType "" ShowPortLabels on Ts "Ts" C "Cs" Temp "Temp" k "k" seed "floor(sum(clock))" } Block { BlockType Reference Name "kT/C noise1" Ports [1, 1] Position [86, 255, 134, 295] Orientation "up" NamePlacement "alternate" SourceBlock "SDtoolbox/kT//C noise" SourceType "" ShowPortLabels on Ts "Ts" C "Cs" Temp "Temp" k "k" seed "floor(sum(clock))" } Block { BlockType ToWorkspace Name "y1" Position [410, 121, 445, 149] VariableName "y1" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "y2" Position [665, 121, 700, 149] VariableName "y2" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "yout" Position [785, 116, 820, 144] VariableName "yout" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "REAL Integrator\n(with delay)" DstPort 1 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "c3" DstPort 1 } Line { SrcBlock "c3" SrcPort 1 DstBlock "IDEAL\nIntegrator (with delay)" DstPort 1 } Line { SrcBlock " Colored Noise" SrcPort 1 Points [15, 0; 0, -20] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "kT/C noise" SrcPort 1 DstBlock "c2" DstPort 1 } Line { SrcBlock "kT/C noise1" SrcPort 1 DstBlock "c4" DstPort 1 } Line { SrcBlock "REAL Integrator\n(with delay)" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum4" DstPort 1 } Branch { Points [0, 0; 0, -60] DstBlock "y1" DstPort 1 } } Line { SrcBlock "IDEAL\nIntegrator (with delay)" SrcPort 1 Points [5, 0] Branch { Points [0, -65] DstBlock "y2" DstPort 1 } Branch { DstBlock "c1" DstPort 1 } } Line { SrcBlock " ADC-DAC" SrcPort 2 Points [10, 0; 0, 95; -365, 0] Branch { Points [0, -105] DstBlock "Sum4" DstPort 2 } Branch { DstBlock "kT/C noise1" DstPort 1 } } Line { SrcBlock " ADC-DAC" SrcPort 1 Points [10, 0] Branch { Points [0, 0; 0, -55] Branch { DstBlock "yout" DstPort 1 } Branch { Points [0, -55] DstBlock "Scope" DstPort 1 } } Branch { DstBlock "Power Spectral Density" DstPort 1 } } Line { SrcBlock "c1" SrcPort 1 DstBlock " ADC-DAC" DstPort 1 } Line { SrcBlock "Jittered SineWave" SrcPort 1 Points [-55, 0] DstBlock "kT/C noise" DstPort 1 } Line { SrcBlock "c2" SrcPort 1 Points [0, 15] DstBlock "Sum3" DstPort 1 } Line { SrcBlock "c4" SrcPort 1 Points [0, -5] DstBlock "Sum3" DstPort 2 } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -