?? tstdimo.m
字號:
'Mask Entries','.2\/')
% Finished composite block ['Hold and delay/Clock triggered',13,'hold buffer'].
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer']],...
'position',[130,23,190,67])
% Subsystem ['Hold and delay/Clock triggered',13,'hold buffer1'].
new_system([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],'Location',[229,493,559,628])
add_block('built-in/Switch',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Switch']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Switch']],...
'ForeGround',5,...
'Threshold','eps',...
'position',[210,29,240,61])
add_block('built-in/Memory',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Memory']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Memory']],...
'orientation',2,...
'position',[200,80,240,110])
% Subsystem ['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector'].
new_system([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],'Location',[303,485,692,659])
add_block('built-in/Outport',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/out_1']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/out_1']],...
'position',[340,25,360,45])
add_block('built-in/Relational Operator',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/Relational',13,'Operator1']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/Relational',13,'Operator1']],...
'position',[200,88,230,112])
add_block('built-in/Relational Operator',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/Relational',13,'Operator2']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/Relational',13,'Operator2']],...
'Operator','>',...
'position',[265,23,295,47])
add_block('built-in/Constant',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/one1']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/one1']],...
'Value','thld',...
'position',[30,135,60,155])
add_block('built-in/Memory',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/Memory1']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/Memory1']],...
'position',[125,80,165,110])
add_block('built-in/Inport',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/in_1']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/in_1']],...
'position',[10,15,30,35])
add_block('built-in/Relational Operator',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/Relational',13,'Operator']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector/Relational',13,'Operator']],...
'position',[135,18,165,42])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],[35,25;130,25])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],[45,25;45,95;120,95])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],[170,95;195,95])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],[65,145;100,145;100,35;130,35])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],[100,145;180,145;180,105;195,105])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],[170,30;260,30])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],[235,100;240,100;240,40;260,40])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],[300,35;335,35])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],...
'Mask Display','Edge\ndetector',...
'Mask Type','Edge Detection',...
'Mask Dialogue','Rising edge detection:|Threshold:')
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],...
'Mask Translate','thld=@1;')
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],...
'Mask Help','When the input signal rising edge passed the given shreshold, this block outputs one, otherwise outputs zero.')
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],...
'Mask Entries','thld\/')
% Finished composite block ['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector'].
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/Rising edge',13,'detector']],...
'position',[80,48,140,92])
add_block('built-in/Outport',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/out_1']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/out_1']],...
'position',[290,35,310,55])
add_block('built-in/Inport',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/in_2']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/in_2']],...
'Port','2',...
'position',[15,60,35,80])
add_block('built-in/Inport',[sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/in_1']])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1/in_1']],...
'position',[40,25,60,45])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],[40,70;75,70])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],[245,45;285,45])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],[65,35;205,35])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],[195,95;185,95;185,55;205,55])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],[145,70;155,70;155,45;205,45])
add_line([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],[245,45;260,45;260,95;245,95])
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],...
'Mask Display','Hold\nBuffer',...
'Mask Type','Hold Buffer',...
'Mask Dialogue','Clock triggered hold buffer:|Threshold for clock signal:')
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],...
'Mask Translate','thld=@1;')
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],...
'Mask Help','The first input port is for signal. The second input port is for clocks pulse. The rising edge of the clock signal locks the signal from the first port and outputs the value until next clock pulse rising edge.')
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],...
'Mask Entries','.2\/')
% Finished composite block ['Hold and delay/Clock triggered',13,'hold buffer1'].
set_param([sys,'/',['Hold and delay/Clock triggered',13,'hold buffer1']],...
'position',[295,33,355,77])
add_block('built-in/Outport',[sys,'/','Hold and delay/out_1'])
set_param([sys,'/','Hold and delay/out_1'],...
'position',[390,45,410,65])
add_block('built-in/Memory',[sys,'/','Hold and delay/Memory1'])
set_param([sys,'/','Hold and delay/Memory1'],...
'position',[220,30,260,60])
add_line([sys,'/','Hold and delay'],[265,45;290,45])
add_line([sys,'/','Hold and delay'],[195,45;215,45])
add_line([sys,'/','Hold and delay'],[40,35;125,35])
add_line([sys,'/','Hold and delay'],[70,55;125,55])
add_line([sys,'/','Hold and delay'],[360,55;385,55])
add_line([sys,'/','Hold and delay'],[85,55;85,105;270,105;270,65;290,65])
% Finished composite block 'Hold and delay'.
set_param([sys,'/','Hold and delay'],...
'position',[460,54,515,96])
add_block('built-in/Sum',[sys,'/','Sum2'])
set_param([sys,'/','Sum2'],...
'position',[400,125,420,145])
% Subsystem ['Correlation',13,'MPSK demodu'].
new_system([sys,'/',['Correlation',13,'MPSK demodu']])
set_param([sys,'/',['Correlation',13,'MPSK demodu']],'Location',[4,407,852,667])
add_block('built-in/Switch',[sys,'/',['Correlation',13,'MPSK demodu/Switch1']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Switch1']],...
'Threshold','eps',...
'position',[360,14,390,46])
add_block('built-in/Inport',[sys,'/',['Correlation',13,'MPSK demodu/in_1']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/in_1']],...
'position',[440,35,460,55])
add_block('built-in/Product',[sys,'/',['Correlation',13,'MPSK demodu/Product']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Product']],...
'position',[540,36,565,69])
add_block('built-in/Reset Integrator',[sys,'/',['Correlation',13,'MPSK demodu/Reset',13,'integrator1']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Reset',13,'integrator1']],...
'position',[265,39,305,71])
add_block('built-in/S-Function',[sys,'/',['Correlation',13,'MPSK demodu/Array sin']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Array sin']],...
'function name','arraysin',...
'parameters','N',...
'position',[455,80,505,100])
add_block('built-in/Sum',[sys,'/',['Correlation',13,'MPSK demodu/Sum1']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Sum1']],...
'inputs','+++',...
'position',[415,72,435,108])
add_block('built-in/Constant',[sys,'/',['Correlation',13,'MPSK demodu/Shift key']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Shift key']],...
'Value','sft',...
'position',[355,78,375,102])
add_block('built-in/Constant',[sys,'/',['Correlation',13,'MPSK demodu/Initial phase']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Initial phase']],...
'Value','Ph',...
'position',[295,108,315,132])
% Subsystem ['Correlation',13,'MPSK demodu/Rising edge',13,'detector'].
new_system([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],'Location',[303,485,692,659])
add_block('built-in/Outport',[sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/out_1']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/out_1']],...
'position',[340,25,360,45])
add_block('built-in/Relational Operator',[sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/Relational',13,'Operator1']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/Relational',13,'Operator1']],...
'position',[200,88,230,112])
add_block('built-in/Relational Operator',[sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/Relational',13,'Operator2']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/Relational',13,'Operator2']],...
'Operator','>',...
'position',[265,23,295,47])
add_block('built-in/Constant',[sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/one1']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/one1']],...
'Value','thld',...
'position',[30,135,60,155])
add_block('built-in/Memory',[sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/Memory1']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/Memory1']],...
'position',[125,80,165,110])
add_block('built-in/Inport',[sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/in_1']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/in_1']],...
'position',[10,15,30,35])
add_block('built-in/Relational Operator',[sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/Relational',13,'Operator']])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector/Relational',13,'Operator']],...
'position',[135,18,165,42])
add_line([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],[65,145;100,145;100,35;130,35])
add_line([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],[35,25;130,25])
add_line([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],[45,25;45,95;120,95])
add_line([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],[170,95;195,95])
add_line([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],[100,145;180,145;180,105;195,105])
add_line([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],[170,30;260,30])
add_line([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],[235,100;240,100;240,40;260,40])
add_line([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],[300,35;335,35])
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],...
'Mask Display','Edge\ndetector',...
'Mask Type','Edge Detection',...
'Mask Dialogue','Rising edge detection:|Threshold:',...
'Mask Translate','thld=@1;')
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],...
'Mask Help','When the input signal rising edge passed the given shreshold, this block outputs one, otherwise outputs zero.',...
'Mask Entries','thld\/')
% Finished composite block ['Correlation',13,'MPSK demodu/Rising edge',13,'detector'].
set_param([sys,'/',['Correlation',13,'MPSK demodu/Rising edge',13,'detector']],...
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -