📄 sim7.mdl
字号:
IncAutoGenComments off
SimulinkDataObjDesc off
SFDataObjDesc off
IncDataTypeInIds off
PrefixModelToSubsysFcnNames on
CustomSymbolStr "$R$N$M"
MangleLength 1
DefineNamingRule "None"
ParamNamingRule "None"
SignalNamingRule "None"
InsertBlockDesc off
SimulinkBlockComments on
EnableCustomComments off
InlinedPrmAccess "Literals"
ReqsInCode off
}
Simulink.GRTTargetCC {
$BackupClass "Simulink.TargetCC"
$ObjectID 10
Array {
Type "Cell"
Dimension 12
Cell "IncludeMdlTerminateFcn"
Cell "CombineOutputUpdateFcns"
Cell "SuppressErrorStatus"
Cell "ERTCustomFileBanners"
Cell "GenerateSampleERTMain"
Cell "MultiInstanceERTCode"
Cell "PurelyIntegerCode"
Cell "SupportNonFinite"
Cell "SupportComplex"
Cell "SupportAbsoluteTime"
Cell "SupportContinuousTime"
Cell "SupportNonInlinedSFcns"
PropName "DisabledProps"
}
Version "1.0.4"
TargetFcnLib "ansi_tfl_tmw.mat"
GenFloatMathFcnCalls "ANSI_C"
UtilityFuncGeneration "Auto"
GenerateFullHeader on
GenerateSampleERTMain 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
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
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 ComplexToMagnitudeAngle
Output "Magnitude and angle"
SampleTime "-1"
}
Block {
BlockType ComplexToRealImag
Output "Real and imag"
SampleTime "-1"
}
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 Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType MagnitudeAngleToComplex
Input "Magnitude and angle"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType RealImagToComplex
Input "Real and imag"
ConstantPart "0"
SampleTime "-1"
}
}
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 "Sim7"
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 Display
Name "Angle"
Ports [1]
Position [635, 346, 700, 394]
BackgroundColor "yellow"
FontSize 10
Decimation "2"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle"
Ports [1, 2]
Position [470, 304, 510, 346]
BackgroundColor "red"
Output "Magnitude and angle"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [465, 162, 505, 198]
BackgroundColor "green"
Output "Real and imag"
}
Block {
BlockType Constant
Name "Constant1"
Position [150, 182, 205, 228]
BackgroundColor "lightBlue"
}
Block {
BlockType Constant
Name "Constant2"
Position [155, 312, 215, 358]
BackgroundColor "lightBlue"
Value "2"
}
Block {
BlockType Display
Name "Imag"
Ports [1]
Position [630, 191, 695, 239]
BackgroundColor "yellow"
FontSize 10
Decimation "2"
}
Block {
BlockType Display
Name "Magnitude\n"
Ports [1]
Position [630, 257, 695, 303]
BackgroundColor "yellow"
FontSize 10
Decimation "2"
}
Block {
BlockType MagnitudeAngleToComplex
Name "Magnitude-Angle\nto Complex"
Ports [2, 1]
Position [335, 159, 375, 201]
BackgroundColor "magenta"
Input "Magnitude and angle"
}
Block {
BlockType Display
Name "Real"
Ports [1]
Position [625, 111, 690, 159]
BackgroundColor "yellow"
FontSize 10
Decimation "2"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [330, 306, 370, 344]
BackgroundColor "cyan"
Input "Real and imag"
}
Line {
Labels [2, 0]
SrcBlock "Constant1"
SrcPort 1
Points [15, 0; 30, 0]
Branch {
Points [0, -35]
DstBlock "Magnitude-Angle\nto Complex"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [10, 0; 35, 0]
Branch {
Points [0, -145]
DstBlock "Magnitude-Angle\nto Complex"
DstPort 2
}
Branch {
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
}
Line {
SrcBlock "Magnitude-Angle\nto Complex"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [70, 0; 0, -35]
DstBlock "Real"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [70, 0; 0, 25]
DstBlock "Imag"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
Points [60, 0; 0, -35]
DstBlock "Magnitude\n"
DstPort 1
}
Line {
Labels [2, 0]
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 2
Points [60, 0; 0, 35]
DstBlock "Angle"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -