📄 bp2.mdl
字号:
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 "BP2" Location [457, 368, 1245, 756] 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 [565, 190, 595, 210] NamePlacement "alternate" OnOutputValue "Vref" OffOutputValue "-Vref" } Block { BlockType Reference Name "IDEAL\nResonator" Ports [1, 1] Position [470, 182, 525, 218] SourceBlock "SDtoolbox/IDEAL\nResonator" SourceType "" ShowPortLabels on Ts "Ts" Amax "Amax" } Block { BlockType Reference Name "Jittered SineWave" Ports [0, 1] Position [170, 29, 210, 71] Orientation "left" SourceBlock "SDtoolbox/Jittered SineWave" SourceType "" ShowPortLabels on Ampl "Ampl" Bias "0" Freq "finrad" Phase "pi/17" SampJ "delta" Ts "Ts" seed "floor(100*sum(clock))" } Block { BlockType Reference Name "Power Spectral Density" Ports [1] Position [665, 239, 710, 281] SourceBlock "SDtoolbox/Power Spectral Density" SourceType "" ShowPortLabels on SN "5" Fs "Fs" fBL "Fs/4-100e3" fBH "Fs/4+100e3" Fin "Fin" N "N" Ntransient "Ntransient" VW off savename "savemat" Scale_type "linear" } Block { BlockType Reference Name "REAL\nResonator" Ports [1, 1] Position [295, 175, 350, 215] SourceBlock "SDtoolbox/REAL\nResonator" SourceType "" ShowPortLabels on Ts "Ts" alfa "alfa" Amax "Amax" sr "sr" GBW "GBW" } Block { BlockType Scope Name "Scope" Ports [1] Position [635, 134, 665, 166] Location [188, 365, 512, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%<SignalLabel>" } YMin "-1" YMax "1" 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 [380, 190, 400, 210] ShowName off Inputs "+-" } Block { BlockType Reference Name "White noise" Ports [0, 1] Position [170, 213, 225, 247] SourceBlock "SDtoolbox/White noise" SourceType "" ShowPortLabels on seed "floor(sum(clock)^1/111)" Ts "Ts" noise "noise1" } Block { BlockType Gain Name "c1" Position [90, 130, 120, 160] Orientation "down" NamePlacement "alternate" ShowName off Gain "b" } Block { BlockType Gain Name "c2" Position [90, 200, 120, 230] Orientation "up" ShowName off Gain "b" } Block { BlockType Gain Name "c3" Position [420, 185, 450, 215] ShowName off Gain "b2" } Block { BlockType Gain Name "c4" Position [350, 240, 380, 270] Orientation "up" ShowName off Gain "b3" } Block { BlockType Reference Name "kT/C noise" Ports [1, 1] Position [81, 70, 129, 110] 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 [81, 250, 129, 290] 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, 96, 445, 124] VariableName "y1" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "y2" Position [570, 96, 605, 124] VariableName "y2" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "yout" Position [630, 186, 665, 214] 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 "Sum3" SrcPort 1 DstBlock "Sum2" 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 "REAL\nResonator" SrcPort 1 Points [5, 0] Branch { DstBlock "Sum4" DstPort 1 } Branch { Points [0, -85] DstBlock "y1" DstPort 1 } } Line { SrcBlock "Comparator" SrcPort 1 Points [10, 0] Branch { Points [5, 0] Branch { DstBlock "yout" DstPort 1 } Branch { Points [0, 60] Branch { DstBlock "Power Spectral Density" DstPort 1 } Branch { Labels [2, 0] Points [0, 45; -250, 0] Branch { DstBlock "c4" DstPort 1 } Branch { DstBlock "kT/C noise1" DstPort 1 } } } } Branch { Points [0, -50] DstBlock "Scope" 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 "White noise" SrcPort 1 Points [5, 0; 0, -30] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "c1" SrcPort 1 Points [0, 20] DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Jittered SineWave" SrcPort 1 Points [-60, 0] DstBlock "kT/C noise" DstPort 1 } Line { SrcBlock "c2" SrcPort 1 DstBlock "Sum3" DstPort 2 } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -