📄 noclockpll.mdl
字号:
SupportNonInlinedSFcns on
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
SimulationMode "normal"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Clock
DisplayTime off
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "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
}
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 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 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 "++"
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"
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"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "NoClockpll"
Location [318, 119, 1140, 633]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "49990Hz"
Position [475, 312, 545, 348]
Orientation "left"
ForegroundColor "cyan"
Value "2*pi*49990"
}
Block {
BlockType Clock
Name "Clock"
Position [475, 375, 495, 395]
Orientation "left"
ForegroundColor "cyan"
DisplayTime on
Decimation "1"
}
Block {
BlockType TransferFcn
Name "Filter"
Position [325, 207, 420, 243]
ForegroundColor "blue"
Numerator "bf"
Denominator "af"
}
Block {
BlockType Gain
Name "Gain"
Position [445, 207, 510, 243]
ForegroundColor "blue"
Gain "200"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [470, 260, 500, 290]
Orientation "left"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [245, 206, 290, 239]
ForegroundColor "blue"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [375, 321, 420, 354]
Orientation "left"
ForegroundColor "cyan"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [550, 209, 580, 241]
ForegroundColor "green"
Location [105, 234, 429, 473]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.02 "
YMin "56.5"
YMax "61.5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sin
Name "Sine Wave 50k Hz"
Ports [0, 1]
Position [145, 200, 175, 230]
ForegroundColor "red"
SineType "Time based"
Frequency "2*pi*50000"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [325, 330, 345, 350]
Orientation "down"
ForegroundColor "cyan"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [430, 145, 490, 175]
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 [260, 325, 290, 355]
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; 0, -110]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Filter"
DstPort 1
}
Line {
SrcBlock "Sine Wave 50k Hz"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "49990Hz"
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
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -