📄 msk.mdl
字号:
}
Block {
BlockType Switch
Name "Schalter2"
Position [160, 19, 190, 51]
ShowName off
Threshold "1"
}
Block {
BlockType Step
Name "Step Input"
Position [75, 190, 95, 210]
Time "3"
SampleTime "1"
}
Block {
BlockType Step
Name "Step Input1"
Position [75, 60, 95, 80]
SampleTime "1"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "S-function"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Schalter2"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Schalter2"
DstPort 3
}
Line {
SrcBlock "Step Input1"
SrcPort 1
Points [20, 0; 0, -35]
DstBlock "Schalter2"
DstPort 2
}
Line {
SrcBlock "Schalter2"
SrcPort 1
Points [30, 0; 0, 25]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "in_2"
SrcPort 1
Points [20, 0; 0, 10]
DstBlock "Schalter1"
DstPort 1
}
Line {
SrcBlock "Step Input"
SrcPort 1
Points [20, 0; 0, -35]
DstBlock "Schalter1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -20]
DstBlock "Schalter1"
DstPort 3
}
Line {
SrcBlock "Schalter1"
SrcPort 1
Points [30, 0; 0, -90]
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Receiver"
Ports [1, 2]
Position [645, 59, 720, 146]
ShowPortLabels off
TreatAsAtomicUnit off
System {
Name "Receiver"
Location [10, 106, 1022, 436]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "noisy\nMSK signal"
Position [20, 120, 40, 140]
}
Block {
BlockType Reference
Name "ButterworthLP filter"
Ports [1, 1]
Position [330, 63, 390, 97]
SourceBlock "librnew/ButterworthLP filter"
SourceType "Lowpass Butterworth filter"
MaskParam1 "5"
n "4"
}
Block {
BlockType Reference
Name "ButterworthLP filter_"
Ports [1, 1]
Position [330, 161, 390, 199]
SourceBlock "librnew/ButterworthLP filter"
SourceType "Lowpass Butterworth filter"
MaskParam1 "5"
n "4"
}
Block {
BlockType Clock
Name "Clock"
Position [90, 120, 110, 140]
ShowName off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [805, 195, 825, 215]
Orientation "left"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [130, 135, 225, 155]
ShowName off
Expr "-2*sin(4*pi*u)"
}
Block {
BlockType Fcn
Name "Fcn3"
Position [130, 105, 225, 125]
ShowName off
Expr "2*cos(4*pi*u)"
}
Block {
BlockType ZeroOrderHold
Name "Hold"
Position [735, 114, 770, 146]
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [255, 68, 285, 92]
ShowName off
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [255, 168, 285, 192]
ShowName off
}
Block {
BlockType SubSystem
Name "Pulse\nGenerator1"
Ports [0, 1]
Position [560, 112, 595, 148]
ShowName off
ShowPortLabels off
TreatAsAtomicUnit off
MaskType "Pulse Generator"
MaskDescription "Pulse Generator."
MaskHelp "Pulse generator which ensures pulse\\ntrans"
"itions are hit. Provides a vector of pulses when the height is entered as a v"
"ector.\\nUnmask to see how it works."
MaskPromptString "Pulse period (secs):|Pulse width:|Pulse hei"
"ght:|Pulse start time:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskInitialization "Ts=@1; du=@2; ht=@3; stt=@4; ini=ones(lengt"
"h(ht),1); st1=rem(stt,Ts); st2=rem(stt+du,Ts);if(Ts<=1.2*du),ini=zeros(length"
"(ht),1);end;"
MaskDisplay "plot(0,0,100,100,[90,75,75,60,60,35,35,20,2"
"0,10],[20,20,80,80,20,20,80,80,20,20])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2|1|1|0"
System {
Name "Pulse\nGenerator1"
Location [158, 441, 759, 682]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock1"
Position [295, 100, 315, 120]
ShowName off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [25, 30, 45, 50]
}
Block {
BlockType Constant
Name "Constant1"
Position [295, 149, 320, 171]
Value "stt"
}
Block {
BlockType Gain
Name "Gain"
Position [510, 102, 535, 128]
ShowName off
Gain "ht"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [285, 38, 315, 62]
Operator "XOR"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [355, 38, 385, 62]
Operator "NOT"
Inputs "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [455, 105, 480, 125]
ShowName off
}
Block {
BlockType RelationalOperator
Name "Relational\noperator"
Position [370, 102, 400, 133]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [135, 35, 155, 55]
ShowName off
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [130, 120, 150, 140]
ShowName off
Inputs "+-"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [145, 75, 195, 95]
Orientation "left"
SampleTime "[Ts,st1]"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [140, 165, 190, 185]
Orientation "left"
X0 "ini"
SampleTime "[Ts,st2]"
}
Block {
BlockType Outport
Name "out_1"
Position [560, 105, 580, 125]
ShowName off
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0]
Branch {
Points [90, 0; 0, -75]
DstBlock "Logical\nOperator"
DstPort 2
}
Branch {
Points [55, 0; 0, 45]
DstBlock "Unit Delay1"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
Points [70, 0; 0, 40]
DstBlock "Unit Delay"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0]
Branch {
Points [20, 0; 0, 85]
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [-35, 0; 0, -40]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [-35, 0; 0, -35]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Clock1"
SrcPort 1
DstBlock "Relational\noperator"
DstPort 1
}
Line {
SrcBlock "Relational\noperator"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [20, 0; 0, -35]
DstBlock "Relational\noperator"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
Points [40, 0; 0, 60]
DstBlock "Product"
DstPort 1
}
}
}
Block {
BlockType Switch
Name "Schalter1"
Position [805, 124, 835, 156]
ShowName off
Threshold "1"
}
Block {
BlockType Step
Name "Step Input"
Position [745, 195, 765, 215]
Time "2"
SampleTime "1"
}
Block {
BlockType Switch
Name "Switch"
Position [625, 114, 655, 146]
Threshold "1"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay"
Position [420, 165, 460, 195]
NamePlacement "alternate"
ShowName off
DelayTime ".5"
BufferSize "200"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay1"
Position [420, 65, 460, 95]
NamePlacement "alternate"
ShowName off
DelayTime ".5"
BufferSize "200"
}
Block {
BlockType SubSystem
Name "close receiver"
Ports []
Position [815, 20, 950, 46]
BackgroundColor "lightBlue"
ShowName off
OpenFcn "closmskr"
FontSize 12
FontAngle "italic"
ShowPortLabels off
TreatAsAtomicUnit off
MaskType "close"
MaskDisplay "disp('close receiver')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "close receiver"
Location [136, 230, 381, 439]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "cyan"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "differential\ndecoding"
Ports [1, 2]
Position [865, 110, 895, 165]
ShowPortLabels off
TreatAsAtomicUnit off
System {
Name "differential\ndecoding"
Location [587, 391, 914, 649]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -