📄 radar.mdl
字号:
Block {
BlockType Fcn
Name "Calculate\nsamples delay\nfrom distance"
Position [280, 100, 340, 130]
Expr "(u(1)/3e8)/SamplePeriod"
}
Block {
BlockType Constant
Name "Constant"
Position [45, 101, 140, 129]
ShowName off
Value "DistanceStart"
}
Block {
BlockType Reference
Name "Delay Return"
Ports [2, 1]
Position [390, 35, 475, 75]
SourceBlock "dspsigops/Variable\nInteger Delay"
SourceType "Variable Integer Delay"
dmax "1000"
ic "0"
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [50, 188, 115, 212]
ShowName off
SampleTime "5e-6"
}
Block {
BlockType Product
Name "Doppler \nFrequency Shift"
Ports [2, 1]
Position [560, 46, 605, 79]
}
Block {
BlockType Gain
Name "Gain"
Position [145, 182, 205, 218]
ShowName off
Gain "Speed"
}
Block {
BlockType Reference
Name "Sine Wave"
Ports [0, 1]
Position [400, 123, 445, 167]
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "(Frequency+eps)"
Phase "0"
SampleMode "Discrete"
OutComplex "Complex"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "5e-6/120"
SamplesPerFrame "15*8"
additionalParams "off"
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "14"
ResetState "Restart at time zero"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [225, 105, 245, 125]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType SubSystem
Name "Target reflection"
Ports [2, 1]
Position [675, 44, 775, 126]
TreatAsAtomicUnit off
MaskPromptString "Target RCS (m^2)|Wavelength of Radar (m)"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "sigma=@1;lamda=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "12|Wavelength"
System {
Name "Target reflection"
Location [160, 377, 944, 678]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Tx Signal\nPower"
Position [35, 73, 65, 87]
}
Block {
BlockType Inport
Name "Target Range"
Position [35, 133, 65, 147]
Port "2"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [235, 91, 280, 124]
}
Block {
BlockType Fcn
Name "Radar Signal\nDegradation"
Position [115, 125, 175, 155]
Expr "1/(u(1)^4)"
}
Block {
BlockType Gain
Name "Transmitter Power"
Position [325, 40, 540, 180]
ShowName off
Gain "((lamda^2)*sigma)/((4*pi)^3)"
Port {
PortNumber 1
Name "Reflected Power"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "Reflected Power"
Position [685, 103, 715, 117]
}
Line {
Name "Reflected Power"
Labels [0, 0]
SrcBlock "Transmitter Power"
SrcPort 1
DstBlock "Reflected Power"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Transmitter Power"
DstPort 1
}
Line {
SrcBlock "Tx Signal\nPower"
SrcPort 1
Points [135, 0; 0, 20]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Target Range"
SrcPort 1
DstBlock "Radar Signal\nDegradation"
DstPort 1
}
Line {
SrcBlock "Radar Signal\nDegradation"
SrcPort 1
Points [25, 0; 0, -25]
DstBlock "Product"
DstPort 2
}
}
}
Block {
BlockType Outport
Name "Return"
Position [825, 78, 855, 92]
}
Line {
SrcBlock "Target reflection"
SrcPort 1
DstBlock "Return"
DstPort 1
}
Line {
SrcBlock "Doppler \nFrequency Shift"
SrcPort 1
DstBlock "Target reflection"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Calculate\nsamples delay\nfrom distance"
DstPort 1
}
Branch {
Points [0, 85; 405, 0]
DstBlock "Target reflection"
DstPort 2
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [25, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Digital Clock"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Calculate\nsamples delay\nfrom distance"
SrcPort 1
Points [5, 0; 0, -50]
DstBlock "Delay Return"
DstPort 2
}
Line {
SrcBlock "Delay Return"
SrcPort 1
DstBlock "Doppler \nFrequency Shift"
DstPort 1
}
Line {
SrcBlock "Tx Pulses"
SrcPort 1
DstBlock "Delay Return"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [80, 0; 0, -75]
DstBlock "Doppler \nFrequency Shift"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Transmitter"
Ports [0, 1]
Position [60, 53, 215, 127]
TreatAsAtomicUnit off
MaskPromptString "Transmitter Peak Power (Watts)|Transmitter Gain"
" (dB)"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "Pt=@1;Gt=@2;"
MaskInitialization "sat = imread('satellite.jpg');\nfor ii=1:3, sat"
"(:,:,ii) = fliplr(sat(:,:,ii)); end;"
MaskDisplay "image(sat)"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "10000|0"
Port {
PortNumber 1
Name "Radar Baseband"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "Transmitter"
Location [14, 457, 1027, 693]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "111"
Block {
BlockType RealImagToComplex
Name "BPSK\nModulator\nBaseband"
Ports [1, 1]
Position [260, 73, 315, 107]
Input "Real"
}
Block {
BlockType Gain
Name "Gain"
Position [575, 75, 605, 105]
ShowName off
Gain "SamplesPerSymbol"
}
Block {
BlockType Reference
Name "H/W Limitation\non Bandwidth"
Ports [1, 1]
Position [465, 62, 530, 118]
UserDataPersistent on
UserData "DataTag1"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType "Digital Filter Design"
}
Block {
BlockType Reference
Name "Note that the sample time\nis depend on the"
" code size\n(tau is fix)"
Ports [0, 1]
Position [25, 73, 105, 107]
SourceBlock "dspsrcs4/Signal From\nWorkspace"
SourceType "Signal From Workspace"
X "Codebp"
Ts "SymbolPeriod"
nsamps "length(Codebp)"
OutputAfterFinalValue "Cyclic repetition"
}
Block {
BlockType Reference
Name "Transmitter Gain\n(This will need to be \nc"
"hangeable during simulation)"
Ports [1, 1]
Position [720, 72, 775, 108]
SourceBlock "dspmathops/dB Gain"
SourceType "dB Gain"
dB "Gt"
intype "Amplitude"
}
Block {
BlockType Gain
Name "Transmitter Power"
Position [630, 67, 680, 113]
Gain "Pt"
}
Block {
BlockType Reference
Name "Upsample"
Ports [1, 1]
Position [385, 73, 420, 107]
ShowName off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -