📄 v_blast.mdl
字号:
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RealImagToComplex
Input "Real and imag"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType Reference
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
Block {
BlockType TriggerPort
TriggerType "rising"
StatesWhenEnabling "inherit"
ShowOutputPort off
OutputDataType "auto"
SampleTimeType "triggered"
SampleTime "1"
ZeroCross on
}
}
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 "V_Blast"
Location [77, 115, 1089, 754]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [555, 133, 635, 177]
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "61"
Ts "0.5e-6"
frameBased on
sampPerFrame "32"
orient off
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [300, 42, 425, 148]
Orientation "left"
NamePlacement "alternate"
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [510, 67, 585, 118]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType FrameConversion
Name "Frame Conversion1"
Position [685, 415, 740, 455]
OutFrame "Frame based"
}
Block {
BlockType FrameConversion
Name "FrameConversion"
Position [585, 310, 625, 365]
Orientation "down"
NamePlacement "alternate"
OutFrame "Frame based"
}
Block {
BlockType SubSystem
Name "IdealChannelEstimation"
Ports [0, 1]
Position [355, 200, 475, 300]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('ChannelEstimation')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "IdealChannelEstimation"
Location [2, 86, 997, 708]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [50, 195, 80, 225]
Value "0"
SampleTime "4e-6"
}
Block {
BlockType Constant
Name "Constant1"
Position [15, 160, 45, 190]
SampleTime "4e-6"
}
Block {
BlockType Constant
Name "Constant2"
Position [85, 230, 115, 260]
Value "0"
SampleTime "4e-6"
}
Block {
BlockType Constant
Name "Constant3"
Position [120, 265, 150, 295]
Value "0"
SampleTime "4e-6"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [335, 505, 1025, 665]
Decimation "1"
}
Block {
BlockType FrameConversion
Name "Frame Conversion"
Position [255, 211, 305, 249]
OutFrame "Frame based"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [4, 1]
Position [850, 244, 905, 286]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "4"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [4, 1]
Position [170, 158, 230, 297]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "4"
catMethod "Vertical"
}
Block {
BlockType Probe
Name "Probe"
Ports [1, 1]
Position [875, 756, 1010, 814]
ProbeWidth off
ProbeComplexSignal off
}
Block {
BlockType SubSystem
Name "R1"
Ports [4, 1]
Position [710, 158, 750, 217]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "R1"
Location [2, 86, 1014, 727]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [250, 48, 280, 62]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [255, 108, 285, 122]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In3"
Position [245, 168, 275, 182]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In4"
Position [250, 228, 280, 242]
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel1"
Ports [1, 1]
Position [340, 100, 395, 130]
SourceBlock "commchan2/Multipath Rayleigh\nFading Ch"
"annel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "40"
simTs "1e-6"
delayVec "0"
gainVecdB "0"
normGain on
Seed "20000000"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel2"
Ports [1, 1]
Position [340, 221, 395, 249]
SourceBlock "commchan2/Multipath Rayleigh\nFading Ch"
"annel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "40"
simTs "1e-6"
delayVec "0"
gainVecdB "0"
normGain on
Seed "40000000"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel4"
Ports [1, 1]
Position [335, 40, 385, 70]
SourceBlock "commchan2/Multipath Rayleigh\nFading Ch"
"annel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "40"
simTs "1e-6"
delayVec "0"
gainVecdB "0"
normGain on
Seed "10000000"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel5"
Ports [1, 1]
Position [335, 161, 385, 189]
SourceBlock "commchan2/Multipath Rayleigh\nFading Ch"
"annel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "40"
simTs "1e-6"
delayVec "0"
gainVecdB "0"
normGain on
Seed "30000000"
}
Block {
BlockType Sum
Name "Sum"
Ports [4, 1]
Position [610, 90, 670, 200]
ShowName off
IconShape "round"
Inputs "|++++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [735, 138, 765, 152]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel4"
SrcPort 1
Points [144, 0; 0, 60]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel1"
SrcPort 1
Points [70, 0; 0, 30]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel5"
SrcPort 1
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel2"
SrcPort 1
Points [240, 0]
DstBlock "Sum"
DstPort 4
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In4"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel2"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel4"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel1"
DstPort 1
}
Line {
SrcBlock "In3"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel5"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "R2"
Ports [4, 1]
Position [715, 227, 755, 288]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "R2"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -