qamnyqmf.m
上传用户:loeagle
上传日期:2013-03-02
资源大小:1236k
文件大小:147k
- function [ret,x0,str,ts,xts]=qamnyqmf(t,x,u,flag);
- %QAMNYQMF is the M-file description of the SIMULINK system named QAMNYQMF.
- % The block-diagram can be displayed by typing: QAMNYQMF.
- %
- % SYS=QAMNYQMF(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 QAMNYQMF 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 QAMNYQMF with a FLAG of zero:
- % [SIZES]=QAMNYQMF([],[],[],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,43,1260,321])
- 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,'16-QAM-',13,'Signal']])
- set_param([sys,'/',['Empf鋘ger/gest鰎tes',13,'16-QAM-',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-Filter'.
- new_system([sys,'/','Empf鋘ger/Nyquist-Filter'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter'],'Location',[131,545,589,761])
- % Subsystem 'Empf鋘ger/Nyquist-Filter/Memory Impulse'.
- new_system([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],'Location',[541,520,939,745])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/in_1'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/in_1'],...
- 'position',[35,185,55,205])
- add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/Zero-Order',13,'Hold']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/Zero-Order',13,'Hold']],...
- 'Sample time','ts',...
- 'position',[205,84,240,116])
- add_block('built-in/Product',[sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/Product'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/Product'],...
- 'position',[155,90,180,110])
- add_block('built-in/Outport',[sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/out_1'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/out_1'],...
- 'position',[355,130,375,150])
- add_block('built-in/Constant',[sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/Constant'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/Constant'],...
- 'Value','x',...
- 'position',[210,155,230,175])
- add_block('built-in/Switch',[sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/Switch'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/Switch'],...
- 'Threshold','.5',...
- 'position',[295,124,320,156])
- % Subsystem ['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
- new_system([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],'Location',[419,521,808,713])
- add_block('built-in/Relational Operator',[sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[300,35;335,35])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[235,100;240,100;240,40;260,40])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[170,30;260,30])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[65,145;100,145;100,35;130,35])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[100,145;180,145;180,105;195,105])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[175,95;195,95])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[35,25;130,25])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[45,25;45,95;115,95])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Display','EdgenDetector',...
- 'Mask Type','Edge Detection')
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-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-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Entries','thr/ts/')
- % Finished composite block ['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'position',[65,26,120,54])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/in_2'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse/in_2'],...
- 'Port','2',...
- 'position',[25,30,45,50])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],[245,100;260,100;260,130;290,130])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],[185,100;200,100])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],[60,195;280,195;290,150])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],[95,195;95,105;150,105])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],[325,140;350,140])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],[235,165;250,165;250,140;290,140])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],[125,40;130,40;130,95;150,95])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],[50,40;60,40])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],...
- 'Mask Display','1/sinc',...
- 'Mask Type','Impulse',...
- 'Mask Dialogue','1/sinc filter:|Holding time:|Threshold for clock pulse: ',...
- 'Mask Translate','ts=@1;thr=@2;x=thr>0;')
- set_param([sys,'/','Empf鋘ger/Nyquist-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-Filter/Memory Impulse'],...
- 'Mask Entries','ts/x/')
- % Finished composite block 'Empf鋘ger/Nyquist-Filter/Memory Impulse'.
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Memory Impulse'],...
- 'position',[155,30,225,70])
- add_block('built-in/Filter',[sys,'/','Empf鋘ger/Nyquist-Filter/Filter'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/Filter'],...
- 'Numerator','num',...
- 'Denominator','den',...
- 'Sample time','ts',...
- 'position',[255,31,310,69])
- add_block('built-in/Outport',[sys,'/','Empf鋘ger/Nyquist-Filter/out_1'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/out_1'],...
- 'position',[330,40,350,60])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Nyquist-Filter/in_1'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter/in_1'],...
- 'position',[35,30,55,50])
- % Subsystem ['Empf鋘ger/Nyquist-Filter/Pulses deivide',13,'same sample time1'].
- new_system([sys,'/',['Empf鋘ger/Nyquist-Filter/Pulses deivide',13,'same sample time1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter/Pulses deivide',13,'same sample time1']],'Location',[55,192,283,286])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Nyquist-Filter/Pulses deivide',13,'same sample time1/Outport']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter/Pulses deivide',13,'same sample time1/Outport']],...
- 'position',[160,35,180,55])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Nyquist-Filter/Pulses deivide',13,'same sample time1/S-function1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Pulses deivide',13,'same sample time1']],[110,45;155,45])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter/Pulses deivide',13,'same sample time1']],...
- 'Mask Display','VectornPulse',...
- 'Mask Type','Pulse generator')
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Pulses deivide',13,'same sample time1']],...
- 'Mask Translate','samp_time=@1;out_divid=@2;offset=@3;')
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter/Pulses deivide',13,'same sample time1']],...
- 'Mask Entries','td/1/off/')
- % Finished composite block ['Empf鋘ger/Nyquist-Filter/Pulses deivide',13,'same sample time1'].
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter/Pulses deivide',13,'same sample time1']],...
- 'position',[35,71,95,109])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter'],[100,90;115,90;115,60;150,60])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter'],[230,50;250,50])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter'],[60,40;150,40])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter'],[315,50;325,50])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter'],...
- 'Mask Display','R-Cnfilter',...
- 'Mask Type','R-C filter')
- set_param([sys,'/','Empf鋘ger/Nyquist-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-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-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-Filter'],...
- 'Mask Entries','1/.05/.5/6/''FIR''/0/')
- % Finished composite block 'Empf鋘ger/Nyquist-Filter'.
- set_param([sys,'/','Empf鋘ger/Nyquist-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-Filter_'.
- new_system([sys,'/','Empf鋘ger/Nyquist-Filter_'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_'],'Location',[131,545,589,761])
- % Subsystem ['Empf鋘ger/Nyquist-Filter_/Pulses deivide',13,'same sample time1'].
- new_system([sys,'/',['Empf鋘ger/Nyquist-Filter_/Pulses deivide',13,'same sample time1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter_/Pulses deivide',13,'same sample time1']],'Location',[55,192,283,286])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Nyquist-Filter_/Pulses deivide',13,'same sample time1/S-function1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter_/Pulses deivide',13,'same sample time1/Outport']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter_/Pulses deivide',13,'same sample time1/Outport']],...
- 'position',[160,35,180,55])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter_/Pulses deivide',13,'same sample time1']],[110,45;155,45])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter_/Pulses deivide',13,'same sample time1']],...
- 'Mask Display','VectornPulse',...
- 'Mask Type','Pulse generator')
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter_/Pulses deivide',13,'same sample time1']],...
- 'Mask Translate','samp_time=@1;out_divid=@2;offset=@3;')
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter_/Pulses deivide',13,'same sample time1']],...
- 'Mask Entries','td/1/off/')
- % Finished composite block ['Empf鋘ger/Nyquist-Filter_/Pulses deivide',13,'same sample time1'].
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter_/Pulses deivide',13,'same sample time1']],...
- 'position',[35,71,95,109])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Nyquist-Filter_/in_1'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/in_1'],...
- 'position',[35,30,55,50])
- add_block('built-in/Outport',[sys,'/','Empf鋘ger/Nyquist-Filter_/out_1'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/out_1'],...
- 'position',[330,40,350,60])
- add_block('built-in/Filter',[sys,'/','Empf鋘ger/Nyquist-Filter_/Filter'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/Filter'],...
- 'Numerator','num',...
- 'Denominator','den',...
- 'Sample time','ts',...
- 'position',[255,31,310,69])
- % Subsystem 'Empf鋘ger/Nyquist-Filter_/Memory Impulse'.
- new_system([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],'Location',[541,520,939,745])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/in_2'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/in_2'],...
- 'Port','2',...
- 'position',[25,30,45,50])
- % Subsystem ['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
- new_system([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],'Location',[419,521,808,713])
- add_block('built-in/Unit Delay',[sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']],...
- 'position',[135,18,165,42])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[35,25;130,25])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[45,25;45,95;115,95])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[175,95;195,95])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[65,145;100,145;100,35;130,35])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[100,145;180,145;180,105;195,105])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[170,30;260,30])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[235,100;240,100;240,40;260,40])
- add_line([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[300,35;335,35])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Display','EdgenDetector',...
- 'Mask Type','Edge Detection')
- set_param([sys,'/',['Empf鋘ger/Nyquist-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-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-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'Mask Entries','thr/ts/')
- % Finished composite block ['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
- 'position',[65,26,120,54])
- add_block('built-in/Switch',[sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/Switch'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/Switch'],...
- 'Threshold','.5',...
- 'position',[295,124,320,156])
- add_block('built-in/Constant',[sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/Constant'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/Constant'],...
- 'Value','x',...
- 'position',[210,155,230,175])
- add_block('built-in/Outport',[sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/out_1'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/out_1'],...
- 'position',[355,130,375,150])
- add_block('built-in/Product',[sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/Product'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/Product'],...
- 'position',[155,90,180,110])
- add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/Zero-Order',13,'Hold']])
- set_param([sys,'/',['Empf鋘ger/Nyquist-Filter_/Memory Impulse/Zero-Order',13,'Hold']],...
- 'Sample time','ts',...
- 'position',[205,84,240,116])
- add_block('built-in/Inport',[sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/in_1'])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse/in_1'],...
- 'position',[35,185,55,205])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],[50,40;60,40])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],[125,40;130,40;130,95;150,95])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],[235,165;250,165;250,140;290,140])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],[325,140;350,140])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],[60,195;280,195;290,150])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],[95,195;95,105;150,105])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],[185,100;200,100])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],[245,100;260,100;260,130;290,130])
- set_param([sys,'/','Empf鋘ger/Nyquist-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-Filter_/Memory Impulse'],...
- 'Mask Translate','ts=@1;thr=@2;x=thr>0;')
- set_param([sys,'/','Empf鋘ger/Nyquist-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-Filter_/Memory Impulse'],...
- 'Mask Entries','ts/x/')
- % Finished composite block 'Empf鋘ger/Nyquist-Filter_/Memory Impulse'.
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_/Memory Impulse'],...
- 'position',[155,30,225,70])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_'],[315,50;325,50])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_'],[60,40;150,40])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_'],[230,50;250,50])
- add_line([sys,'/','Empf鋘ger/Nyquist-Filter_'],[100,90;115,90;115,60;150,60])
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_'],...
- 'Mask Display','R-Cnfilter',...
- 'Mask Type','R-C filter')
- set_param([sys,'/','Empf鋘ger/Nyquist-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-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-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-Filter_'],...
- 'Mask Entries','1/.05/.5/6/''FIR''/0/')
- % Finished composite block 'Empf鋘ger/Nyquist-Filter_'.
- set_param([sys,'/','Empf鋘ger/Nyquist-Filter_'],...
- 'position',[410,203,490,247])
- 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','15.000000',...
- 'Hgain','25.000000',...
- 'Vmax','30.000000',...
- 'Hmax','50.000000',...
- 'Window',[320,740,960,840],...
- 'position',[895,70,925,100])
- % Subsystem ['Empf鋘ger/Signalraum-',13,'decodierung'].
- new_system([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],'Location',[57,374,831,674])
- add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Zero-Order',13,'Hold']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Zero-Order',13,'Hold']],...
- 'Sample time','td',...
- 'position',[135,24,170,56])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/in_1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/in_1']],...
- 'position',[60,30,80,50])
- add_block('built-in/Zero-Order Hold',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Zero-Order',13,'Hold1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Zero-Order',13,'Hold1']],...
- 'Sample time','td',...
- 'position',[135,149,170,181])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/in_2']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/in_2']],...
- 'Port','2',...
- 'position',[60,155,80,175])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum5']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum5']],...
- 'ForeGround',2,...
- 'position',[470,153,490,182])
- % Subsystem ['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table'].
- new_system([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],'Location',[436,148,718,302])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/y0']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/y0']],...
- 'Port','2',...
- 'position',[20,80,40,100])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/table out']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/table out']],...
- 'position',[215,55,235,75])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/x0']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/x0']],...
- 'position',[20,25,40,45])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/S-function']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/S-function']],...
- 'function name','sftable2',...
- 'parameters','xindex, yindex, table',...
- 'position',[140,52,190,78])
- add_block('built-in/Mux',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/Mux']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table/Mux']],...
- 'inputs','2',...
- 'position',[90,46,120,79])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],[45,90;65,90;65,70;85,70])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],[195,65;210,65])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],[45,35;65,35;65,55;85,55])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],[125,65;135,65])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],...
- 'Mask Display','plot(-10,-10,110,110,[90,50,10],[90,40,30],[90,50,10],[50,26,20],[90,50,10],[22,13,10])',...
- 'Mask Type','2-D Table Lookup')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],...
- 'Mask Dialogue','Two Dimensional Table LookupnThe first input corresponds to X Index and the second input corresponds to the Y Index|X Index|Y Index|Table')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],...
- 'Mask Translate','xindex=@1; yindex=@2; table=@3; sftab2chk(xindex,yindex,table);')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],...
- 'Mask Help','This block returns a linearly interpolated intersection from the table using the X index (which corresponds to the rows of the table) and the Y index (which corresponds to the columns of the table). Extrapolation is used.')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],...
- 'Mask Entries','x/y/tab/')
- % Finished composite block ['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table'].
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/2-D Table']],...
- 'position',[515,68,545,92])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum3']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum3']],...
- 'ForeGround',2,...
- 'inputs','+-',...
- 'position',[580,73,600,102])
- add_block('built-in/Saturation',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Saturation']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Saturation']],...
- 'Lower Limit','0',...
- 'Upper Limit','N-1',...
- 'position',[630,78,660,102])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/out_1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/out_1']],...
- 'position',[685,80,705,100])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum4']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum4']],...
- 'ForeGround',2,...
- 'position',[470,58,490,87])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum1']],...
- 'ForeGround',2,...
- 'inputs','+-',...
- 'position',[280,33,300,62])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum2']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Sum2']],...
- 'ForeGround',2,...
- 'inputs','+-',...
- 'position',[290,158,310,187])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Minimum']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Minimum']],...
- 'function name','arymimai',...
- 'parameters','''min''',...
- 'position',[385,165,450,185])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Shift key']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Shift key']],...
- 'Value','sfty',...
- 'position',[225,214,250,236])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Minimum1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Minimum1']],...
- 'function name','arymimai',...
- 'parameters','''min''',...
- 'position',[385,40,445,60])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Shift key1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Shift key1']],...
- 'Value','sftx',...
- 'position',[220,89,245,111])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Shift key2']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Shift key2']],...
- 'BackGround',5,...
- 'position',[325,114,350,136])
- add_block('built-in/Abs',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Abs1']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Abs1']],...
- 'position',[325,38,355,62])
- add_block('built-in/Abs',[sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Abs']])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung/Abs']],...
- 'position',[325,163,355,187])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[85,40;130,40])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[360,175;380,175])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[315,175;320,175])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[255,225;260,225;260,180;285,180])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[250,100;255,100;255,55;275,55])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[305,50;320,50])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[360,50;380,50])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[665,90;680,90])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[550,80;575,80])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[605,90;625,90])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[450,50;450,65;465,65])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[455,175;465,175])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[495,170;500,170;510,85])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[355,125;560,125;560,95;575,95])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[450,125;450,160;465,160])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[450,125;450,80;465,80])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[495,75;510,75])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[85,165;130,165])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[175,165;285,165])
- add_line([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],[175,40;275,40])
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],...
- 'Mask Display','QASKnS-demap',...
- 'Mask Type','QASK S-demap')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],...
- 'Mask Dialogue','Reverse the QASK map. Input in-phasenand quadrature components from thentwo inputs. Output demapped signal.|QASK M-ary number (outputs are in range [0, M-1]):|Output symbol interval and offset (sec):')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],...
- 'Mask Translate','N=@1;td=@2;Ac=1;sftx=[1 -1 3 -3 5 -5 7 -7 9 -9 11 -11 13 -13 15 -15];sftx=sftx(1:2*ceil(sqrt(N)/2));sfty=sftx;if N==8,sfty=sfty(1:2);end;sftx=sftx/max(sftx)*Ac;sfty=sfty/max(sfty)*Ac;tab=qaskdeco(length(sftx),length(sfty),''fetch'')+1;x=[1:length(sftx)];y=[1:length(sfty)];')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],...
- 'Mask Help','This block demaps a QASK mapped signal using square constellation. You can place this block after a QAM demodulation block. This block assumes the maximum amplitude of the input signals is 1. The output symbols are integers in the range [0, M-1]. The input symbol interval can be a two-element vector with the second element being offset. The default value offset is 0.')
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],...
- 'Mask Entries','16/1/')
- % Finished composite block ['Empf鋘ger/Signalraum-',13,'decodierung'].
- set_param([sys,'/',['Empf鋘ger/Signalraum-',13,'decodierung']],...
- 'position',[800,128,880,172])
- % 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])
- % Subsystem ['Empf鋘ger/Schwellwert-',13,'entscheider'].
- new_system([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider']],'Location',[495,247,855,368])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/out_1']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/out_1']],...
- 'position',[315,35,335,55])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Constant3']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Constant3']],...
- 'Value','1/3',...
- 'position',[205,70,225,90])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Sum1']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Sum1']],...
- 'inputs','+-',...
- 'position',[260,29,280,56])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Constant2']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Constant2']],...
- 'Value','1/3',...
- 'position',[35,65,55,85])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/in_1']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/in_1']],...
- 'position',[30,15,50,35])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Sum2']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Sum2']],...
- 'position',[90,19,110,46])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Quantizer']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Quantizer']],...
- 'function name','quantize',...
- 'parameters','q')
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Quantizer']],...
- 'Mask Display','plot([-4,4],[0,0],[0,0],[-4,4],[-3,-2,-2,-1,-1,0,0,1,1,2,2,3,3,4]-0.5,[-3,-3,-2,-2,-1,-1,0,0,1,1,2,2,3,3])',...
- 'Mask Type','Quantizer')
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Quantizer']],...
- 'Mask Dialogue','Discretizes input at given interval.|Quantization interval:',...
- 'Mask Translate','q = @1;',...
- 'Mask Help','Quantizes input in given intervals. ')
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider/Quantizer']],...
- 'Mask Entries','2/3/',...
- 'position',[160,22,190,48])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider']],[55,25;85,25])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider']],[115,35;155,35])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider']],[60,75;70,75;70,40;85,40])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider']],[195,35;255,35])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider']],[230,80;235,80;235,50;255,50])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider']],[285,45;310,45])
- % Finished composite block ['Empf鋘ger/Schwellwert-',13,'entscheider'].
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider']],...
- 'position',[705,72,735,108])
- % Subsystem ['Empf鋘ger/Schwellwert-',13,'entscheider_'].
- new_system([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_']],'Location',[495,247,855,368])
- add_block('built-in/S-Function',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Quantizer']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Quantizer']],...
- 'function name','quantize',...
- 'parameters','q')
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Quantizer']],...
- 'Mask Display','plot([-4,4],[0,0],[0,0],[-4,4],[-3,-2,-2,-1,-1,0,0,1,1,2,2,3,3,4]-0.5,[-3,-3,-2,-2,-1,-1,0,0,1,1,2,2,3,3])',...
- 'Mask Type','Quantizer')
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Quantizer']],...
- 'Mask Dialogue','Discretizes input at given interval.|Quantization interval:',...
- 'Mask Translate','q = @1;')
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Quantizer']],...
- 'Mask Help','Quantizes input in given intervals. ',...
- 'Mask Entries','2/3/',...
- 'position',[160,22,190,48])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Sum2']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Sum2']],...
- 'position',[90,19,110,46])
- add_block('built-in/Inport',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/in_1']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/in_1']],...
- 'position',[30,15,50,35])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Constant2']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Constant2']],...
- 'Value','1/3',...
- 'position',[35,65,55,85])
- add_block('built-in/Sum',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Sum1']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Sum1']],...
- 'inputs','+-',...
- 'position',[260,29,280,56])
- add_block('built-in/Constant',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Constant3']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/Constant3']],...
- 'Value','1/3',...
- 'position',[205,70,225,90])
- add_block('built-in/Outport',[sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/out_1']])
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_/out_1']],...
- 'position',[315,35,335,55])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_']],[285,45;310,45])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_']],[230,80;235,80;235,50;255,50])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_']],[195,35;255,35])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_']],[60,75;70,75;70,40;85,40])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_']],[115,35;155,35])
- add_line([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_']],[55,25;85,25])
- % Finished composite block ['Empf鋘ger/Schwellwert-',13,'entscheider_'].
- set_param([sys,'/',['Empf鋘ger/Schwellwert-',13,'entscheider_']],...
- 'position',[705,207,735,243])
- 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',[810,75,840,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',[810,210,840,240])
- % 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])
- % Subsystem 'Empf鋘ger/Doppelklick6'.
- new_system([sys,'/','Empf鋘ger/Doppelklick6'])
- set_param([sys,'/','Empf鋘ger/Doppelklick6'],'Location',[136,230,381,439])
- set_param([sys,'/','Empf鋘ger/Doppelklick6'],...
- 'Mask Display','Rolloff-Faktor einstellen',...
- 'Mask Type','rolloff',...
- 'Mask Dialogue','eval(''setrloff'')')
- % Finished composite block 'Empf鋘ger/Doppelklick6'.
- set_param([sys,'/','Empf鋘ger/Doppelklick6'],...
- 'BackGround',7,...
- 'hide name',0,...
- 'Font Angle','italic',...
- 'position',[10,10,165,36])
- 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;630,90;630,20;675,20])
- add_line([sys,'/','Empf鋘ger'],[910,150;910,105])
- add_line([sys,'/','Empf鋘ger'],[630,90;700,90])
- add_line([sys,'/','Empf鋘ger'],[740,90;770,90;770,140;795,140])
- add_line([sys,'/','Empf鋘ger'],[655,225;700,225])
- add_line([sys,'/','Empf鋘ger'],[740,225;770,225;770,160;795,160])
- add_line([sys,'/','Empf鋘ger'],[770,90;805,90])
- add_line([sys,'/','Empf鋘ger'],[770,225;805,225])
- % Finished composite block 'Empf鋘ger'.
- set_param([sys,'/','Empf鋘ger'],...
- 'position',[650,62,725,148])
- % 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','4/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','15.000000',...
- 'Hgain','25.000000',...
- 'Vmax','30.000000',...
- 'Hmax','50.000000',...
- 'Window',[360,924,1280,1024])
- 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 'Doppelklick2'.
- new_system([sys,'/','Doppelklick2'])
- set_param([sys,'/','Doppelklick2'],'Location',[136,230,381,439])
- set_param([sys,'/','Doppelklick2'],...
- 'Mask Display','Zeige Sender',...
- 'Mask Type','鰂fnen',...
- 'Mask Dialogue','eval(''showsend'')')
- % Finished composite block 'Doppelklick2'.
- set_param([sys,'/','Doppelklick2'],...
- 'BackGround',7,...
- 'hide name',0,...
- 'Font Angle','italic',...
- 'position',[30,85,165,111])
- % Subsystem 'Doppelklick3'.
- new_system([sys,'/','Doppelklick3'])
- set_param([sys,'/','Doppelklick3'],'Location',[136,230,381,439])
- set_param([sys,'/','Doppelklick3'],...
- 'Mask Display','Zeige Empf鋘ger',...
- 'Mask Type','鰂fnen',...
- 'Mask Dialogue','eval(''showempf'')')
- % Finished composite block 'Doppelklick3'.
- set_param([sys,'/','Doppelklick3'],...
- 'BackGround',7,...
- 'hide name',0,...
- 'Font Angle','italic',...
- 'position',[800,85,935,111])
- % Subsystem ['ASK Mo//Dem',13,'demo1'].
- new_system([sys,'/',['ASK Mo//Dem',13,'demo1']])
- set_param([sys,'/',['ASK Mo//Dem',13,'demo1']],'Location',[175,552,335,697])
- set_param([sys,'/',['ASK Mo//Dem',13,'demo1']],...
- 'Mask Display','Signalraum-nKonstellation',...
- 'Mask Dialogue','eval(''figure''); eval(''modmap(''''qam'''',16)'')')
- % Finished composite block ['ASK Mo//Dem',13,'demo1'].
- set_param([sys,'/',['ASK Mo//Dem',13,'demo1']],...
- 'BackGround',7,...
- 'hide name',0,...
- 'position',[55,18,135,62])
- add_block('built-in/Scope',[sys,'/',['d_I(t)',13,'(Sender)']])
- set_param([sys,'/',['d_I(t)',13,'(Sender)']],...
- 'orientation',1,...
- 'move name',0,...
- 'Vgain','1.500000',...
- 'Hgain','25.000000',...
- 'Vmax','3.000000',...
- 'Hmax','50.000000',...
- 'Window',[360,535,1280,635])
- open_system([sys,'/',['d_I(t)',13,'(Sender)']])
- set_param([sys,'/',['d_I(t)',13,'(Sender)']],...