📄 bp2ip3.mdl
字号:
SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType RandomNumber Mean "0" Variance "1" Seed "0" SampleTime "-1" VectorParams1D on } Block { BlockType Relay OnSwitchValue "eps" OffSwitchValue "eps" OnOutputValue "1" OffOutputValue "0" OutputDataTypeScalingMode "All ports same datatype" OutDataType "sfix(16)" OutScaling "2^0" ConRadixGroup "Use specified scaling" ZeroCross on SampleTime "-1" } 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 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 "BP2IP3" Location [309, 193, 1121, 592] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Relay Name "Comparator" Position [570, 225, 600, 245] NamePlacement "alternate" OnOutputValue "Vref" OffOutputValue "-Vref" } Block { BlockType Scope Name "Floating\nScope" Ports [1] Position [645, 149, 675, 181] Location [5, 60, 1405, 1023] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%<SignalLabel>" } YMin "-1" YMax "1" DataFormat "StructureWithTime" } Block { BlockType Reference Name "IDEAL\nResonator" Ports [1, 1] Position [470, 217, 525, 253] SourceBlock "SDtoolbox/IDEAL\nResonator" SourceType "" ShowPortLabels on Ts "Ts" Amax "Amax" } Block { BlockType Reference Name "Jittered SineWave 1" Ports [0, 1] Position [215, 14, 255, 56] Orientation "left" SourceBlock "SDtoolbox/Jittered SineWave" SourceType "" ShowPortLabels on Ampl "Ampl" Bias "0" Freq "finrad1" Phase "pi/17" SampJ "delta" Ts "Ts" seed "floor(100*sum(clock))" } Block { BlockType Reference Name "Jittered SineWave 2" Ports [0, 1] Position [215, 89, 255, 131] Orientation "left" SourceBlock "SDtoolbox/Jittered SineWave" SourceType "" ShowPortLabels on Ampl "Ampl" Bias "0" Freq "finrad2" Phase "0" SampJ "delta" Ts "Ts" seed "floor(100*sum(clock)+100234)" } Block { BlockType Reference Name "Power Spectral Density" Ports [1] Position [660, 278, 700, 322] SourceBlock "SDtoolbox/Power Spectral Density" SourceType "" ShowPortLabels on SN "20" Fs "Fs" fBL "1" fBH "Fs/R" Fin "Fin1" N "N" Ntransient "Ntransient" VW off savename "savemat" Scale_type "linear" } Block { BlockType Reference Name "REAL\nResonator" Ports [1, 1] Position [300, 210, 355, 250] SourceBlock "SDtoolbox/REAL\nResonator" SourceType "" ShowPortLabels on Ts "Ts" alfa "alfa" Amax "Amax" sr "sr" GBW "GBW" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [260, 220, 280, 240] ShowName off Inputs "+-" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [145, 215, 165, 235] ShowName off Inputs "+-" } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [380, 225, 400, 245] ShowName off Inputs "+-" } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [145, 75, 165, 95] Orientation "left" ShowName off Inputs "+-" } Block { BlockType Reference Name "White noise" Ports [0, 1] Position [175, 268, 230, 302] SourceBlock "SDtoolbox/White noise" SourceType "" ShowPortLabels on seed "floor(sum(clock)^1/111)" Ts "Ts" noise "noise1" } Block { BlockType Gain Name "c1" Position [95, 175, 125, 205] Orientation "down" NamePlacement "alternate" ShowName off Gain "b" } Block { BlockType Gain Name "c2" Position [105, 235, 135, 265] Orientation "up" ShowName off Gain "b" } Block { BlockType Gain Name "c3" Position [420, 220, 450, 250] ShowName off Gain "b2" } Block { BlockType Gain Name "c4" Position [350, 275, 380, 305] Orientation "up" ShowName off Gain "b3" } Block { BlockType Reference Name "kT/C noise" Ports [1, 1] Position [87, 110, 133, 155] 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 [97, 285, 143, 330] Orientation "up" NamePlacement "alternate" SourceBlock "SDtoolbox/kT//C noise" SourceType "" ShowPortLabels on Ts "Ts" C "Cs" Temp "Temp" k "k" seed "floor(sum(clock)+10000)" } Block { BlockType ToWorkspace Name "y1" Position [410, 131, 445, 159] VariableName "y1" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "y2" Position [570, 131, 605, 159] VariableName "y2" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "yout" Position [630, 221, 665, 249] VariableName "yout" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "REAL\nResonator" DstPort 1 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "c3" DstPort 1 } Line { SrcBlock "c3" SrcPort 1 DstBlock "IDEAL\nResonator" DstPort 1 } Line { SrcBlock "White noise" SrcPort 1 Points [5, 0; 0, -50] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "c1" SrcPort 1 Points [0, 10] DstBlock "Sum3" DstPort 1 } Line { SrcBlock "REAL\nResonator" SrcPort 1 Points [0, 0] Branch { DstBlock "Sum4" DstPort 1 } Branch { Points [0, -85] DstBlock "y1" DstPort 1 } } Line { SrcBlock "Comparator" SrcPort 1 Points [0, 0; 10, 0] Branch { Points [0, 0] Branch { DstBlock "yout" DstPort 1 } Branch { Points [0, -70] DstBlock "Floating\nScope" DstPort 1 } } Branch { Points [0, 65] Branch { DstBlock "Power Spectral Density" DstPort 1 } Branch { Labels [2, 0] Points [0, 40; -250, 0] Branch { DstBlock "c4" DstPort 1 } Branch { Points [-245, 0] DstBlock "kT/C noise1" DstPort 1 } } } } Line { SrcBlock "IDEAL\nResonator" SrcPort 1 Points [10, 0] Branch { DstBlock "Comparator" DstPort 1 } Branch { Points [0, -90] DstBlock "y2" DstPort 1 } } Line { SrcBlock "c4" SrcPort 1 DstBlock "Sum4" DstPort 2 } Line { SrcBlock "Sum5" SrcPort 1 Points [-30, 0] DstBlock "kT/C noise" DstPort 1 } Line { SrcBlock "Jittered SineWave 2" SrcPort 1 Points [-30, 0] DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Jittered SineWave 1" SrcPort 1 Points [-30, 0] DstBlock "Sum5" DstPort 1 } Line { SrcBlock "kT/C noise" SrcPort 1 DstBlock "c1" DstPort 1 } Line { SrcBlock "kT/C noise1" SrcPort 1 DstBlock "c2" DstPort 1 } Line { SrcBlock "c2" SrcPort 1 DstBlock "Sum3" DstPort 2 } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -