📄 fourpaths.mdl
字号:
SampleTime "-1" } Block { BlockType RandomNumber Mean "0" Variance "1" Seed "0" SampleTime "-1" VectorParams1D on } 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 Sin SineType "Time based" TimeSource "Use simulation time" Amplitude "1" Bias "0" Frequency "1" Phase "0" Samples "10" Offset "0" SampleTime "-1" VectorParams1D 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 Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross 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 "FourPaths" Location [333, 181, 1383, 723] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Ground Name "Ground4" Position [695, 220, 715, 240] Orientation "up" ShowName off } Block { BlockType Ground Name "Ground5" Position [695, 300, 715, 320] Orientation "up" ShowName off } Block { BlockType Ground Name "Ground6" Position [695, 380, 715, 400] Orientation "up" ShowName off } Block { BlockType Ground Name "Ground7" Position [695, 460, 715, 480] Orientation "up" ShowName off } Block { BlockType DiscretePulseGenerator Name "Phase 1out" Ports [0, 1] Position [660, 210, 690, 240] Orientation "up" NamePlacement "alternate" Amplitude "Vref" Period "4" PhaseDelay "3" SampleTime "Ts" } Block { BlockType DiscretePulseGenerator Name "Phase 2out" Ports [0, 1] Position [660, 290, 690, 320] Orientation "up" NamePlacement "alternate" Amplitude "Vref" Period "4" PhaseDelay "2" SampleTime "Ts" } Block { BlockType DiscretePulseGenerator Name "Phase 3out" Ports [0, 1] Position [660, 370, 690, 400] Orientation "up" NamePlacement "alternate" Amplitude "Vref" Period "4" PhaseDelay "1" SampleTime "Ts" } Block { BlockType DiscretePulseGenerator Name "Phase 4out" Ports [0, 1] Position [660, 450, 690, 480] Orientation "up" NamePlacement "alternate" Amplitude "Vref" Period "4" SampleTime "Ts" } Block { BlockType SubSystem Name "SDPath1" Ports [1, 1] Position [460, 257, 560, 293] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "SDPath1" Location [225, 284, 1205, 715] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In" Position [20, 38, 55, 72] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Reference Name "ADC-DAC" Ports [1, 2] Position [505, 320, 615, 380] Orientation "left" SourceBlock "SDtoolbox/ADC-DAC" SourceType "" ShowPortLabels on k "NCOMPARATORI" MM on match "match" CST "ctot" VVG off argo "argo(:,3)" LF on NF "retA.log" } Block { BlockType Gain Name "Gain" Position [240, 40, 270, 70] Gain "B1i" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [295, 95, 325, 125] Gain "B1f" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "H1" Ports [1, 2] Position [385, 80, 450, 115] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "H1" Location [234, 291, 1271, 823] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In" Position [55, 250, 85, 280] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "Gain" Position [175, 310, 205, 340] Orientation "up" Gain "B1lf" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [505, 260, 535, 290] Gain "B2i" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "REAL Integrator\n(no delay)" Ports [1, 1] Position [305, 254, 360, 296] SourceBlock "SDtoolbox/REAL Integrator\n(no Delay)" SourceType "" ShowPortLabels on Ts "4*Ts" alfa "alfa1a" Amax "Sat1a" sr "SR1a" GBW "GBW1a" } Block { BlockType Reference Name "REAL Integrator\n(with delay)" Ports [1, 1] Position [685, 255, 740, 295] SourceBlock "SDtoolbox/REAL Integrator\n(with Delay)" SourceType "" ShowPortLabels on Ts "4*Ts" alfa "alfa1b" Amax "Sat1b" sr "SR1b" GBW "GBW1b" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [610, 257, 630, 293] ShowName off InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [3, 1] Position [250, 256, 270, 314] ShowName off Inputs "+-+" } Block { BlockType Reference Name "White noise" Ports [0, 1] Position [100, 288, 155, 322] SourceBlock "SDtoolbox/White noise" SourceType "" ShowPortLabels on seed "floor(sum(clock)^1/111)" Ts "Ts" noise "noise1" } Block { BlockType Reference Name "White noise1" Ports [0, 1] Position [470, 303, 525, 337] SourceBlock "SDtoolbox/White noise" SourceType "" ShowPortLabels on seed "floor(sum(clock)^1/111+172727)" Ts "Ts" noise "noise1" } Block { BlockType Reference Name "kT/C noise1" Ports [1, 1] Position [425, 253, 485, 297] NamePlacement "alternate" SourceBlock "SDtoolbox/kT//C noise" SourceType "" ShowPortLabels on Ts "Ts" C "ctot" Temp "Temp1" k "k" seed "floor(10*sum(clock))" } Block { BlockType Reference Name "kT/C noise2" Ports [1, 1] Position [168, 355, 212, 415] Orientation "up" SourceBlock "SDtoolbox/kT//C noise" SourceType "" ShowPortLabels on Ts "Ts" C "ctot" Temp "Temp1" k "k" seed "floor(sum(clock)+6540)" } Block { BlockType Outport Name "Out1" Position [800, 262, 830, 288] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Out2" Position [360, 90, 390, 120] Orientation "up" Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "REAL Integrator\n(no delay)" SrcPort 1 Points [10, 0; 0, 0] Branch { DstBlock "kT/C noise1" DstPort 1 } Branch { DstBlock "Out2" DstPort 1 } } Line { SrcBlock "Sum2" SrcPort 1 Points [5, 0; 0, -10] DstBlock "REAL Integrator\n(no delay)" DstPort 1 } Line { SrcBlock "REAL Integrator\n(with delay)" SrcPort 1 Points [0, 0; 20, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, 155] DstBlock "kT/C noise2" DstPort 1 } } Line { SrcBlock "In" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "kT/C noise2" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "White noise" SrcPort 1 DstBlock "Sum2" DstPort 3 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "REAL Integrator\n(with delay)" DstPort 1 } Line { SrcBlock "White noise1" SrcPort 1 Points [30, 0; 0, -35] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 Points [0, -20] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "kT/C noise1" SrcPort 1 DstBlock "Gain1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -