📄 finalone.mdl
字号:
GenerateASAP2 off
}
PropName "Components"
}
}
hdlcoderui.hdlcc {
$ObjectID 11
Description "HDL Coder custom configuration component"
Version "1.2.0"
Name "HDL Coder"
Array {
Type "Cell"
Dimension 1
Cell ""
PropName "HDLConfigFile"
}
HDLCActiveTab "0"
}
PropName "Components"
}
Name "Configuration"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Abs
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
CollapseMode "All dimensions"
CollapseDim "1"
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 SignalGenerator
WaveForm "sine"
TimeSource "Use simulation time"
Amplitude "1"
Frequency "1"
Units "Hertz"
VectorParams1D on
}
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 "++"
CollapseMode "All dimensions"
CollapseDim "1"
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"
ContinuousStateAttributes "''"
Realization "auto"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "FinalOne"
Location [2, 80, 1262, 757]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Scope
Name "AM-Modulation"
Ports [1]
Position [440, 94, 470, 126]
Floating off
Location [9, 45, 1041, 782]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "10"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "C"
Ports [1]
Position [300, 129, 330, 161]
Floating off
Location [15, 80, 1047, 829]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "10"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sin
Name "Carrier"
Ports [0, 1]
Position [130, 190, 160, 220]
SineType "Time based"
Frequency "1000"
SampleTime "1/100"
}
Block {
BlockType Constant
Name "Constant"
Position [180, 350, 210, 380]
}
Block {
BlockType Abs
Name "Diod"
Position [645, 225, 675, 255]
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "M"
Ports [1]
Position [230, 239, 260, 271]
Floating off
Location [6, 39, 1034, 760]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "10"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType SignalGenerator
Name "Message "
Ports [0, 1]
Position [125, 285, 155, 315]
Frequency "5"
Units "rad/sec"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [340, 221, 370, 254]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [900, 184, 930, 216]
List {
ListType RTWdata
TLCFile "extended_custcode"
Location "Header File"
Top "#include \"can_callback.h\"\n"
Unique "Multiple"
Key ""
}
Floating off
Location [6, 46, 1270, 769]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "10"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [890, 344, 920, 376]
Floating off
Location [6, 46, 1270, 769]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "10"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [705, 144, 735, 176]
Floating off
Location [23, 45, 1055, 782]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "10"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [260, 290, 280, 310]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [750, 222, 810, 258]
Numerator "2*pi*5"
Denominator "[1 2*pi*5]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [750, 342, 810, 378]
Numerator "2*pi*5"
Denominator "[1 2*pi*5]"
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [55, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Carrier"
SrcPort 1
Points [0, 25; 100, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "C"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [15, 0; 0, -55]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Message "
SrcPort 1
Points [75, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [-20, 0]
DstBlock "M"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [40, 0]
Branch {
Points [0, -130]
DstBlock "AM-Modulation"
DstPort 1
}
Branch {
DstBlock "Diod"
DstPort 1
}
}
Line {
SrcBlock "Diod"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope7"
DstPort 1
}
Branch {
DstBlock "Transfer Fcn"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [40, 0; 0, 50]
Branch {
Points [0, 15; -120, 0]
DstBlock "Transfer Fcn1"
DstPort 1
}
Branch {
Points [0, -90]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
DstBlock "Scope5"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -