📄 dds_s.mdl
字号:
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 Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType DiscretePulseGenerator
PulseType "Sample based"
TimeSource "Use simulation time"
Amplitude "1"
Period "2"
PulseWidth "1"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
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 Outport
Port "1"
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 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 "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType TriggerPort
TriggerType "rising"
StatesWhenEnabling "inherit"
ShowOutputPort off
OutputDataType "auto"
SampleTimeType "triggered"
SampleTime "1"
ZeroCross 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 "dds_s"
Location [250, 164, 960, 493]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Analog\nFilter Design"
Ports [1, 1]
Position [365, 77, 430, 133]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "8"
Wlo "Fclk"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Constant
Name "Constant"
Position [20, 90, 50, 120]
Value "K"
}
Block {
BlockType Reference
Name "Direct Lookup\nTable (n-D)"
Ports [1, 1]
Position [270, 77, 325, 133]
SourceBlock "simulink/Lookup\nTables/Direct Lookup\nTable (n"
"-D)"
SourceType "LookupNDDirect"
maskTabDims "1"
explicitNumDims "1"
outDims "Element"
tabIsInput off
mxTable "[0.1951 0.5556 0.8315 0.9808 0.9808 0.8315 0.55"
"56 0.1951 -0.1951 -0.5556 -0.8315 -0.9808 -0.9808 -0.8315 -0.5556 -0.1951]"
clipFlag "Warning"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Ports [0, 1]
Position [20, 13, 65, 47]
PulseType "Time based"
Period "1/FR"
PulseWidth "50"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [450, 89, 480, 121]
Location [162, 450, 873, 660]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "5.73972e-042"
YMax "4.5e-025"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "Triggered\nSubsystem"
Ports [1, 1, 0, 1]
Position [75, 84, 175, 126]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Triggered\nSubsystem"
Location [353, 328, 855, 680]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [110, 103, 140, 117]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports []
Position [225, 20, 245, 40]
StatesWhenEnabling "held"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [225, 95, 285, 125]
FunctionName "addcontrolk"
}
Block {
BlockType Outport
Name "Out1"
Position [360, 103, 390, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "period\nSubsystem"
Ports [1, 1]
Position [205, 75, 245, 135]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "period\nSubsystem"
Location [565, 162, 835, 312]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [105, 28, 135, 42]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant2"
Position [25, 95, 55, 125]
Value "16"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [160, 27, 190, 58]
Operator "mod"
OutputSignalType "real"
}
Block {
BlockType Outport
Name "Out1"
Position [215, 38, 245, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [40, 0; 0, -60]
DstBlock "Math\nFunction"
DstPort 2
}
}
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
Points [55, 0]
DstBlock "Triggered\nSubsystem"
DstPort trigger
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Triggered\nSubsystem"
DstPort 1
}
Line {
SrcBlock "Triggered\nSubsystem"
SrcPort 1
DstBlock "period\nSubsystem"
DstPort 1
}
Line {
SrcBlock "period\nSubsystem"
SrcPort 1
DstBlock "Direct Lookup\nTable (n-D)"
DstPort 1
}
Line {
SrcBlock "Direct Lookup\nTable (n-D)"
SrcPort 1
DstBlock "Analog\nFilter Design"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -