📄 equizer4.mdl
字号:
Frame "Sample-based"
Dimensions "Scalar (1-D or 2-D)"
}
}
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "commfilt2/Raised Cosine\nTransmit Filter"
SourceType "Raised Cosine Transmit Filter"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
filtType "Square root"
D "2"
R "0.5"
sampMode "Sample-based"
N "8"
checkGain "Normalized"
filterGain "1"
checkCoeff on
variableName "xishu6"
launchFVT off
}
Block {
BlockType Reference
Name "Raised Cosine\nTransmit Filter7"
Ports [1, 1]
Position [240, 320, 285, 360]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "commfilt2/Raised Cosine\nTransmit Filter"
SourceType "Raised Cosine Transmit Filter"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
filtType "Square root"
D "2"
R "0.5"
sampMode "Sample-based"
N "8"
checkGain "Normalized"
filterGain "1"
checkCoeff off
variableName "rcTxFilt7"
launchFVT off
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [860, 91, 890, 124]
Floating off
Location [-3, 56, 1021, 741]
Open off
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-0.5~-0.5"
YMax "0.5~0.5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
MaxDataPoints "90000"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [950, 538, 980, 572]
Floating off
Location [5, 56, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-1"
YMax "8"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
MaxDataPoints "90000"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 3]
Position [905, 163, 970, 237]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem"
Location [2, 82, 1014, 721]
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 Inport
Name "In1"
Position [375, 78, 405, 92]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [405, 235, 435, 250]
Orientation "up"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Digital\nFilter Design"
Ports [1, 1]
Position [170, 72, 235, 128]
UserDataPersistent on
UserData "DataTag3"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType "Digital Filter Design"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
mwdsp_browser_bugfix_var off
}
Block {
BlockType SubSystem
Name "Embedded\nMATLAB Function1"
Ports [3, 1]
Position [410, 115, 530, 165]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Array {
Type "Handle"
Dimension 0
PropName "AvailSigsLoadSave"
}
MaskHideContents off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('peakdect');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Embedded\nMATLAB Function1"
Location [257, 457, 812, 717]
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 Inport
Name "u1"
Position [20, 101, 40, 119]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "u2"
Position [20, 136, 40, 154]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "u3"
Position [20, 171, 40, 189]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 205, 320, 245]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function equizer4 3"
Ports [3, 2]
Position [180, 104, 230, 206]
FunctionName "sf_sfun"
PortCounts "[3 2]"
Port {
PortNumber 2
Name "p"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 216, 480, 234]
}
Block {
BlockType Outport
Name "p"
Position [460, 101, 480, 119]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Name "p"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "p"
DstPort 1
}
Line {
SrcBlock "u1"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
SrcBlock " SFunction "
SrcPort 1
Points [0, 95]
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock "u2"
SrcPort 1
DstBlock " SFunction "
DstPort 2
}
Line {
SrcBlock "u3"
SrcPort 1
DstBlock " SFunction "
DstPort 3
}
}
}
Block {
BlockType SubSystem
Name "Embedded\nMATLAB Function2"
Ports [2, 3]
Position [720, 105, 870, 185]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Array {
Type "Handle"
Dimension 0
PropName "AvailSigsLoadSave"
}
MaskHideContents off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('codejudge');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Embedded\nMATLAB Function2"
Location [257, 457, 812, 717]
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 Inport
Name "u1"
Position [20, 101, 40, 119]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "u2"
Position [20, 136, 40, 154]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 210, 320, 250]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function equizer4 4"
Ports [2, 4]
Position [180, 106, 230, 209]
FunctionName "sf_sfun"
PortCounts "[2 4]"
Port {
PortNumber 2
Name "msg_num_r"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "msg_I_r"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "msg_Q_r"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 221, 480, 239]
}
Block {
BlockType Outport
Name "msg_num_r"
Position [460, 101, 480, 119]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "msg_I_r"
Position [460, 136, 480, 154]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "msg_Q_r"
Position [460, 171, 480, 189]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "u1"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
SrcBlock " SFunction "
SrcPort 1
Points [0, 110]
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock "u2"
SrcPort 1
DstBlock " SFunction "
DstPort 2
}
Line {
Name "msg_num_r"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "msg_num_r"
DstPort 1
}
Line {
Name "msg_I_r"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 3
DstBlock "msg_I_r"
DstPort 1
}
Line {
Name "msg_Q_r"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 4
DstBlock "msg_Q_r"
DstPort 1
}
}
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [50, 50, 80, 80]
Operator "square"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [50, 120, 80, 150]
Operator "square"
}
Block {
BlockType Reference
Name "Sample\nand Hold"
Ports [1, 1, 0, 1]
Position [580, 64, 630, 106]
SourceBlock "dspsigops/Sample\nand Hold"
SourceType "Sample and Hold"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
trig "Rising edge"
initCond "0"
latchinput off
}
Block {
BlockType Reference
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -