📄 tr_mods_ss.mdl
字号:
BlockType Logic
Operator "AND"
Inputs "2"
IconShape "rectangular"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimization)"
LogicDataType "uint(8)"
OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)"
SampleTime "-1"
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as first input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Same as first input"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType "M-S-Function"
FunctionName "mlfile"
DisplayMFileStacktrace on
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
OutMin "[]"
OutMax "[]"
DataType "auto"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: auto"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as first input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Same as first input"
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 "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
SFunctionDeploymentMode off
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
ContinuousStateAttributes "''"
Realization "auto"
}
Block {
BlockType SubSystem
ShowPortLabels "FromPortIcon"
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
CheckFcnCallInpInsideContextMsg off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
AccumDataTypeStr "Inherit: Inherit via internal rule"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as first input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Same as first input"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Inherit via internal rule"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Inherit via internal rule"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType TriggerPort
TriggerType "rising"
StatesWhenEnabling "inherit"
ShowOutputPort off
OutputDataType "auto"
SampleTimeType "triggered"
SampleTime "1"
ZeroCross on
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "fixdt(1,16,0)"
ConRadixGroup "Use specified scaling"
OutScaling "[]"
OutDataTypeStr "Inherit: Inherit from 'Constant value'"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType RandomNumber
Mean "0"
Variance "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Courier New"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Courier New"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "TR_mods"
Location [2, 78, 1278, 749]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Carrier_Signal"
Ports [0, 3]
Position [335, 258, 440, 362]
ForegroundColor "magenta"
BackgroundColor "yellow"
DropShadow on
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Carrier_Signal"
Location [266, 397, 595, 581]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Constant
Name "1"
Position [45, 120, 65, 140]
ForegroundColor "green"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Carrier"
Ports [0, 1]
Position [25, 68, 60, 92]
ForegroundColor "orange"
SourceBlock "simulink_extras/Flip Flops/Clock"
SourceType "Digital clock"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
MaskParam1 "2*pi/1698000"
}
Block {
BlockType Reference
Name "D"
Ports [3, 2]
Position [145, 54, 185, 106]
ForegroundColor "gray"
BackgroundColor "orange"
DropShadow on
SourceBlock "simulink_extras/Flip Flops/D Flip-Flop"
SourceType "DFlipFlop"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
}
Block {
BlockType Outport
Name "0"
Position [270, 63, 300, 77]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "180"
Position [275, 108, 305, 122]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Clk"
Position [270, 153, 300, 167]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "D"
SrcPort 1
DstBlock "0"
DstPort 1
}
Line {
SrcBlock "Carrier"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 80]
DstBlock "Clk"
DstPort 1
}
Branch {
DstBlock "D"
DstPort 2
}
}
Line {
SrcBlock "D"
SrcPort 2
Points [-15, 0; 20, 0]
Branch {
Points [65, 0]
DstBlock "180"
DstPort 1
}
Branch {
Points [0, -65; -65, 0]
DstBlock "D"
DstPort 1
}
}
Line {
SrcBlock "1"
SrcPort 1
Points [35, 0; 0, -35]
DstBlock "D"
DstPort 3
}
}
}
Block {
BlockType Constant
Name "Control B"
Position [243, 490, 267, 505]
Orientation "up"
BackgroundColor "lightBlue"
ShowName off
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Control B1"
Position [183, 490, 207, 505]
Orientation "up"
BackgroundColor "lightBlue"
ShowName off
Value "0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Control B2"
Position [118, 490, 142, 505]
Orientation "up"
BackgroundColor "lightBlue"
ShowName off
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Control B3"
Position [58, 490, 82, 505]
Orientation "up"
BackgroundColor "lightBlue"
ShowName off
Value "0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType SubSystem
Name "Data Source "
Ports [0, 1]
Position [505, 361, 620, 509]
ForegroundColor "lightBlue"
BackgroundColor "orange"
DropShadow on
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Data Source "
Location [293, 361, 782, 525]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Constant
Name "3"
Position [245, 138, 265, 152]
ForegroundColor "green"
Value "0.5"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "4"
Position [165, 123, 180, 137]
ForegroundColor "green"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType RandomNumber
Name "Data_socurce"
Position [25, 25, 105, 45]
ForegroundColor "cyan"
Seed "10"
SampleTime "2*pi/135000"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [135, 26, 195, 44]
ForegroundColor "darkGreen"
Expr "(-1)^ceil(u)"
}
Block {
BlockType Product
Name "P5"
Ports [2, 1]
Position [290, 61, 305, 94]
ForegroundColor "red"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "S3"
Ports [2, 1]
Position [225, 60, 245, 100]
ForegroundColor "blue"
IconShape "round"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Dataa_output"
Position [360, 73, 390, 87]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Data_socurce"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
Points [35, 0]
DstBlock "S3"
DstPort 1
}
Line {
SrcBlock "4"
SrcPort 1
Points [50, 0]
DstBlock "S3"
DstPort 2
}
Line {
SrcBlock "3"
SrcPort 1
Points [5, 0]
DstBlock "P5"
DstPort 2
}
Line {
SrcBlock "S3"
SrcPort 1
Points [0, -10]
DstBlock "P5"
DstPort 1
}
Line {
SrcBlock "P5"
SrcPort 1
DstBlock "Dataa_output"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Filter"
Ports [1, 2]
Position [870, 166, 965, 259]
BackgroundColor "green"
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -