📄 noclockpll_1.mdl
字号:
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
ContinuousStateAttributes "''"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Scope
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 "-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 Sum
IconShape "rectangular"
Inputs "++"
CollapseMode "All dimensions"
CollapseDim "1"
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 TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
ContinuousStateAttributes "''"
Realization "auto"
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "NoClockpll_1"
Location [197, 191, 1020, 746]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "120Hz"
Position [470, 182, 540, 218]
Orientation "left"
ForegroundColor "cyan"
Value "2*pi*120"
}
Block {
BlockType Clock
Name "Clock"
Position [470, 244, 500, 276]
Orientation "left"
ForegroundColor "cyan"
DisplayTime on
Decimation "1"
}
Block {
BlockType TransferFcn
Name "Filter"
Position [325, 77, 420, 113]
ForegroundColor "blue"
Numerator "bf"
Denominator "af"
}
Block {
BlockType Gain
Name "Gain"
Position [440, 77, 505, 113]
ForegroundColor "blue"
Gain "120"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [465, 130, 495, 160]
Orientation "left"
IgnoreLimit off
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [160, 176, 165, 214]
Orientation "left"
NamePlacement "alternate"
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [240, 76, 285, 109]
ForegroundColor "blue"
CollapseMode "All dimensions"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [370, 191, 415, 224]
Orientation "left"
ForegroundColor "cyan"
CollapseMode "All dimensions"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [545, 79, 575, 111]
ForegroundColor "green"
Floating off
Location [105, 234, 429, 473]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-20"
YMax "80"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [400, 309, 430, 341]
ForegroundColor "green"
Floating off
Location [121, 46, 1281, 795]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-20"
YMax "80"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [95, 169, 125, 201]
Orientation "left"
ForegroundColor "green"
NamePlacement "alternate"
Floating off
Location [121, 46, 1281, 795]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-20"
YMax "80"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [355, 14, 385, 46]
ForegroundColor "green"
Floating off
Location [105, 234, 429, 473]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-20"
YMax "80"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave 125 Hz"
Ports [0, 1]
Position [140, 70, 170, 100]
ForegroundColor "red"
SineType "Time based"
Frequency "2*pi*125"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [320, 200, 340, 220]
Orientation "down"
ForegroundColor "cyan"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [425, 15, 485, 45]
Orientation "left"
ForegroundColor "green"
VariableName "Vout"
MaxDataPoints "inf"
Decimation "10"
SampleTime "-1"
SaveFormat "Structure With Time"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [255, 195, 285, 225]
Orientation "left"
ForegroundColor "cyan"
Operator "cos"
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [-35, 0]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Filter"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
Points [-35, 0]
Branch {
Points [0, 115]
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, -5]
Branch {
Points [0, -105]
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Filter"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave 125 Hz"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "120Hz"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [-20, 0; 0, -15]
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Integrator"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [-130, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [-5, 0; 0, -10]
DstBlock "Scope2"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -