📄 pll2.mdl
字号:
}
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 FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
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 InitialCondition
Value "1"
SampleTime "-1"
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
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 Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
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 RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross 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 "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SignalGenerator
WaveForm "sine"
TimeSource "Use simulation time"
Amplitude "1"
Frequency "1"
Units "Hertz"
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 TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType UniformRandomNumber
Minimum "-1"
Maximum "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
}
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 "pll2"
Location [2, 78, 1022, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant2"
Position [175, 320, 205, 350]
Value "0"
}
Block {
BlockType Gain
Name "Gain3"
Position [175, 180, 195, 210]
Gain "0"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [770, 71, 775, 109]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [625, 116, 670, 149]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [820, 95, 850, 130]
Floating off
Location [5, 34, 1033, 753]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-1.25~-2.6"
YMax "1.5~-1.3"
DataFormat "StructureWithTime"
MaxDataPoints "500000"
SampleTime "0"
}
Block {
BlockType SignalGenerator
Name "Si"
Ports [0, 1]
Position [155, 95, 185, 125]
Frequency "48"
}
Block {
BlockType SignalGenerator
Name "Si1"
Ports [0, 1]
Position [165, 45, 195, 75]
Amplitude "0"
Frequency "48*3"
}
Block {
BlockType Sum
Name "Sum1"
Ports [4, 1]
Position [235, 100, 265, 130]
ShowName off
IconShape "round"
Inputs "++|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [745, 387, 805, 423]
Numerator "[5*2*0.7 25]"
Denominator "[1 0]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [690, 117, 750, 153]
Numerator "[0.42]*26.2"
Denominator "[0.04545 1]"
}
Block {
BlockType UniformRandomNumber
Name "Uniform Random\nNumber"
Position [155, 229, 185, 261]
SampleTime "100e-6"
}
Block {
BlockType Reference
Name "Voltage-Controlled\nOscillator"
Ports [1, 1]
Position [420, 198, 500, 242]
FontName "Arial"
SourceBlock "commsynccomp2/Continuous-Time\nVCO"
SourceType "Continuous-Time VCO"
ShowPortLabels on
Ac "1"
Fc "50"
Kc "1"
Ph "0"
}
Line {
SrcBlock "Voltage-Controlled\nOscillator"
SrcPort 1
Points [115, 0; 0, -40; -10, 0]
Branch {
DstBlock "Product1"
DstPort 2
}
Branch {
Points [-15, 0; 0, -90]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [35, 0; 0, 10; 280, 0]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Transfer Fcn1"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 165; -385, 0]
DstBlock "Voltage-Controlled\nOscillator"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0; 0, 15]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Uniform Random\nNumber"
SrcPort 1
Points [15, 0; 0, -75; -45, 0]
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Si1"
SrcPort 1
Points [50, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [29, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "Si"
SrcPort 1
Points [15, 0; 0, -16; 5, 1]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, 5]
DstBlock "Mux"
DstPort 3
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [40, 0]
DstBlock "Sum1"
DstPort 4
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -