📄 modulate_board.mdl
字号:
OutputAfterFinalValue "Extrapolation"
}
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
}
}
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 "modulate_board"
Location [2, 78, 1022, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType FromWorkspace
Name "From\nWorkspace"
Position [105, 203, 170, 227]
VariableName "I"
SampleTime "1/600"
}
Block {
BlockType FromWorkspace
Name "From\nWorkspace1"
Position [110, 298, 175, 322]
VariableName "Q"
SampleTime "1/600"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [490, 192, 520, 223]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [495, 302, 525, 333]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [635, 289, 665, 321]
Location [1, 50, 1025, 737]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [240, 114, 270, 146]
Location [134, 147, 458, 386]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [245, 389, 275, 421]
Location [163, 515, 487, 754]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [570, 114, 600, 146]
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [585, 399, 615, 431]
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [500, 114, 530, 146]
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [365, 114, 395, 146]
Location [188, 390, 512, 629]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [375, 394, 405, 426]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope8"
Ports [1]
Position [490, 399, 520, 431]
Location [103, 397, 427, 636]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData8"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [430, 155, 460, 185]
SineType "Time based"
Frequency "2*pi*20"
Phase "pi/2"
SampleTime "1/600"
}
Block {
BlockType Sin
Name "Sine Wave2"
Ports [0, 1]
Position [430, 360, 460, 390]
SineType "Time based"
Frequency "2*pi*20"
SampleTime "1/600"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [575, 250, 595, 270]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [685, 245, 745, 275]
VariableName "signal"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure With Time"
}
Line {
SrcBlock "From\nWorkspace"
SrcPort 1
Points [40, 0]
Branch {
Points [0, -85]
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [130, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, -85]
DstBlock "Scope6"
DstPort 1
}
}
}
Line {
SrcBlock "From\nWorkspace1"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 95]
DstBlock "Scope2"
DstPort 1
}
Branch {
Points [130, 0]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Scope7"
DstPort 1
}
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 30]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "Scope5"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -50]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 40]
DstBlock "Scope8"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 50]
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -80]
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [15, 0]
Branch {
Points [40, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 95]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
DstBlock "To Workspace"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -