fmmodulle.mdl
来自「16 mpsk vs qask comparison of two tech」· MDL 代码 · 共 819 行 · 第 1/2 页
MDL
819 行
TargetFcnLib "ansi_tfl_tmw.mat"
TargetLibSuffix ""
TargetPreCompLibLocation ""
GenFloatMathFcnCalls "ANSI_C"
UtilityFuncGeneration "Auto"
GenerateFullHeader on
GenerateSampleERTMain off
GenerateTestInterfaces off
IsPILTarget off
ModelReferenceCompliant on
IncludeMdlTerminateFcn on
CombineOutputUpdateFcns off
SuppressErrorStatus off
IncludeFileDelimiter "Auto"
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier "rt_"
MatFileLogging on
MultiInstanceERTCode off
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime on
SupportNonInlinedSFcns on
EnableShiftOperators on
ParenthesesLevel "Nominal"
PortableWordSizes off
ModelStepFunctionPrototypeControlCompliant off
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
ExtModeIntrfLevel "Level1"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
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 "Diagnostics"
}
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 Clock
DisplayTime off
}
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 MATLABFcn
MATLABFcn "sin"
OutputDimensions "-1"
OutputSignalType "auto"
Output1D on
SampleTime "-1"
}
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 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"
}
}
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 "Fmmodulle"
Location [304, 80, 1316, 720]
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 Sum
Name "Add"
Ports [2, 1]
Position [300, 182, 330, 213]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Clock
Name "Clock"
Position [25, 135, 45, 155]
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [90, 80, 120, 110]
List {
ListType RTWdata
TLCFile "extended_custcode"
Location "Subsystem Initialize Function"
Middle " setCanModuleFloatingPointCallback "
" \n(&GlobalModuleCAN_A, CAN_IRQ_ERROR, can_irq_CAN_A_CAN_"
"IRQ_ERROR );\n"
Bottom "enableCanModuleCallback(&GlobalModuleCAN_A, C"
"AN_IRQ_ERROR );\n"
Unique "Multiple"
Key ""
}
OutDataType "radian/sec"
}
Block {
BlockType Constant
Name "Constant1"
Position [85, 185, 115, 215]
List {
ListType RTWdata
TLCFile "extended_custcode"
Location "Subsystem Initialize Function"
Middle " setCanModuleFloatingPointCallback "
" \n(&GlobalModuleCAN_A, CAN_IRQ_ERROR, can_irq_CAN_A_CAN_"
"IRQ_ERROR );\n"
Bottom "enableCanModuleCallback(&GlobalModuleCAN_A, C"
"AN_IRQ_ERROR );\n"
Unique "Multiple"
Key ""
}
Value "5"
OutDataType "rad/sec"
}
Block {
BlockType Constant
Name "Constant2"
Position [410, 30, 440, 60]
List {
ListType RTWdata
TLCFile "extended_custcode"
Location "Subsystem Initialize Function"
Middle " setCanModuleFloatingPointCallback "
" \n(&GlobalModuleCAN_A, CAN_IRQ_ERROR, can_irq_CAN_A_CAN_"
"IRQ_ERROR );\n"
Bottom "enableCanModuleCallback(&GlobalModuleCAN_A, C"
"AN_IRQ_ERROR );\n"
Unique "Multiple"
Key ""
}
Value "2"
OutDataType "radian/sec"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Ports [1, 1]
Position [280, 70, 340, 100]
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Ports [1, 1]
Position [395, 220, 455, 250]
MATLABFcn "cos"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [195, 77, 225, 108]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [210, 177, 240, 208]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [490, 57, 520, 88]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [610, 116, 640, 149]
Floating off
Location [5, 52, 1029, 737]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [25, 0; 0, -10]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [110, 0]
Branch {
Points [20, 0]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 40]
DstBlock "Product1"
DstPort 1
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [15, 0; 0, -10]
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
Points [50, 0; 0, 35]
DstBlock "MATLAB Fcn1"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [15, 0; 0, 20]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [5, 0; 0, 95; -245, 0]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [20, 0; 0, 10]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
Points [65, 0; 0, 25]
Branch {
Points [65, 0]
DstBlock "Product2"
DstPort 2
}
Branch {
Points [0, 15]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "MATLAB Fcn1"
SrcPort 1
Points [135, 0]
DstBlock "Scope"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?