qpsnyqmf.m
上传用户:loeagle
上传日期:2013-03-02
资源大小:1236k
文件大小:144k
- function [ret,x0,str,ts,xts]=qpsnyqmf(t,x,u,flag);
- %QPSNYQMF is the M-file description of the SIMULINK system named QPSNYQMF.
- % The block-diagram can be displayed by typing: QPSNYQMF.
- %
- % SYS=QPSNYQMF(T,X,U,FLAG) returns depending on FLAG certain
- % system values given time point, T, current state vector, X,
- % and input vector, U.
- % FLAG is used to indicate the type of output to be returned in SYS.
- %
- % Setting FLAG=1 causes QPSNYQMF to return state derivatives, FLAG=2
- % discrete states, FLAG=3 system outputs and FLAG=4 next sample
- % time. For more information and other options see SFUNC.
- %
- % Calling QPSNYQMF with a FLAG of zero:
- % [SIZES]=QPSNYQMF([],[],[],0), returns a vector, SIZES, which
- % contains the sizes of the state vector and other parameters.
- % SIZES(1) number of states
- % SIZES(2) number of discrete states
- % SIZES(3) number of outputs
- % SIZES(4) number of inputs
- % SIZES(5) number of roots (currently unsupported)
- % SIZES(6) direct feedthrough flag
- % SIZES(7) number of sample times
- %
- % For the definition of other parameters in SIZES, see SFUNC.
- % See also, TRIM, LINMOD, LINSIM, EULER, RK23, RK45, ADAMS, GEAR.
- % Note: This M-file is only used for saving graphical information;
- % after the model is loaded into memory an internal model
- % representation is used.
- % the system will take on the name of this mfile:
- sys = mfilename;
- new_system(sys)
- simver(1.3)
- if (0 == (nargin + nargout))
- set_param(sys,'Location',[251,42,1260,320])
- open_system(sys)
- end;
- set_param(sys,'algorithm', 'RK-45')
- set_param(sys,'Start time', '0.0')
- set_param(sys,'Stop time', '999999')
- set_param(sys,'Min step size', '0.000001')
- set_param(sys,'Max step size', '10')
- set_param(sys,'Relative error','1e-6')
- set_param(sys,'Return vars', '')
- % Subsystem 'Empf鋘ger'.
- new_system([sys,'/','Empf鋘ger'])
- set_param([sys,'/','Empf鋘ger'],'Location',[251,42,1259,320])
- add_block('built-in/Product',[sys,'/','Empf鋘ger/Product'])
- set_param([sys,'/','Empf鋘ger/Product'],...
- 'hide name',0,...
- 'position',[300,74,330,101])
- add_block('built-in/Scope',[sys,'/','Empf鋘ger/x_eI(t)'])
- set_param([sys,'/','Empf鋘ger/x_eI(t)'],...
- 'orientation',3,...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[0,440,640,540],...
- 'position',[350,20,380,50])
- add_block('built-in/Fcn',[sys,'/','Empf鋘ger/Fcn'])
- set_param([sys,'/','Empf鋘ger/Fcn'],...
- 'hide name',0,...
- 'Expr','2*cos(4*pi*u)',...
- 'position',[185,119,265,141])
- add_block('built-in/Fcn',[sys,'/','Empf鋘ger/Fcn1'])
- set_param([sys,'/','Empf鋘ger/Fcn1'],...
- 'hide name',0,...
- 'Expr','-2*sin(4*pi*u)',...
- 'position',[185,159,265,181])
- add_block('built-in/Scope',[sys,'/','Empf鋘ger/x_eQ(t)'])
- set_param([sys,'/','Empf鋘ger/x_eQ(t)'],...
- 'orientation',3,...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[640,440,1280,540],...
- 'position',[350,155,380,185])
- add_block('built-in/Clock',[sys,'/','Empf鋘ger/Clock'])
- set_param([sys,'/','Empf鋘ger/Clock'],...
- 'hide name',0,...
- 'position',[145,140,165,160])
- add_block('built-in/Product',[sys,'/','Empf鋘ger/Product1'])
- set_param([sys,'/','Empf鋘ger/Product1'],...
- 'hide name',0,...
- 'position',[295,213,325,237])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/gest鰎tes',13,'QPSK-',13,'Signal']])
- set_param([sys,'/',['Empf鋘ger/gest鰎tes',13,'QPSK-',13,'Signal']],...
- 'position',[25,145,45,165])
- add_block('built-in/Scope',[sys,'/','Empf鋘ger/d_eI(t)'])
- set_param([sys,'/','Empf鋘ger/d_eI(t)'],...
- 'orientation',3,...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[0,540,640,640],...
- 'position',[540,20,570,50])
- add_block('built-in/Gain',[sys,'/','Empf鋘ger/Gain2'])
- set_param([sys,'/','Empf鋘ger/Gain2'],...
- 'hide name',0,...
- 'Gain','1/20',...
- 'position',[510,77,535,103])
- % Subsystem ['Empf鋘ger/Nyquist',13,'Filter'].
- new_system([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],'Location',[131,545,589,761])
- % Subsystem ['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse'].
- new_system([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],'Location',[541,520,939,745])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/in_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/in_1']],...
- 'position',[35,185,55,205])
- add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/Zero-Order',13,'Hold']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/Zero-Order',13,'Hold']],...
- 'Sample time','ts',...
- 'position',[205,84,240,116])
- add_block('built-in/Product',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/Product']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/Product']],...
- 'position',[155,90,180,110])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/out_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/out_1']],...
- 'position',[355,130,375,150])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/Constant']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/Constant']],...
- 'Value','x',...
- 'position',[210,155,230,175])
- add_block('built-in/Switch',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/Switch']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/Switch']],...
- 'Threshold','.5',...
- 'position',[295,124,320,156])
- % Subsystem ['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
- new_system([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],'Location',[419,521,808,713])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']],...
- 'position',[135,18,165,42])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']],...
- 'position',[10,15,30,35])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']],...
- 'Value','thld',...
- 'position',[30,135,60,155])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']],...
- 'Operator','>',...
- 'position',[265,23,295,47])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']],...
- 'position',[200,88,230,112])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']],...
- 'position',[340,25,360,45])
- add_block('built-in/Unit Delay',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']],...
- 'Sample time','ts',...
- 'position',[120,87,170,103])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[300,35;335,35])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[235,100;240,100;240,40;260,40])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[170,30;260,30])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[65,145;100,145;100,35;130,35])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[100,145;180,145;180,105;195,105])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[175,95;195,95])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[35,25;130,25])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[45,25;45,95;115,95])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Display','EdgenDetector',...
- 'Mask Type','Edge Detection')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Dialogue','Rising edge detection:|Threshold:|Sampling time:',...
- 'Mask Translate','thld=@1;ts=@2;')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'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,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Entries','thr/ts/')
- % Finished composite block ['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'position',[65,26,120,54])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/in_2']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse/in_2']],...
- 'Port','2',...
- 'position',[25,30,45,50])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],[245,100;260,100;260,130;290,130])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],[185,100;200,100])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],[60,195;280,195;290,150])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],[95,195;95,105;150,105])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],[325,140;350,140])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],[235,165;250,165;250,140;290,140])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],[125,40;130,40;130,95;150,95])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],[50,40;60,40])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],...
- 'Mask Display','1/sinc',...
- 'Mask Type','Impulse',...
- 'Mask Dialogue','1/sinc filter:|Holding time:|Threshold for clock pulse: ')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],...
- 'Mask Translate','ts=@1;thr=@2;x=thr>0;')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],...
- 'Mask Help','When the threshold is greater than zero, this block outputs an impulse signal, which begins at the raising edge of the second input and lasts the holding time. The impulse holds a constant amplitude, which equals the amplitude of the first input at the begining of the impulse. A clock raising edge will trigger next impulse. When the threshold is less or equal to zero, this block faithfully outputs the first input.')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],...
- 'Mask Entries','ts/x/')
- % Finished composite block ['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse'].
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Memory Impulse']],...
- 'position',[155,30,225,70])
- add_block('built-in/Filter',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Filter']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Filter']],...
- 'Numerator','num',...
- 'Denominator','den',...
- 'Sample time','ts',...
- 'position',[255,31,310,69])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/out_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/out_1']],...
- 'position',[330,40,350,60])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/in_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/in_1']],...
- 'position',[35,30,55,50])
- % Subsystem ['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1'].
- new_system([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1']],'Location',[55,192,283,286])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1/Outport']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1/Outport']],...
- 'position',[160,35,180,55])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1/S-function1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1/S-function1']],...
- 'function name','homopuls',...
- 'parameters','samp_time, out_divid, offset',...
- 'position',[40,31,105,59])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1']],[110,45;155,45])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1']],...
- 'Mask Display','VectornPulse',...
- 'Mask Type','Pulse generator')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1']],...
- 'Mask Dialogue','Vector pulses with sample rate of each pulse as Sample_time ./Divider. |Sample time (scalar, sec):|Divider (integer vector):|Offset (have same dimension as Divider:')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1']],...
- 'Mask Translate','samp_time=@1;out_divid=@2;offset=@3;')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1']],...
- 'Mask Help','This block generator a vector pulses. The output length is the same as the vector defined in "Divider". The ith element of the output has the sample time Sample_time/Divider(i). All elements in "Divider" must be integers.')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1']],...
- 'Mask Entries','td/1/off/')
- % Finished composite block ['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1'].
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter/Pulses deivide',13,'same sample time1']],...
- 'position',[35,71,95,109])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],[100,90;115,90;115,60;150,60])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],[230,50;250,50])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],[60,40;150,40])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],[315,50;325,50])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],...
- 'Mask Display','R-Cnfilter',...
- 'Mask Type','R-C filter')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],...
- 'Mask Dialogue','Design a raised cosine filter and use it to filter the input signal.|Symbol interval (sec):|Computation sampling time (sec):|Filter rolloff factor:|Delay step (integer to multiply symbol interval):|Filter type (FIR or IIR) / (Normal or Sqrt):|With or without sinc filter (1 or 0, suggest 1):')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],...
- 'Mask Translate','td=@1;if length(td)>1,off=td(2);td=td(1);else,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;')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],...
- 'Mask Help','This block designs a raised cosine filter using the specified parameter. The filter is used to filter the input signal. You can optionally use the sinc filter in the filtering computation.')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],...
- 'Mask Entries','1/.05/.5/6/''FIR''/0/')
- % Finished composite block ['Empf鋘ger/Nyquist',13,'Filter'].
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter']],...
- 'position',[410,68,490,112])
- add_block('built-in/Gain',[sys,'/','Empf鋘ger/Gain1'])
- set_param([sys,'/','Empf鋘ger/Gain1'],...
- 'hide name',0,...
- 'Gain','1/20',...
- 'position',[510,212,535,238])
- add_block('built-in/Scope',[sys,'/','Empf鋘ger/d_eQ(t)'])
- set_param([sys,'/','Empf鋘ger/d_eQ(t)'],...
- 'orientation',3,...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[640,540,1280,640],...
- 'position',[540,155,570,185])
- % Subsystem ['Empf鋘ger/Nyquist',13,'Filter_'].
- new_system([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],'Location',[131,545,589,761])
- % Subsystem ['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1'].
- new_system([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1']],'Location',[55,192,283,286])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1/S-function1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1/S-function1']],...
- 'function name','homopuls',...
- 'parameters','samp_time, out_divid, offset',...
- 'position',[40,31,105,59])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1/Outport']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1/Outport']],...
- 'position',[160,35,180,55])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1']],[110,45;155,45])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1']],...
- 'Mask Display','VectornPulse',...
- 'Mask Type','Pulse generator')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1']],...
- 'Mask Dialogue','Vector pulses with sample rate of each pulse as Sample_time ./Divider. |Sample time (scalar, sec):|Divider (integer vector):|Offset (have same dimension as Divider:')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1']],...
- 'Mask Translate','samp_time=@1;out_divid=@2;offset=@3;')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1']],...
- 'Mask Help','This block generator a vector pulses. The output length is the same as the vector defined in "Divider". The ith element of the output has the sample time Sample_time/Divider(i). All elements in "Divider" must be integers.')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1']],...
- 'Mask Entries','td/1/off/')
- % Finished composite block ['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1'].
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Pulses deivide',13,'same sample time1']],...
- 'position',[35,71,95,109])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/in_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/in_1']],...
- 'position',[35,30,55,50])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/out_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/out_1']],...
- 'position',[330,40,350,60])
- add_block('built-in/Filter',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Filter']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Filter']],...
- 'Numerator','num',...
- 'Denominator','den',...
- 'Sample time','ts',...
- 'position',[255,31,310,69])
- % Subsystem ['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse'].
- new_system([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],'Location',[541,520,939,745])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/in_2']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/in_2']],...
- 'Port','2',...
- 'position',[25,30,45,50])
- % Subsystem ['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
- new_system([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],'Location',[419,521,808,713])
- add_block('built-in/Unit Delay',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']],...
- 'Sample time','ts',...
- 'position',[120,87,170,103])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']],...
- 'position',[340,25,360,45])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']],...
- 'position',[200,88,230,112])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']],...
- 'Operator','>',...
- 'position',[265,23,295,47])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']],...
- 'Value','thld',...
- 'position',[30,135,60,155])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']],...
- 'position',[10,15,30,35])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']],...
- 'position',[135,18,165,42])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[35,25;130,25])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[45,25;45,95;115,95])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[175,95;195,95])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[65,145;100,145;100,35;130,35])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[100,145;180,145;180,105;195,105])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[170,30;260,30])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[235,100;240,100;240,40;260,40])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[300,35;335,35])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Display','EdgenDetector',...
- 'Mask Type','Edge Detection')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Dialogue','Rising edge detection:|Threshold:|Sampling time:',...
- 'Mask Translate','thld=@1;ts=@2;')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'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,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Entries','thr/ts/')
- % Finished composite block ['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'position',[65,26,120,54])
- add_block('built-in/Switch',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/Switch']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/Switch']],...
- 'Threshold','.5',...
- 'position',[295,124,320,156])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/Constant']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/Constant']],...
- 'Value','x',...
- 'position',[210,155,230,175])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/out_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/out_1']],...
- 'position',[355,130,375,150])
- add_block('built-in/Product',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/Product']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/Product']],...
- 'position',[155,90,180,110])
- add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/Zero-Order',13,'Hold']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/Zero-Order',13,'Hold']],...
- 'Sample time','ts',...
- 'position',[205,84,240,116])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/in_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse/in_1']],...
- 'position',[35,185,55,205])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],[50,40;60,40])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],[125,40;130,40;130,95;150,95])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],[235,165;250,165;250,140;290,140])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],[325,140;350,140])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],[60,195;280,195;290,150])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],[95,195;95,105;150,105])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],[185,100;200,100])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],[245,100;260,100;260,130;290,130])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],...
- 'Mask Display','1/sinc',...
- 'Mask Type','Impulse',...
- 'Mask Dialogue','1/sinc filter:|Holding time:|Threshold for clock pulse: ')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],...
- 'Mask Translate','ts=@1;thr=@2;x=thr>0;')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],...
- 'Mask Help','When the threshold is greater than zero, this block outputs an impulse signal, which begins at the raising edge of the second input and lasts the holding time. The impulse holds a constant amplitude, which equals the amplitude of the first input at the begining of the impulse. A clock raising edge will trigger next impulse. When the threshold is less or equal to zero, this block faithfully outputs the first input.')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],...
- 'Mask Entries','ts/x/')
- % Finished composite block ['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse'].
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_/Memory Impulse']],...
- 'position',[155,30,225,70])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],[315,50;325,50])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],[60,40;150,40])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],[230,50;250,50])
- add_line([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],[100,90;115,90;115,60;150,60])
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],...
- 'Mask Display','R-Cnfilter',...
- 'Mask Type','R-C filter')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],...
- 'Mask Dialogue','Design a raised cosine filter and use it to filter the input signal.|Symbol interval (sec):|Computation sampling time (sec):|Filter rolloff factor:|Delay step (integer to multiply symbol interval):|Filter type (FIR or IIR) / (Normal or Sqrt):|With or without sinc filter (1 or 0, suggest 1):')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],...
- 'Mask Translate','td=@1;if length(td)>1,off=td(2);td=td(1);else,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;')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],...
- 'Mask Help','This block designs a raised cosine filter using the specified parameter. The filter is used to filter the input signal. You can optionally use the sinc filter in the filtering computation.')
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],...
- 'Mask Entries','1/.05/.5/6/''FIR''/0/')
- % Finished composite block ['Empf鋘ger/Nyquist',13,'Filter_'].
- set_param([sys,'/',['Empf鋘ger/Nyquist',13,'Filter_']],...
- 'position',[410,203,490,247])
- % Subsystem ['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)'].
- new_system([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],'Location',[96,182,645,417])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/imag_pt']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/imag_pt']],...
- 'BackGround',5,...
- 'Value','y2',...
- 'position',[165,169,190,191])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/real_pt']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/real_pt']],...
- 'BackGround',3,...
- 'Value','y1',...
- 'position',[170,84,195,106])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/out_1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/out_1']],...
- 'position',[495,85,515,105])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Minimum1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Minimum1']],...
- 'function name','arymimai',...
- 'parameters','''min''',...
- 'position',[415,85,475,105])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum2']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum2']],...
- 'position',[370,78,390,107])
- add_block('built-in/Product',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Product1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Product1']],...
- 'position',[300,130,325,150])
- add_block('built-in/Product',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Product']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Product']],...
- 'position',[300,45,325,65])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum6']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum6']],...
- 'ForeGround',4,...
- 'inputs','+-',...
- 'position',[230,123,250,152])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Sum1']],...
- 'ForeGround',2,...
- 'inputs','+-',...
- 'position',[230,38,250,67])
- add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Zero-Order',13,'Hold1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Zero-Order',13,'Hold1']],...
- 'ForeGround',4,...
- 'Sample time','td',...
- 'position',[120,114,155,146])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/imag']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/imag']],...
- 'Port','2',...
- 'position',[45,120,65,140])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/real']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/real']],...
- 'position',[45,35,65,55])
- add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Zero-Order',13,'Hold']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)/Zero-Order',13,'Hold']],...
- 'ForeGround',2,...
- 'Sample time','td',...
- 'position',[120,29,155,61])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[480,95;490,95])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[395,95;410,95])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[330,140;340,140;340,100;365,100])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[330,55;340,55;340,85;365,85])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[255,140;270,140;270,135;295,135])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[270,140;270,145;295,145])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[255,55;270,55;270,50;295,50])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[270,55;270,60;295,60])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[195,180;205,180;205,145;225,145])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[160,130;225,130])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[160,45;225,45])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[200,95;205,95;205,60;225,60])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[70,130;115,130])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],[70,45;115,45])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
- 'Mask Display','QASKnC-demap',...
- 'Mask Type','QASK C-demap')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
- 'Mask Dialogue','Reverse the QASK map. Input in-phasenand quadrature components from thentwo inputs. Output demapped signal.|Number of symbols on each circle NIC::|Radii for each circle RIC:|Phase shift on each circle PIC (rad):|Symbol interval and offset (sec):')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
- 'Mask Translate','N=@1;A=@2;P=@3;td=@4;y1=apkconst(N,A,P);y2=imag(y1);y1=real(y1);')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
- 'Mask Help','This block demaps a QASK mapped signal using circle constellation. You can place this block after a QAM demodulation block. The circle constellation is defined in NIC, RIC, and PIC. The symbol interval can be a two elements vector with the first element being offset. The default offset is zero. Use function MODMAP to view the constellation.')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
- 'Mask Entries','[4]/[sqrt(2)]/[pi/4]/1/')
- % Finished composite block ['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)'].
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung',13,'(Symbolentscheider)']],...
- 'position',[800,128,880,172])
- add_block('built-in/Scope',[sys,'/','Empf鋘ger/r(t)'])
- set_param([sys,'/','Empf鋘ger/r(t)'],...
- 'orientation',3,...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[320,340,960,440],...
- 'position',[60,70,90,100])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/empfangenes',13,'Symbol']])
- set_param([sys,'/',['Empf鋘ger/empfangenes',13,'Symbol']],...
- 'position',[950,140,970,160])
- % Subsystem 'Empf鋘ger/Doppelklick4'.
- new_system([sys,'/','Empf鋘ger/Doppelklick4'])
- set_param([sys,'/','Empf鋘ger/Doppelklick4'],'Location',[136,230,381,439])
- set_param([sys,'/','Empf鋘ger/Doppelklick4'],...
- 'Mask Display','Schlie遝 Empf鋘ger',...
- 'Mask Type','schlie遝n',...
- 'Mask Dialogue','eval(''closempf'')')
- % Finished composite block 'Empf鋘ger/Doppelklick4'.
- set_param([sys,'/','Empf鋘ger/Doppelklick4'],...
- 'BackGround',7,...
- 'hide name',0,...
- 'Font Angle','italic',...
- 'position',[815,20,950,46])
- add_block('built-in/Scope',[sys,'/','Empf鋘ger/v(t)'])
- set_param([sys,'/','Empf鋘ger/v(t)'],...
- 'orientation',3,...
- 'Vgain','3.000000',...
- 'Hgain','25.000000',...
- 'Vmax','6.000000',...
- 'Hmax','50.000000',...
- 'Window',[320,740,960,840],...
- 'position',[895,70,925,100])
- % Subsystem 'Empf鋘ger/Diagramme'.
- new_system([sys,'/','Empf鋘ger/Diagramme'])
- set_param([sys,'/','Empf鋘ger/Diagramme'],'Location',[669,447,1065,724])
- % Subsystem 'Empf鋘ger/Diagramme/Auge Quadratur'.
- new_system([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur'],'Location',[121,409,416,595])
- add_block('built-in/S-Function',[sys,'/','Empf鋘ger/Diagramme/Auge Quadratur/Plot1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur/Plot1'],...
- 'function name','eyesampl',...
- 'parameters','time_range, boundary, kept_length, eye_line, scatter_line, two_d_line',...
- 'position',[130,70,200,110])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Diagramme/Auge Quadratur/in_1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur/in_1'],...
- 'position',[75,80,95,100])
- add_line([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur'],[100,90;125,90])
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur'],...
- 'Mask Display','plot(0,0,100,100,x,y);',...
- 'Mask Type','Eye-diagram/scatter plot')
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur'],...
- 'Mask Dialogue','Produce eye-pattern diagram and/or scatter plot.|[Symbol interval, plot offset, decision point offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for no plot):|Plot update sample time:')
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur'],...
- 'Mask Translate','time_range=@1;boundary=@2;kept_length=@3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);')
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur'],...
- 'Mask Help','This plot opens one, or two plots by assigning the line type parameters. The scatter plot point is selected by the decision point in the first parameter entry. A decision line is drawn in the eye-pattern diagram. The plot is updated at the plot update sample time point.')
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur'],...
- 'Mask Entries','[2 0 1+offset]/[-1.5 1.5]/0/''w-/r-''/0/2/anzahl/')
- % Finished composite block 'Empf鋘ger/Diagramme/Auge Quadratur'.
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Quadratur'],...
- 'position',[305,77,360,113])
- % Subsystem 'Empf鋘ger/Diagramme/Auge Inphase'.
- new_system([sys,'/','Empf鋘ger/Diagramme/Auge Inphase'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Inphase'],'Location',[121,409,416,595])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Diagramme/Auge Inphase/in_1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Inphase/in_1'],...
- 'position',[75,80,95,100])
- add_block('built-in/S-Function',[sys,'/','Empf鋘ger/Diagramme/Auge Inphase/Plot1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Inphase/Plot1'],...
- 'function name','eyesampl',...
- 'parameters','time_range, boundary, kept_length, eye_line, scatter_line, two_d_line',...
- 'position',[130,70,200,110])
- add_line([sys,'/','Empf鋘ger/Diagramme/Auge Inphase'],[100,90;125,90])
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Inphase'],...
- 'Mask Display','plot(0,0,100,100,x,y);',...
- 'Mask Type','Eye-diagram/scatter plot')
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Inphase'],...
- 'Mask Dialogue','Produce eye-pattern diagram and/or scatter plot.|[Symbol interval, plot offset, decision point offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for no plot):|Plot update sample time:')
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Inphase'],...
- 'Mask Translate','time_range=@1;boundary=@2;kept_length=@3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);')
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Inphase'],...
- 'Mask Help','This plot opens one, or two plots by assigning the line type parameters. The scatter plot point is selected by the decision point in the first parameter entry. A decision line is drawn in the eye-pattern diagram. The plot is updated at the plot update sample time point.')
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Inphase'],...
- 'Mask Entries','[2 0 1+offset]/[-1.5 1.5]/0/''w-/r-''/0/2/anzahl/')
- % Finished composite block 'Empf鋘ger/Diagramme/Auge Inphase'.
- set_param([sys,'/','Empf鋘ger/Diagramme/Auge Inphase'],...
- 'position',[305,22,360,58])
- add_block('built-in/Mux',[sys,'/','Empf鋘ger/Diagramme/Mux'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Mux'],...
- 'inputs','2',...
- 'position',[230,21,265,54])
- add_block('built-in/Mux',[sys,'/','Empf鋘ger/Diagramme/Mux1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Mux1'],...
- 'inputs','2',...
- 'position',[230,76,265,109])
- add_block('built-in/Constant',[sys,'/','Empf鋘ger/Diagramme/Constant'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Constant'],...
- 'orientation',3,...
- 'hide name',0,...
- 'Value','Inf',...
- 'position',[90,125,110,145])
- add_block('built-in/Constant',[sys,'/','Empf鋘ger/Diagramme/Constant0'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Constant0'],...
- 'orientation',3,...
- 'hide name',0,...
- 'Value','0',...
- 'position',[190,125,210,145])
- % Subsystem 'Empf鋘ger/Diagramme/Trajektorie'.
- new_system([sys,'/','Empf鋘ger/Diagramme/Trajektorie'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],'Location',[165,242,460,428])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Diagramme/Trajektorie/in_1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie/in_1'],...
- 'position',[15,55,35,75])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Diagramme/Trajektorie/in_2'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie/in_2'],...
- 'Port','2',...
- 'position',[20,115,40,135])
- add_block('built-in/Mux',[sys,'/','Empf鋘ger/Diagramme/Trajektorie/Mux'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie/Mux'],...
- 'inputs','2',...
- 'position',[65,70,100,105])
- add_block('built-in/S-Function',[sys,'/','Empf鋘ger/Diagramme/Trajektorie/Plot1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie/Plot1'],...
- 'function name','eyediasi',...
- 'parameters','time_range, boundary, kept_length, eye_line, scatter_line, two_d_line',...
- 'position',[130,70,200,110])
- add_line([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],[40,65;45,65;45,80;60,80])
- add_line([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],[45,125;50,125;60,95])
- add_line([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],[105,90;125,90])
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],...
- 'Mask Display','plot(0,0,100,100,x,y,v,w);',...
- 'Mask Type','Eye-diagram/scatter plot')
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],...
- 'Mask Dialogue','Produce eye-pattern diagram/scatternplot/x-y plot with the rising edge of the second input as the decision line.|Eye-pattern plot time frame:|Lower and upper bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for no plot):|Line-type for x-y plot (0 for no plot):')
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],...
- 'Mask Translate','time_range=@1;boundary=@2;kept_length=@3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);[v,w]=trigicon(0,25,get_param(gcb,''orientation''),2);')
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],...
- 'Mask Help','This plot opens one, two, or three plots by assigning the line type parameters. The scatter plot point is selected by the rising edge of a trigger signal. A decision line is drawn at the rising edge of the trigger signal.')
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],...
- 'Mask Entries','[2 0 1]/[-1.5 1.5]/0/0/0/''g-''/')
- % Finished composite block 'Empf鋘ger/Diagramme/Trajektorie'.
- set_param([sys,'/','Empf鋘ger/Diagramme/Trajektorie'],...
- 'position',[305,155,360,190])
- add_block('built-in/Mux',[sys,'/','Empf鋘ger/Diagramme/Mux2'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Mux2'],...
- 'inputs','2',...
- 'position',[230,146,265,179])
- add_block('built-in/Mux',[sys,'/','Empf鋘ger/Diagramme/Mux3'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Mux3'],...
- 'inputs','2',...
- 'position',[230,211,265,244])
- % Subsystem 'Empf鋘ger/Diagramme/Signalraumpunkte'.
- new_system([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte'],'Location',[165,242,460,428])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte/in_1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte/in_1'],...
- 'position',[75,80,95,100])
- add_block('built-in/S-Function',[sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte/Plot1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte/Plot1'],...
- 'function name','eyesampl',...
- 'parameters','time_range, boundary, kept_length, eye_line, scatter_line, two_d_line',...
- 'position',[130,70,200,110])
- add_line([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte'],[100,90;125,90])
- set_param([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte'],...
- 'Mask Display','plot(0,0,100,100,x,y);',...
- 'Mask Type','Eye-diagram/scatter plot')
- set_param([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte'],...
- 'Mask Dialogue','Produce eye-pattern diagram and/or scatter plot.|[Symbol interval, plot offset, decision point offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for no plot):|Plot update sample time:')
- set_param([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte'],...
- 'Mask Translate','time_range=@1;boundary=@2;kept_length=@3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);')
- set_param([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte'],...
- 'Mask Help','This plot opens one, or two plots by assigning the line type parameters. The scatter plot point is selected by the decision point in the first parameter entry. A decision line is drawn in the eye-pattern diagram. The plot is updated at the plot update sample time point.')
- set_param([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte'],...
- 'Mask Entries','[1 .5 .999]/[-1.5 1.5]/0/0/''y.''/[.5 offset]/')
- % Finished composite block 'Empf鋘ger/Diagramme/Signalraumpunkte'.
- set_param([sys,'/','Empf鋘ger/Diagramme/Signalraumpunkte'],...
- 'position',[305,213,360,247])
- add_block('built-in/Step Fcn',[sys,'/','Empf鋘ger/Diagramme/Step input'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Step input'],...
- 'Time','starttime',...
- 'position',[30,125,50,145])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Diagramme/Quadratur'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Quadratur'],...
- 'Port','2',...
- 'position',[30,80,50,100])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Diagramme/Inphase'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Inphase'],...
- 'position',[30,25,50,45])
- add_block('built-in/Switch',[sys,'/','Empf鋘ger/Diagramme/Switch1'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Switch1'],...
- 'Threshold','1',...
- 'position',[130,84,155,116])
- add_block('built-in/Switch',[sys,'/','Empf鋘ger/Diagramme/Switch'])
- set_param([sys,'/','Empf鋘ger/Diagramme/Switch'],...
- 'Threshold','1',...
- 'position',[130,29,155,61])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[160,45;170,45;170,220;225,220])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[170,45;225,45])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[160,100;180,100;180,235;225,235])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[180,100;225,100])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[200,120;200,85;225,85])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[200,85;200,30;225,30])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[180,170;225,170])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[170,155;225,155])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[55,90;125,90])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[55,35;125,35])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[55,135;75,135;75,45;125,45])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[75,100;125,100])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[100,120;100,55;125,55])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[100,110;125,110])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[270,95;300,95])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[270,40;300,40])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[270,230;300,230])
- add_line([sys,'/','Empf鋘ger/Diagramme'],[270,165;300,165])
- set_param([sys,'/','Empf鋘ger/Diagramme'],...
- 'Mask Display','plot(0,0,100,100,x,y)',...
- 'Mask Type','2D-Diagramme')
- set_param([sys,'/','Empf鋘ger/Diagramme'],...
- 'Mask Dialogue','Augendiagramm, Trajektorie undnSignalraumpunkte.|Startzeit f黵 Plot:|Abtastwerte pro Zeitfenster (2*TS):|Offset der Entscheiderlinie zur Mitte:')
- set_param([sys,'/','Empf鋘ger/Diagramme'],...
- 'Mask Translate','starttime = @1; anzahl = @2; offset = @3; [x, y] = srcsicon(10);')
- set_param([sys,'/','Empf鋘ger/Diagramme'],...
- 'Mask Help','Dieser Block stellt die Augendiagramme, Trajektorien,nund Signalraumpunkte auf der Sende- oder Empfangsseite dar',...
- 'Mask Entries','12/40/0/')
- % Finished composite block 'Empf鋘ger/Diagramme'.
- set_param([sys,'/','Empf鋘ger/Diagramme'],...
- 'position',[680,10,735,50])
- add_block('built-in/Scope',[sys,'/','Empf鋘ger/v_eI(t)'])
- set_param([sys,'/','Empf鋘ger/v_eI(t)'],...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[0,640,640,740],...
- 'position',[805,75,835,105])
- add_block('built-in/Scope',[sys,'/','Empf鋘ger/v_eQ(t)'])
- set_param([sys,'/','Empf鋘ger/v_eQ(t)'],...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[640,640,1280,740],...
- 'position',[805,220,835,250])
- % Subsystem ['Empf鋘ger/Schwellenwert-',13,'Entscheider'].
- new_system([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],'Location',[159,417,467,586])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/out_1']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/out_1']],...
- 'position',[265,70,285,90])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/in_1']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/in_1']],...
- 'position',[35,30,55,50])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Relational',13,'Operator']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Relational',13,'Operator']],...
- 'Operator','>',...
- 'position',[140,32,170,63])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Sum']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Sum']],...
- 'inputs','+-',...
- 'position',[215,64,235,91])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Relational',13,'Operator1']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Relational',13,'Operator1']],...
- 'Operator','<',...
- 'position',[140,92,170,123])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Constant']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider/Constant']],...
- 'Value','0',...
- 'position',[65,105,85,125])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[60,40;135,40])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[95,40;95,100;135,100])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[90,115;135,115])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[110,115;110,55;135,55])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[175,110;185,110;185,85;210,85])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[175,50;185,50;185,70;210,70])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],[240,80;260,80])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],...
- 'Mask Display','plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-50,50],[-40,0],[-30,-30],[0,40],[30,30])',...
- 'Mask Type','Sign',...
- 'Mask Dialogue','y = sign(x)')
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],...
- 'Mask Help','Sign Function:nttty = 1 if x > 0nttty = 0 if x = 0nttty = -1 if x < 0')
- % Finished composite block ['Empf鋘ger/Schwellenwert-',13,'Entscheider'].
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider']],...
- 'position',[695,77,725,103])
- % Subsystem ['Empf鋘ger/Schwellenwert-',13,'Entscheider_'].
- new_system([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],'Location',[159,417,467,586])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/Constant']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/Constant']],...
- 'Value','0',...
- 'position',[65,105,85,125])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/Relational',13,'Operator1']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/Relational',13,'Operator1']],...
- 'Operator','<',...
- 'position',[140,92,170,123])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/Sum']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/Sum']],...
- 'inputs','+-',...
- 'position',[215,64,235,91])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/Relational',13,'Operator']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/Relational',13,'Operator']],...
- 'Operator','>',...
- 'position',[140,32,170,63])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/in_1']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/in_1']],...
- 'position',[35,30,55,50])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/out_1']])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_/out_1']],...
- 'position',[265,70,285,90])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],[240,80;260,80])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],[175,50;185,50;185,70;210,70])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],[175,110;185,110;185,85;210,85])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],[90,115;135,115])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],[110,115;110,55;135,55])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],[60,40;135,40])
- add_line([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],[95,40;95,100;135,100])
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],...
- 'Mask Display','plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-50,50],[-40,0],[-30,-30],[0,40],[30,30])',...
- 'Mask Type','Sign',...
- 'Mask Dialogue','y = sign(x)')
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],...
- 'Mask Help','Sign Function:nttty = 1 if x > 0nttty = 0 if x = 0nttty = -1 if x < 0')
- % Finished composite block ['Empf鋘ger/Schwellenwert-',13,'Entscheider_'].
- set_param([sys,'/',['Empf鋘ger/Schwellenwert-',13,'Entscheider_']],...
- 'position',[695,212,725,238])
- % Subsystem 'Empf鋘ger/Doppelklick5'.
- new_system([sys,'/','Empf鋘ger/Doppelklick5'])
- set_param([sys,'/','Empf鋘ger/Doppelklick5'],'Location',[136,230,381,439])
- set_param([sys,'/','Empf鋘ger/Doppelklick5'],...
- 'Mask Display','Rauschen einstellen',...
- 'Mask Type','rauschen',...
- 'Mask Dialogue','eval(''setnoise'')')
- % Finished composite block 'Empf鋘ger/Doppelklick5'.
- set_param([sys,'/','Empf鋘ger/Doppelklick5'],...
- 'BackGround',7,...
- 'hide name',0,...
- 'Font Angle','italic',...
- 'position',[10,240,145,266])
- add_line([sys,'/','Empf鋘ger'],[170,150;180,130])
- add_line([sys,'/','Empf鋘ger'],[335,90;405,90])
- add_line([sys,'/','Empf鋘ger'],[330,225;405,225])
- add_line([sys,'/','Empf鋘ger'],[365,90;365,55])
- add_line([sys,'/','Empf鋘ger'],[50,155;75,155;75,105])
- add_line([sys,'/','Empf鋘ger'],[170,150;180,170])
- add_line([sys,'/','Empf鋘ger'],[270,170;280,170;290,220])
- add_line([sys,'/','Empf鋘ger'],[270,130;280,130;280,95;295,95])
- add_line([sys,'/','Empf鋘ger'],[365,225;365,190])
- add_line([sys,'/','Empf鋘ger'],[75,155;120,155;120,80;295,80])
- add_line([sys,'/','Empf鋘ger'],[120,155;120,230;290,230])
- add_line([sys,'/','Empf鋘ger'],[495,90;505,90])
- add_line([sys,'/','Empf鋘ger'],[495,225;505,225])
- add_line([sys,'/','Empf鋘ger'],[540,90;555,90;555,55])
- add_line([sys,'/','Empf鋘ger'],[540,225;555,225;555,190])
- add_line([sys,'/','Empf鋘ger'],[885,150;945,150])
- add_line([sys,'/','Empf鋘ger'],[540,225;655,225;655,40;675,40])
- add_line([sys,'/','Empf鋘ger'],[540,90;625,90;625,20;675,20])
- add_line([sys,'/','Empf鋘ger'],[910,150;910,105])
- add_line([sys,'/','Empf鋘ger'],[625,90;690,90])
- add_line([sys,'/','Empf鋘ger'],[730,90;765,90;765,140;795,140])
- add_line([sys,'/','Empf鋘ger'],[655,225;690,225])
- add_line([sys,'/','Empf鋘ger'],[730,225;765,225;765,160;795,160])
- add_line([sys,'/','Empf鋘ger'],[765,225;765,235;800,235])
- add_line([sys,'/','Empf鋘ger'],[765,90;800,90])
- % Finished composite block 'Empf鋘ger'.
- set_param([sys,'/','Empf鋘ger'],...
- 'position',[650,62,725,148])
- add_block('built-in/Scope',[sys,'/',['gesendetes',13,'Symbol']])
- set_param([sys,'/',['gesendetes',13,'Symbol']],...
- 'orientation',1,...
- 'move name',0,...
- 'Vgain','3.000000',...
- 'Hgain','25.000000',...
- 'Vmax','6.000000',...
- 'Hmax','50.000000',...
- 'Window',[360,440,1280,540])
- open_system([sys,'/',['gesendetes',13,'Symbol']])
- set_param([sys,'/',['gesendetes',13,'Symbol']],...
- 'position',[320,220,350,250])
- % Subsystem 'Kanal'.
- new_system([sys,'/','Kanal'])
- set_param([sys,'/','Kanal'],'Location',[11,262,273,408])
- % Subsystem ['Kanal/Gaussian noise',13,'generator'].
- new_system([sys,'/',['Kanal/Gaussian noise',13,'generator']])
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator']],'Location',[22,119,370,243])
- add_block('built-in/Outport',[sys,'/',['Kanal/Gaussian noise',13,'generator/out_1']])
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator/out_1']],...
- 'position',[285,60,305,80])
- add_block('built-in/Sum',[sys,'/',['Kanal/Gaussian noise',13,'generator/Sum']])
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator/Sum']],...
- 'position',[220,60,240,80])
- add_block('built-in/Constant',[sys,'/',['Kanal/Gaussian noise',13,'generator/Constant']])
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator/Constant']],...
- 'Value','m',...
- 'position',[140,20,160,40])
- add_block('built-in/White Noise',[sys,'/',['Kanal/Gaussian noise',13,'generator/Random',13,'Number']])
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator/Random',13,'Number']],...
- 'Seed','s',...
- 'position',[35,57,80,93])
- add_block('built-in/State-Space',[sys,'/',['Kanal/Gaussian noise',13,'generator/Matrix',13,'Gain']])
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator/Matrix',13,'Gain']],...
- 'A','[]',...
- 'B','[]',...
- 'C','[]',...
- 'D','K',...
- 'Mask Display','K',...
- 'Mask Type','Matrix Gain',...
- 'Mask Dialogue','Matrix Gain.|Gain matrix:')
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator/Matrix',13,'Gain']],...
- 'Mask Translate','K = @1;',...
- 'Mask Help','Multiplies input vector by entered matrix to produce output vector (y=Au).',...
- 'Mask Entries','d/')
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator/Matrix',13,'Gain']],...
- 'position',[140,61,165,89])
- add_line([sys,'/',['Kanal/Gaussian noise',13,'generator']],[85,75;135,75])
- add_line([sys,'/',['Kanal/Gaussian noise',13,'generator']],[170,75;215,75])
- add_line([sys,'/',['Kanal/Gaussian noise',13,'generator']],[245,70;280,70])
- add_line([sys,'/',['Kanal/Gaussian noise',13,'generator']],[165,30;190,30;190,65;215,65])
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator']],...
- 'Mask Display','plot(0,0,100,100,x,y);Gaussian',...
- 'Mask Type','Gaussian noise generator')
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator']],...
- 'Mask Dialogue','Generate Gaussian distributed noise withngiven mean and variance value.|Mean value:|Variance (vector or matrix):|Initial seed:')
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator']],...
- 'Mask Translate','m=@1;d=@2;s=@3;[m,d,s]=gwnoise(m,d,s);[x,y]=srcsicon(3);')
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator']],...
- 'Mask Help','When the mean value and seed are vectors, the output of this block is a vector. The length of the vector is the same as the length of the mean value vector or the length of the seed. When the variance entry is a vector, the variance is a diagonal matrix.')
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator']],...
- 'Mask Entries','m/d/s/')
- % Finished composite block ['Kanal/Gaussian noise',13,'generator'].
- set_param([sys,'/',['Kanal/Gaussian noise',13,'generator']],...
- 'position',[25,48,105,92])
- add_block('built-in/Sum',[sys,'/','Kanal/Sum'])
- set_param([sys,'/','Kanal/Sum'],...
- 'position',[150,55,170,75])
- add_block('built-in/Outport',[sys,'/','Kanal/out_1'])
- set_param([sys,'/','Kanal/out_1'],...
- 'position',[200,55,220,75])
- add_block('built-in/Inport',[sys,'/','Kanal/in_1'])
- set_param([sys,'/','Kanal/in_1'],...
- 'position',[45,10,65,30])
- add_line([sys,'/','Kanal'],[110,70;145,70])
- add_line([sys,'/','Kanal'],[70,20;115,20;115,60;145,60])
- add_line([sys,'/','Kanal'],[175,65;195,65])
- set_param([sys,'/','Kanal'],...
- 'Mask Display','plot(0,0,100,100,x,y);AWGN',...
- 'Mask Type','AWGN channel, fixed parameter')
- set_param([sys,'/','Kanal'],...
- 'Mask Dialogue','Additive white Gaussian noise channelnwith fixed mean and variance.|Mean value:|Variance (std^2):|Initial Seed:',...
- 'Mask Translate','m=@1;d=@2;s=@3;[m,d,s]=gwnoise(m,d,s);[x,y]=chanicon;')
- set_param([sys,'/','Kanal'],...
- 'Mask Help','This block adds white Gaussian noise to the input signal. The mean and the variance can be a scalar or vector with the same length as the input signal.',...
- 'Mask Entries','0/.001/12345/')
- % Finished composite block 'Kanal'.
- set_param([sys,'/','Kanal'],...
- 'position',[465,83,545,127])
- % Subsystem 'Error rate'.
- new_system([sys,'/','Error rate'])
- set_param([sys,'/','Error rate'],'Location',[255,368,509,510])
- add_block('built-in/S-Function',[sys,'/','Error rate/S-function'])
- set_param([sys,'/','Error rate/S-function'],...
- 'function name','sbiterr',...
- 'parameters','num_lin, K, TDelay, Sample',...
- 'position',[130,52,195,78])
- add_block('built-in/Mux',[sys,'/','Error rate/Mux'])
- set_param([sys,'/','Error rate/Mux'],...
- 'inputs','2',...
- 'position',[65,46,100,79])
- add_block('built-in/Inport',[sys,'/','Error rate/in_1'])
- set_param([sys,'/','Error rate/in_1'],...
- 'position',[15,45,35,65])
- add_block('built-in/Inport',[sys,'/','Error rate/in_2'])
- set_param([sys,'/','Error rate/in_2'],...
- 'Port','2',...
- 'position',[15,60,35,80])
- add_line([sys,'/','Error rate'],[105,65;125,65])
- add_line([sys,'/','Error rate'],[40,55;60,55])
- add_line([sys,'/','Error rate'],[40,70;60,70])
- set_param([sys,'/','Error rate'],...
- 'Mask Display','Errornmeter',...
- 'Mask Type','Symbol/bit error counter')
- set_param([sys,'/','Error rate'],...
- 'Mask Dialogue','Use the input data from the 1st port as the reference signal to detect the number of errors and error rate of the 2nd signal.|Bit per symbol:|Number of digits on display:|Delay between 1st port and 2nd port:|Sample time (sec):')
- set_param([sys,'/','Error rate'],...
- 'Mask Translate','K=@1;num_lin=@2;TDelay=@3;Sample=@4;')
- set_param([sys,'/','Error rate'],...
- 'Mask Help','The signal from the first port must be a scalar. The second input port can be a vector with a delay to the first port signal. The comparison happens only at the sampling point.')
- set_param([sys,'/','Error rate'],...
- 'Mask Entries','2/10/12/1/')
- % Finished composite block 'Error rate'.
- set_param([sys,'/','Error rate'],...
- 'orientation',1,...
- 'position',[465,215,545,255])
- add_block('built-in/Scope',[sys,'/',['empfangenes',13,'Symbol']])
- set_param([sys,'/',['empfangenes',13,'Symbol']],...
- 'orientation',1,...
- 'move name',0,...
- 'Vgain','3.000000',...
- 'Hgain','25.000000',...
- 'Vmax','6.000000',...
- 'Hmax','50.000000',...
- 'Window',[360,738,1280,838])
- open_system([sys,'/',['empfangenes',13,'Symbol']])
- set_param([sys,'/',['empfangenes',13,'Symbol']],...
- 'position',[745,220,775,250])
- add_block('built-in/Scope',[sys,'/','Bin鋜signal'])
- set_param([sys,'/','Bin鋜signal'],...
- 'orientation',3,...
- 'move name',0,...
- 'Vgain','3.000000',...
- 'Hgain','25.000000',...
- 'Vmax','6.000000',...
- 'Hmax','50.000000',...
- 'Window',[360,341,1280,441])
- open_system([sys,'/','Bin鋜signal'])
- set_param([sys,'/','Bin鋜signal'],...
- 'position',[320,25,350,55])
- % Subsystem 'Sender'.
- new_system([sys,'/','Sender'])
- set_param([sys,'/','Sender'],'Location',[252,42,1260,321])
- add_block('built-in/Scope',[sys,'/','Sender/x_I(t)'])
- set_param([sys,'/','Sender/x_I(t)'],...
- 'orientation',3,...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[359,438,1280,538],...
- 'position',[430,10,460,40])
- add_block('built-in/Scope',[sys,'/','Sender/d_I(t)'])
- set_param([sys,'/','Sender/d_I(t)'],...
- 'orientation',3,...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[359,340,1280,440],...
- 'position',[220,10,250,40])
- add_block('built-in/Fcn',[sys,'/','Sender/Fcn1'])
- set_param([sys,'/','Sender/Fcn1'],...
- 'hide name',0,...
- 'Expr','cos(4*pi*u)',...
- 'position',[615,130,710,160])
- add_block('built-in/Product',[sys,'/','Sender/Product'])
- set_param([sys,'/','Sender/Product'],...
- 'hide name',0,...
- 'position',[770,83,800,107])
- % Subsystem ['Sender/Signalraum-',13,'zuordnung'].
- new_system([sys,'/',['Sender/Signalraum-',13,'zuordnung']])
- set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],'Location',[58,103,403,268])
- add_block('built-in/Zero-Order Hold',[sys,'/',['Sender/Signalraum-',13,'zuordnung/Zero-Order',13,'Hold1']])
- set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/Zero-Order',13,'Hold1']],...
- 'Sample time','td',...
- 'position',[80,14,115,46])
- add_block('built-in/Inport',[sys,'/',['Sender/Signalraum-',13,'zuordnung/in_1']])
- set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/in_1']],...
- 'position',[25,20,45,40])
- add_block('built-in/Look Up Table',[sys,'/',['Sender/Signalraum-',13,'zuordnung/real part']])
- set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/real part']],...
- 'Input_Values','x',...
- 'Output_Values','y1',...
- 'position',[180,17,215,43])
- add_block('built-in/Look Up Table',[sys,'/',['Sender/Signalraum-',13,'zuordnung/imag part1']])
- set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/imag part1']],...
- 'Input_Values','x',...
- 'Output_Values','y2',...
- 'position',[175,97,210,123])
- add_block('built-in/Outport',[sys,'/',['Sender/Signalraum-',13,'zuordnung/Real']])
- set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/Real']],...
- 'position',[275,20,295,40])
- add_block('built-in/Outport',[sys,'/',['Sender/Signalraum-',13,'zuordnung/Imag']])
- set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/Imag']],...
- 'Port','2',...
- 'position',[275,100,295,120])
- add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[50,30;75,30])
- add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[120,30;175,30])
- add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[145,30;145,110;170,110])
- add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[220,30;270,30])
- add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[215,110;270,110])
- set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],...
- 'Mask Display','QASKnC-map',...
- 'Mask Type','QASK C-map')
- set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],...
- 'Mask Dialogue','QASK mapping with circle constellation. The constellation is defined in NIC, RIC and PIC.|Number of symbols in each circle NIC:|Radii in each circle RIC:|Phase shift in each circle PIC (rad):|Symbol interval and offset (sec):')