📄 pll_dsc0.mdl
字号:
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
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 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 MATLABFcn
MATLABFcn "sin"
OutputDimensions "-1"
OutputSignalType "auto"
Output1D on
SampleTime "-1"
}
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 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 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 TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType TransportDelay
DelayTime "1"
InitialOutput "0"
BufferSize "1024"
FixedBuffer off
TransDelayFeedthrough off
PadeOrder "0"
}
}
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 "pll_dsc0"
Location [2, 82, 1278, 972]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [40, 22, 80, 48]
SampleTime "Ts"
}
Block {
BlockType SubSystem
Name "Grid\nsignals"
Ports [0, 1]
Position [40, 112, 85, 148]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Grid\nsignals"
Location [6, 86, 1018, 718]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock"
Position [60, 85, 80, 105]
Decimation "10"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [195, 125, 235, 145]
ShowName off
VariableName "eabc"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType MATLABFcn
Name "senales"
Position [105, 80, 165, 110]
MATLABFcn "senales4"
OutputDimensions "3"
}
Block {
BlockType Outport
Name "abc"
Position [205, 88, 235, 102]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "senales"
DstPort 1
}
Line {
SrcBlock "senales"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "To Workspace4"
DstPort 1
}
Branch {
DstBlock "abc"
DstPort 1
}
}
}
}
Block {
BlockType Mux
Name "Mux5"
Ports [2, 1]
Position [390, 431, 395, 469]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "PLL with DSC discreto 4\nnormalizado con la amp"
"litud "
Ports [1, 4]
Position [150, 672, 215, 788]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "PLL with DSC discreto 4\nnormalizado con la a"
"mplitud "
Location [2, 82, 1278, 972]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vabc "
Position [15, 78, 45, 92]
IconDisplay "Port number"
PortDimensions "3"
}
Block {
BlockType Constant
Name "Constant1"
Position [260, 113, 295, 137]
NamePlacement "alternate"
ShowName off
Value "0"
}
Block {
BlockType Constant
Name "Constant4"
Position [470, 98, 505, 122]
NamePlacement "alternate"
ShowName off
Value "2*pi"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [275, 61, 280, 99]
BackgroundColor "black"
ShowName off
Outputs "2"
Port {
PortNumber 2
Name "Vq"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "Discrete \n2nd-Order\nFilter"
Ports [1, 1]
Position [530, 252, 580, 288]
SourceBlock "powerlib_extras/Discrete \nControl Blocks/D"
"iscrete \n2nd-Order\nFilter"
SourceType "Discrete 2nd-Order Filter"
ShowPortLabels on
FilterType "Lowpass"
Fo "25"
Zeta "0.707"
Ts "Ts"
Initialize on
Vac_Init "[0 0 Finit]"
Vdc_Init "Finit"
PlotResponse off
param1 "[1 500 0.1]"
}
Block {
BlockType SubSystem
Name "Discrete PI Controller"
Ports [1, 1]
Position [360, 42, 420, 98]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
Port {
PortNumber 1
Name "W"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "Discrete PI Controller"
Location [210, 473, 820, 625]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Error"
Position [15, 93, 45, 107]
FontSize 12
FontWeight "bold"
IconDisplay "Port number"
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [1, 1]
Position [145, 84, 180, 116]
IntegratorMethod "Integration: Forward Euler"
ExternalReset "none"
InitialConditionSource "internal"
SampleTime "Ts"
IgnoreLimit off
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Gain
Name "Kp4"
Position [95, 36, 140, 64]
ShowName off
Gain "kp_a"
}
Block {
BlockType Gain
Name "Kp5"
Position [75, 84, 110, 116]
ShowName off
Gain "ki_a"
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [270, 25, 300, 125]
ShowName off
}
Block {
BlockType Outport
Name "Out"
Position [365, 68, 395, 82]
FontSize 12
FontWeight "bold"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Kp4"
SrcPort 1
DstBlock "Sum6"
DstPort 1
}
Line {
SrcBlock "Kp5"
SrcPort 1
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
Line {
SrcBlock "Sum6"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Error"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -50]
DstBlock "Kp4"
DstPort 1
}
Branch {
DstBlock "Kp5"
DstPort 1
}
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
DstBlock "Sum6"
DstPort 2
}
}
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [1, 1]
Position [470, 52, 510, 88]
ShowName off
IntegratorMethod "Integration: Forward Euler"
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "Phase_Init*pi/180"
SampleTime "Ts"
IgnoreLimit off
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [265, 192, 295, 223]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [160, 335, 190, 365]
Gain "1/3"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [560, 50, 590, 130]
ShowName off
Operator "mod"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [355, 266, 385, 299]
Floating off
Location [5, 52, 1285, 989]
Open on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -