?? qamwnymf.mdl
字號:
BlockType Constant
Name "Shift key"
Position [125, 88, 145, 112]
Value "sft"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [190, 33, 210, 62]
Inputs "+-"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [95, 24, 130, 56]
SampleTime "td"
}
Block {
BlockType Outport
Name "out_1"
Position [410, 40, 430, 60]
IconDisplay "Port number"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Minimum"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Minimum"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Shift key"
SrcPort 1
Points [15, 0; 0, -45]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "4-ASK demap1"
Ports [1, 1]
Position [860, 169, 930, 211]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "MASK demapping"
MaskDescription "Reverse the MASK mapping process\nConvert ["
"-1 1] analog signal to [0, M-1] symbols."
MaskHelp "This block demaps a MASK mapped signal back"
" to digit symbols. You can place this block after a amplitude demodulation bl"
"ock. The input of this block is an analog signal in the range [-1, 1]. The de"
"modulation decides the closest integer fitting in [0,M-1] range. When the inp"
"ut symbol interval is a two-elements vector, the second element is offset. Th"
"e default offset value is 0."
MaskPromptString "M-ary number (digit integers in ranger [0, "
"M-1]):|Output symbol interval and offset (sec):"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "N=@1;td=@2;"
MaskInitialization "Ac=1;sft=[0:N-1]*Ac*2/(N-1)-Ac;"
MaskDisplay "disp('MASK\\ndemapping')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "4|[1, .9]"
MaskTabNameString ","
System {
Name "4-ASK demap1"
Location [617, 158, 1115, 458]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [40, 30, 60, 50]
IconDisplay "Port number"
}
Block {
BlockType Abs
Name "Abs"
Position [245, 37, 280, 63]
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType "S-Function"
Name "Minimum"
Ports [1, 1]
Position [325, 40, 380, 60]
FunctionName "arymimai"
Parameters "'min'"
}
Block {
BlockType Constant
Name "Shift key"
Position [125, 88, 145, 112]
Value "sft"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [190, 33, 210, 62]
Inputs "+-"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [95, 24, 130, 56]
SampleTime "td"
}
Block {
BlockType Outport
Name "out_1"
Position [410, 40, 430, 60]
IconDisplay "Port number"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Minimum"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Minimum"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Shift key"
SrcPort 1
Points [15, 0; 0, -45]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
}
}
Block {
BlockType Clock
Name "Clock"
Position [145, 140, 165, 160]
ShowName off
Decimation "10"
}
Block {
BlockType Fcn
Name "Fcn"
Position [185, 119, 265, 141]
ShowName off
Expr "2*cos(4*pi*u)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [185, 159, 265, 181]
ShowName off
Expr "-2*sin(4*pi*u)"
}
Block {
BlockType Gain
Name "Gain1"
Position [510, 212, 535, 238]
ShowName off
Gain "1/4"
}
Block {
BlockType Gain
Name "Gain2"
Position [510, 77, 535, 103]
ShowName off
Gain "1/4"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [300, 74, 330, 101]
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [295, 213, 325, 237]
ShowName off
}
Block {
BlockType SubSystem
Name "Rolloff"
Ports []
Position [410, 19, 528, 46]
BackgroundColor "lightBlue"
ShowName off
OpenFcn "setrloff"
FontSize 12
FontAngle "italic"
ShowPortLabels off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "rolloff"
MaskDisplay "disp('Rolloff-Factor')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Rolloff"
Location [136, 230, 381, 439]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "cyan"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "Root-RC\nreceive filter"
Ports [1, 1]
Position [410, 68, 490, 112]
ShowPortLabels off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "R-C filter"
MaskDescription "Design a raised cosine filter and use it to"
" filter the input signal."
MaskHelp "This block designs a raised cosine filter u"
"sing the specified parameter. The filter is used to filter the input signal. "
"You can optionally use the sinc filter in the filtering computation."
MaskPromptString "Symbol interval (sec):|Computation sampling"
" time (sec):|Filter rolloff factor:|Delay step (integer to multiply symbol in"
"terval):|Filter type (FIR or IIR) / (Normal or Sqrt):|With or without sinc fi"
"lter (1 or 0, suggest 1):"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskInitialization "td=@1;if length(td)>1,off=td(2);td=td(1);el"
"se,off=0;end;ts=@2;R=@3;delay=@4;fil=@5;[num,den]=rcosine(1/td(1),1/ts(1),fil"
",R,delay);x=@6/2;"
MaskDisplay "disp('R-C\\nfilter')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|.05|0.5|6|'FIR/Sqrt'|0"
MaskTabNameString ",,,,,"
System {
Name "Root-RC\nreceive filter"
Location [131, 545, 589, 761]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [35, 30, 55, 50]
IconDisplay "Port number"
}
Block {
BlockType DiscreteFilter
Name "Filter"
Position [255, 31, 310, 69]
Numerator "num"
Denominator "den"
SampleTime "ts"
}
Block {
BlockType SubSystem
Name "Memory Impulse"
Ports [2, 1]
Position [155, 30, 225, 70]
ShowPortLabels off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Impulse"
MaskDescription "1/sinc filter:"
MaskHelp "When the threshold is greater than zero"
", this block outputs an impulse signal, which begins at the raising edge of t"
"he second input and lasts the holding time. The impulse holds a constant ampl"
"itude, which equals the amplitude of the first input at the begining of the i"
"mpulse. A clock raising edge will trigger next impulse. When the threshold is"
" less or equal to zero, this block faithfully outputs the first input."
MaskPromptString "Holding time:|Threshold for clock pulse"
": "
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskInitialization "ts=@1;thr=@2;x=thr>0;"
MaskDisplay "disp('1/sinc')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "ts|x"
MaskTabNameString ","
System {
Name "Memory Impulse"
Location [541, 520, 939, 745]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.196850, 0.196850, 0.196850, 0.1968"
"50]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [35, 185, 55, 205]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "in_2"
Position [25, 30, 45, 50]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [210, 155, 230, 175]
Value "x"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -