qpswnymf.m
上传用户:loeagle
上传日期:2013-03-02
资源大小:1236k
文件大小:147k
源码类别:

通讯编程文档

开发平台:

Matlab

  1. add_block('built-in/Relational Operator',[sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']])
  2. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']],...
  3. 'position',[135,18,165,42])
  4. add_block('built-in/Inport',[sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']])
  5. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']],...
  6. 'position',[10,15,30,35])
  7. add_block('built-in/Constant',[sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']])
  8. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']],...
  9. 'Value','thld',...
  10. 'position',[30,135,60,155])
  11. add_block('built-in/Relational Operator',[sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']])
  12. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']],...
  13. 'Operator','>',...
  14. 'position',[265,23,295,47])
  15. add_block('built-in/Relational Operator',[sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']])
  16. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']],...
  17. 'position',[200,88,230,112])
  18. add_block('built-in/Outport',[sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']])
  19. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']],...
  20. 'position',[340,25,360,45])
  21. add_block('built-in/Unit Delay',[sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']])
  22. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']],...
  23. 'Sample time','ts',...
  24. 'position',[120,87,170,103])
  25. add_line([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[300,35;335,35])
  26. add_line([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[235,100;240,100;240,40;260,40])
  27. add_line([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[170,30;260,30])
  28. add_line([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[65,145;100,145;100,35;130,35])
  29. add_line([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[100,145;180,145;180,105;195,105])
  30. add_line([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[175,95;195,95])
  31. add_line([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[35,25;130,25])
  32. add_line([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[45,25;45,95;115,95])
  33. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  34. 'Mask Display','EdgenDetector',...
  35. 'Mask Type','Edge Detection',...
  36. 'Mask Dialogue','Rising edge detection:|Threshold:|Sampling time:')
  37. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  38. 'Mask Translate','thld=@1;ts=@2;')
  39. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  40. 'Mask Help','When the input signal rising edge passed the given shreshold, this block outputs one, otherwise outputs zero.')
  41. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  42. 'Mask Entries','thr/ts/')
  43. %     Finished composite block ['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
  44. set_param([sys,'/',['Sender/Wurzel-Nyquist/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  45. 'position',[65,26,120,54])
  46. add_block('built-in/Inport',[sys,'/','Sender/Wurzel-Nyquist/Memory Impulse/in_2'])
  47. set_param([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse/in_2'],...
  48. 'Port','2',...
  49. 'position',[25,30,45,50])
  50. add_line([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],[245,100;260,100;260,130;290,130])
  51. add_line([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],[185,100;200,100])
  52. add_line([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],[60,195;280,195;290,150])
  53. add_line([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],[95,195;95,105;150,105])
  54. add_line([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],[325,140;350,140])
  55. add_line([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],[235,165;250,165;250,140;290,140])
  56. add_line([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],[125,40;130,40;130,95;150,95])
  57. add_line([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],[50,40;60,40])
  58. set_param([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],...
  59. 'Mask Display','1/sinc',...
  60. 'Mask Type','Impulse',...
  61. 'Mask Dialogue','1/sinc filter:|Holding time:|Threshold for clock pulse: ',...
  62. 'Mask Translate','ts=@1;thr=@2;x=thr>0;')
  63. set_param([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],...
  64. '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.')
  65. set_param([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],...
  66. 'Mask Entries','ts/x/')
  67. %     Finished composite block 'Sender/Wurzel-Nyquist/Memory Impulse'.
  68. set_param([sys,'/','Sender/Wurzel-Nyquist/Memory Impulse'],...
  69. 'position',[155,30,225,70])
  70. add_block('built-in/Filter',[sys,'/','Sender/Wurzel-Nyquist/Filter'])
  71. set_param([sys,'/','Sender/Wurzel-Nyquist/Filter'],...
  72. 'Numerator','num',...
  73. 'Denominator','den',...
  74. 'Sample time','ts',...
  75. 'position',[255,31,310,69])
  76. add_block('built-in/Outport',[sys,'/','Sender/Wurzel-Nyquist/out_1'])
  77. set_param([sys,'/','Sender/Wurzel-Nyquist/out_1'],...
  78. 'position',[330,40,350,60])
  79. add_block('built-in/Inport',[sys,'/','Sender/Wurzel-Nyquist/in_1'])
  80. set_param([sys,'/','Sender/Wurzel-Nyquist/in_1'],...
  81. 'position',[35,30,55,50])
  82. %     Subsystem  ['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1'].
  83. new_system([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1']])
  84. set_param([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1']],'Location',[55,192,283,286])
  85. add_block('built-in/Outport',[sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1/Outport']])
  86. set_param([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1/Outport']],...
  87. 'position',[160,35,180,55])
  88. add_block('built-in/S-Function',[sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1/S-function1']])
  89. set_param([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1/S-function1']],...
  90. 'function name','homopuls',...
  91. 'parameters','samp_time, out_divid, offset',...
  92. 'position',[40,31,105,59])
  93. add_line([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1']],[110,45;155,45])
  94. set_param([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1']],...
  95. 'Mask Display','VectornPulse',...
  96. 'Mask Type','Pulse generator')
  97. set_param([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1']],...
  98. '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:')
  99. set_param([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1']],...
  100. 'Mask Translate','samp_time=@1;out_divid=@2;offset=@3;')
  101. set_param([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1']],...
  102. '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.')
  103. set_param([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1']],...
  104. 'Mask Entries','td/1/off/')
  105. %     Finished composite block ['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1'].
  106. set_param([sys,'/',['Sender/Wurzel-Nyquist/Pulses deivide',13,'same sample time1']],...
  107. 'position',[35,71,95,109])
  108. add_line([sys,'/','Sender/Wurzel-Nyquist'],[100,90;115,90;115,60;150,60])
  109. add_line([sys,'/','Sender/Wurzel-Nyquist'],[230,50;250,50])
  110. add_line([sys,'/','Sender/Wurzel-Nyquist'],[60,40;150,40])
  111. add_line([sys,'/','Sender/Wurzel-Nyquist'],[315,50;325,50])
  112. set_param([sys,'/','Sender/Wurzel-Nyquist'],...
  113. 'Mask Display','R-Cnfilter',...
  114. 'Mask Type','R-C filter')
  115. set_param([sys,'/','Sender/Wurzel-Nyquist'],...
  116. '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):')
  117. set_param([sys,'/','Sender/Wurzel-Nyquist'],...
  118. '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;')
  119. set_param([sys,'/','Sender/Wurzel-Nyquist'],...
  120. '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.')
  121. set_param([sys,'/','Sender/Wurzel-Nyquist'],...
  122. 'Mask Entries','1/.05/.5/6/''FIR/Sqrt''/1/')
  123. %     Finished composite block 'Sender/Wurzel-Nyquist'.
  124. set_param([sys,'/','Sender/Wurzel-Nyquist'],...
  125. 'position',[275,68,355,112])
  126. %     Subsystem  ['Sender/Signalraum-',13,'zuordnung'].
  127. new_system([sys,'/',['Sender/Signalraum-',13,'zuordnung']])
  128. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],'Location',[58,103,403,268])
  129. add_block('built-in/Zero-Order Hold',[sys,'/',['Sender/Signalraum-',13,'zuordnung/Zero-Order',13,'Hold1']])
  130. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/Zero-Order',13,'Hold1']],...
  131. 'Sample time','td',...
  132. 'position',[80,14,115,46])
  133. add_block('built-in/Inport',[sys,'/',['Sender/Signalraum-',13,'zuordnung/in_1']])
  134. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/in_1']],...
  135. 'position',[25,20,45,40])
  136. add_block('built-in/Look Up Table',[sys,'/',['Sender/Signalraum-',13,'zuordnung/real part']])
  137. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/real part']],...
  138. 'Input_Values','x',...
  139. 'Output_Values','y1',...
  140. 'position',[180,17,215,43])
  141. add_block('built-in/Look Up Table',[sys,'/',['Sender/Signalraum-',13,'zuordnung/imag part1']])
  142. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/imag part1']],...
  143. 'Input_Values','x',...
  144. 'Output_Values','y2',...
  145. 'position',[175,97,210,123])
  146. add_block('built-in/Outport',[sys,'/',['Sender/Signalraum-',13,'zuordnung/Real']])
  147. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/Real']],...
  148. 'position',[275,20,295,40])
  149. add_block('built-in/Outport',[sys,'/',['Sender/Signalraum-',13,'zuordnung/Imag']])
  150. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung/Imag']],...
  151. 'Port','2',...
  152. 'position',[275,100,295,120])
  153. add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[50,30;75,30])
  154. add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[120,30;175,30])
  155. add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[145,30;145,110;170,110])
  156. add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[220,30;270,30])
  157. add_line([sys,'/',['Sender/Signalraum-',13,'zuordnung']],[215,110;270,110])
  158. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],...
  159. 'Mask Display','QASKnC-map',...
  160. 'Mask Type','QASK C-map')
  161. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],...
  162. '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):')
  163. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],...
  164. 'Mask Translate','N=@1;A=@2;P=@3;td=@4;y1=apkconst(N,A,P);y1=[y1;y1];y1=y1(:);y2=imag(y1);y1=real(y1);x=[-sum(N) 1:sum(N)-1;1:sum(N)-1 10*sum(N)]-.5;x=x(:);')
  165. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],...
  166. 'Mask Help','This block maps a digital signal onto in-phase and quadratic components, which are outputs in the first and second output port respectively. The circle constellation is defined in NIC, RIC, and PIC. The input symbol interval can be a two-element vector with the second element being offset. The default value offset is 0. Use the MODMAP function to see the constellation.')
  167. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],...
  168. 'Mask Entries','[4]/[sqrt(2)]/[pi/4]/1/')
  169. %     Finished composite block ['Sender/Signalraum-',13,'zuordnung'].
  170. set_param([sys,'/',['Sender/Signalraum-',13,'zuordnung']],...
  171. 'position',[110,113,190,157])
  172. add_block('built-in/Product',[sys,'/','Sender/Product1'])
  173. set_param([sys,'/','Sender/Product1'],...
  174. 'hide name',0,...
  175. 'position',[770,233,800,257])
  176. add_block('built-in/Sum',[sys,'/','Sender/Sum'])
  177. set_param([sys,'/','Sender/Sum'],...
  178. 'hide name',0,...
  179. 'inputs','+-',...
  180. 'position',[880,155,900,175])
  181. add_block('built-in/Clock',[sys,'/','Sender/Clock'])
  182. set_param([sys,'/','Sender/Clock'],...
  183. 'position',[555,155,575,175])
  184. add_block('built-in/Fcn',[sys,'/','Sender/Fcn2'])
  185. set_param([sys,'/','Sender/Fcn2'],...
  186. 'hide name',0,...
  187. 'Expr','sin(4*pi*u)',...
  188. 'position',[615,175,710,205])
  189. add_block('built-in/Scope',[sys,'/','Sender/d_Q(t)'])
  190. set_param([sys,'/','Sender/d_Q(t)'],...
  191. 'orientation',3,...
  192. 'Vgain','1.500000',...
  193. 'Hgain','25.000000',...
  194. 'Vmax','3.000000',...
  195. 'Hmax','50.000000',...
  196. 'Window',[359,633,1280,733],...
  197. 'position',[220,165,250,195])
  198. add_block('built-in/Scope',[sys,'/','Sender/x_Q(t)'])
  199. set_param([sys,'/','Sender/x_Q(t)'],...
  200. 'orientation',3,...
  201. 'Vgain','1.500000',...
  202. 'Hgain','25.000000',...
  203. 'Vmax','3.000000',...
  204. 'Hmax','50.000000',...
  205. 'Window',[359,731,1280,831],...
  206. 'position',[425,165,455,195])
  207. %     Subsystem  'Sender/Wurzel-Nyquist_'.
  208. new_system([sys,'/','Sender/Wurzel-Nyquist_'])
  209. set_param([sys,'/','Sender/Wurzel-Nyquist_'],'Location',[131,545,589,761])
  210. %     Subsystem  'Sender/Wurzel-Nyquist_/Memory Impulse'.
  211. new_system([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'])
  212. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],'Location',[541,520,939,745])
  213. add_block('built-in/Inport',[sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/in_1'])
  214. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/in_1'],...
  215. 'position',[35,185,55,205])
  216. add_block('built-in/Zero-Order Hold',[sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/Zero-Order',13,'Hold']])
  217. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/Zero-Order',13,'Hold']],...
  218. 'Sample time','ts',...
  219. 'position',[205,84,240,116])
  220. add_block('built-in/Product',[sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/Product'])
  221. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/Product'],...
  222. 'position',[155,90,180,110])
  223. add_block('built-in/Outport',[sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/out_1'])
  224. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/out_1'],...
  225. 'position',[355,130,375,150])
  226. add_block('built-in/Constant',[sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/Constant'])
  227. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/Constant'],...
  228. 'Value','x',...
  229. 'position',[210,155,230,175])
  230. add_block('built-in/Switch',[sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/Switch'])
  231. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/Switch'],...
  232. 'Threshold','.5',...
  233. 'position',[295,124,320,156])
  234. %     Subsystem  ['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
  235. new_system([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']])
  236. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],'Location',[419,521,808,713])
  237. add_block('built-in/Relational Operator',[sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']])
  238. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator']],...
  239. 'position',[135,18,165,42])
  240. add_block('built-in/Inport',[sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']])
  241. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/in_1']],...
  242. 'position',[10,15,30,35])
  243. add_block('built-in/Constant',[sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']])
  244. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/one1']],...
  245. 'Value','thld',...
  246. 'position',[30,135,60,155])
  247. add_block('built-in/Relational Operator',[sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']])
  248. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator2']],...
  249. 'Operator','>',...
  250. 'position',[265,23,295,47])
  251. add_block('built-in/Relational Operator',[sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']])
  252. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Relational',13,'Operator1']],...
  253. 'position',[200,88,230,112])
  254. add_block('built-in/Outport',[sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']])
  255. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/out_1']],...
  256. 'position',[340,25,360,45])
  257. add_block('built-in/Unit Delay',[sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']])
  258. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector/Unit Delay']],...
  259. 'Sample time','ts',...
  260. 'position',[120,87,170,103])
  261. add_line([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[300,35;335,35])
  262. add_line([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[235,100;240,100;240,40;260,40])
  263. add_line([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[170,30;260,30])
  264. add_line([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[65,145;100,145;100,35;130,35])
  265. add_line([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[100,145;180,145;180,105;195,105])
  266. add_line([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[175,95;195,95])
  267. add_line([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[35,25;130,25])
  268. add_line([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],[45,25;45,95;115,95])
  269. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  270. 'Mask Display','EdgenDetector',...
  271. 'Mask Type','Edge Detection',...
  272. 'Mask Dialogue','Rising edge detection:|Threshold:|Sampling time:')
  273. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  274. 'Mask Translate','thld=@1;ts=@2;')
  275. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  276. 'Mask Help','When the input signal rising edge passed the given shreshold, this block outputs one, otherwise outputs zero.')
  277. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  278. 'Mask Entries','thr/ts/')
  279. %     Finished composite block ['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector'].
  280. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Memory Impulse/discrete',13,'Rising edge',13,'detector']],...
  281. 'position',[65,26,120,54])
  282. add_block('built-in/Inport',[sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/in_2'])
  283. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse/in_2'],...
  284. 'Port','2',...
  285. 'position',[25,30,45,50])
  286. add_line([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],[245,100;260,100;260,130;290,130])
  287. add_line([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],[185,100;200,100])
  288. add_line([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],[60,195;280,195;290,150])
  289. add_line([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],[95,195;95,105;150,105])
  290. add_line([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],[325,140;350,140])
  291. add_line([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],[235,165;250,165;250,140;290,140])
  292. add_line([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],[125,40;130,40;130,95;150,95])
  293. add_line([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],[50,40;60,40])
  294. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],...
  295. 'Mask Display','1/sinc',...
  296. 'Mask Type','Impulse',...
  297. 'Mask Dialogue','1/sinc filter:|Holding time:|Threshold for clock pulse: ',...
  298. 'Mask Translate','ts=@1;thr=@2;x=thr>0;')
  299. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],...
  300. '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.')
  301. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],...
  302. 'Mask Entries','ts/x/')
  303. %     Finished composite block 'Sender/Wurzel-Nyquist_/Memory Impulse'.
  304. set_param([sys,'/','Sender/Wurzel-Nyquist_/Memory Impulse'],...
  305. 'position',[155,30,225,70])
  306. add_block('built-in/Filter',[sys,'/','Sender/Wurzel-Nyquist_/Filter'])
  307. set_param([sys,'/','Sender/Wurzel-Nyquist_/Filter'],...
  308. 'Numerator','num',...
  309. 'Denominator','den',...
  310. 'Sample time','ts',...
  311. 'position',[255,31,310,69])
  312. add_block('built-in/Outport',[sys,'/','Sender/Wurzel-Nyquist_/out_1'])
  313. set_param([sys,'/','Sender/Wurzel-Nyquist_/out_1'],...
  314. 'position',[330,40,350,60])
  315. add_block('built-in/Inport',[sys,'/','Sender/Wurzel-Nyquist_/in_1'])
  316. set_param([sys,'/','Sender/Wurzel-Nyquist_/in_1'],...
  317. 'position',[35,30,55,50])
  318. %     Subsystem  ['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1'].
  319. new_system([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1']])
  320. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1']],'Location',[55,192,283,286])
  321. add_block('built-in/Outport',[sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1/Outport']])
  322. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1/Outport']],...
  323. 'position',[160,35,180,55])
  324. add_block('built-in/S-Function',[sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1/S-function1']])
  325. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1/S-function1']],...
  326. 'function name','homopuls',...
  327. 'parameters','samp_time, out_divid, offset',...
  328. 'position',[40,31,105,59])
  329. add_line([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1']],[110,45;155,45])
  330. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1']],...
  331. 'Mask Display','VectornPulse',...
  332. 'Mask Type','Pulse generator')
  333. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1']],...
  334. '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:')
  335. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1']],...
  336. 'Mask Translate','samp_time=@1;out_divid=@2;offset=@3;')
  337. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1']],...
  338. '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.')
  339. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1']],...
  340. 'Mask Entries','td/1/off/')
  341. %     Finished composite block ['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1'].
  342. set_param([sys,'/',['Sender/Wurzel-Nyquist_/Pulses deivide',13,'same sample time1']],...
  343. 'position',[35,71,95,109])
  344. add_line([sys,'/','Sender/Wurzel-Nyquist_'],[100,90;115,90;115,60;150,60])
  345. add_line([sys,'/','Sender/Wurzel-Nyquist_'],[230,50;250,50])
  346. add_line([sys,'/','Sender/Wurzel-Nyquist_'],[60,40;150,40])
  347. add_line([sys,'/','Sender/Wurzel-Nyquist_'],[315,50;325,50])
  348. set_param([sys,'/','Sender/Wurzel-Nyquist_'],...
  349. 'Mask Display','R-Cnfilter',...
  350. 'Mask Type','R-C filter')
  351. set_param([sys,'/','Sender/Wurzel-Nyquist_'],...
  352. '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):')
  353. set_param([sys,'/','Sender/Wurzel-Nyquist_'],...
  354. '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;')
  355. set_param([sys,'/','Sender/Wurzel-Nyquist_'],...
  356. '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.')
  357. set_param([sys,'/','Sender/Wurzel-Nyquist_'],...
  358. 'Mask Entries','1/.05/.5/6/''FIR/Sqrt''/1/')
  359. %     Finished composite block 'Sender/Wurzel-Nyquist_'.
  360. set_param([sys,'/','Sender/Wurzel-Nyquist_'],...
  361. 'move name',0,...
  362. 'position',[275,228,355,272])
  363. add_block('built-in/Gain',[sys,'/','Sender/Gain1'])
  364. set_param([sys,'/','Sender/Gain1'],...
  365. 'hide name',0,...
  366. 'Gain','4',...
  367. 'position',[385,237,410,263])
  368. add_block('built-in/Scope',[sys,'/','Sender/s_Q(t)'])
  369. set_param([sys,'/','Sender/s_Q(t)'],...
  370. 'Vgain','1.500000',...
  371. 'Hgain','25.000000',...
  372. 'Vmax','3.000000',...
  373. 'Hmax','50.000000',...
  374. 'Window',[359,827,1280,927],...
  375. 'position',[865,230,895,260])
  376. add_block('built-in/Scope',[sys,'/','Sender/s(t)'])
  377. set_param([sys,'/','Sender/s(t)'],...
  378. 'orientation',3,...
  379. 'Vgain','1.500000',...
  380. 'Hgain','25.000000',...
  381. 'Vmax','3.000000',...
  382. 'Hmax','50.000000',...
  383. 'Window',[359,924,1280,1024],...
  384. 'position',[920,80,950,110])
  385. %     Subsystem  'Sender/Doppelklick1'.
  386. new_system([sys,'/','Sender/Doppelklick1'])
  387. set_param([sys,'/','Sender/Doppelklick1'],'Location',[136,230,381,439])
  388. set_param([sys,'/','Sender/Doppelklick1'],...
  389. 'Mask Display','Schlie遝 Sender',...
  390. 'Mask Type','schlie遝n',...
  391. 'Mask Dialogue','eval(''clossend'')')
  392. %     Finished composite block 'Sender/Doppelklick1'.
  393. set_param([sys,'/','Sender/Doppelklick1'],...
  394. 'BackGround',7,...
  395. 'hide name',0,...
  396. 'Font Angle','italic',...
  397. 'position',[785,20,920,46])
  398. add_block('built-in/Outport',[sys,'/',['Sender/QPSK-',13,'Signal']])
  399. set_param([sys,'/',['Sender/QPSK-',13,'Signal']],...
  400. 'Port','2',...
  401. 'position',[965,155,985,175])
  402. add_block('built-in/Outport',[sys,'/','Sender/Symboltakt'])
  403. set_param([sys,'/','Sender/Symboltakt'],...
  404. 'Port','4',...
  405. 'position',[110,205,130,225])
  406. add_block('built-in/Outport',[sys,'/','Sender/Bitstrom'])
  407. set_param([sys,'/','Sender/Bitstrom'],...
  408. 'position',[110,15,130,35])
  409. add_block('built-in/Outport',[sys,'/','Sender/Symbol'])
  410. set_param([sys,'/','Sender/Symbol'],...
  411. 'Port','3',...
  412. 'position',[110,60,130,80])
  413. add_block('built-in/Scope',[sys,'/','Sender/s_I(t)'])
  414. set_param([sys,'/','Sender/s_I(t)'],...
  415. 'Vgain','1.500000',...
  416. 'Hgain','25.000000',...
  417. 'Vmax','3.000000',...
  418. 'Hmax','50.000000',...
  419. 'Window',[359,535,1280,635],...
  420. 'position',[865,80,895,110])
  421. %     Subsystem  ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK'].
  422. new_system([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']])
  423. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],'Location',[84,708,621,947])
  424. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Takt']])
  425. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Takt']],...
  426. 'Port','3',...
  427. 'position',[480,195,500,215])
  428. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bin鋜']])
  429. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bin鋜']],...
  430. 'position',[480,60,500,80])
  431. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Symbol']])
  432. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Symbol']],...
  433. 'Port','2',...
  434. 'position',[480,140,500,160])
  435. %     Subsystem  ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom'].
  436. new_system([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']])
  437. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']],'Location',[355,528,737,675])
  438. %     Subsystem  ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1'].
  439. new_system([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1']])
  440. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1']],'Location',[55,192,283,286])
  441. add_block('built-in/S-Function',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1/S-function1']])
  442. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1/S-function1']],...
  443. 'function name','homopuls',...
  444. 'parameters','samp_time, out_divid, offset',...
  445. 'position',[40,31,105,59])
  446. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1/Outport']])
  447. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1/Outport']],...
  448. 'position',[160,35,180,55])
  449. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1']],[110,45;155,45])
  450. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1']],...
  451. 'Mask Display','VectornPulse',...
  452. 'Mask Type','Pulse generator')
  453. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1']],...
  454. '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:')
  455. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1']],...
  456. 'Mask Translate','samp_time=@1;out_divid=@2;offset=@3;')
  457. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1']],...
  458. '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.')
  459. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1']],...
  460. 'Mask Entries','ts/1/off/')
  461. %     Finished composite block ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1'].
  462. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Pulses deivide',13,'same sample time1']],...
  463. 'position',[50,56,110,94])
  464. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/out_1']])
  465. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/out_1']],...
  466. 'position',[295,65,315,85])
  467. add_block('built-in/S-Function',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Message source']])
  468. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Message source']],...
  469. 'BackGround',5,...
  470. 'function name','trigwksp',...
  471. 'parameters','var,thd,cyclFlag,ini',...
  472. 'Mask Display','Triggerednread')
  473. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Message source']],...
  474. 'Mask Type','Read from workspace')
  475. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Message source']],...
  476. 'Mask Dialogue','The raising edge of input pulse trigger the block output the next row from the workspace variable.|Read the variable:|Threshold for the input pulse:|Cyclic read variable (1) or amend zeros (0).|Output before first trigger:')
  477. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Message source']],...
  478. 'Mask Translate','var=@1;thd=@2;cyclFlag=@3;ini=@4;')
  479. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Message source']],...
  480. 'Mask Help','This block reads the data from a workspace variable. The output is refreshed at the raising edge of the input pulse.')
  481. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom/Message source']],...
  482. 'Mask Entries','var/.1/cyc/ini/',...
  483. 'position',[180,53,255,97])
  484. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']],[260,75;290,75])
  485. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']],[115,75;175,75])
  486. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']],...
  487. 'Mask Display','plot(0,0,100,100,x,y);Rd wksp',...
  488. 'Mask Type','Read from workspace')
  489. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']],...
  490. 'Mask Dialogue','Read from a workspace variable atnsampling time point.|Variable (column_number=block_output_length):|Data output sample time (sec):|Repeat flag (1: repeat read, 0: output zeros after eof).|Initial output:')
  491. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']],...
  492. 'Mask Translate','var=@1;td=@2;ts=td(1);if (length(td)>=2),off=td(2);else off=0;end;cyc=@3;ini=@4;[x,y]=srcsicon(7);')
  493. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']],...
  494. 'Mask Help','This block reads from a workspace variable at a given sample time. The column number is the block output vector length. When the simulation reaches the end of the variable (eof), the block will cyclically output from the first row of the variable or output zeros based on the repeat flag entree.')
  495. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']],...
  496. 'Mask Entries','randint(2000,1,2)/.5/1/1/')
  497. %     Finished composite block ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom'].
  498. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Bitstrom']],...
  499. 'position',[25,48,85,92])
  500. %     Subsystem  ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber'].
  501. new_system([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']])
  502. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],'Location',[158,441,759,682])
  503. add_block('built-in/Unit Delay',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Unit Delay1']])
  504. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Unit Delay1']],...
  505. 'orientation',2,...
  506. 'Sample time','[Ts,st2]',...
  507. 'x0','ini',...
  508. 'position',[140,165,190,185])
  509. add_block('built-in/Unit Delay',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Unit Delay']])
  510. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Unit Delay']],...
  511. 'orientation',2,...
  512. 'Sample time','[Ts,st1]',...
  513. 'position',[145,75,195,95])
  514. add_block('built-in/Constant',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Constant']])
  515. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Constant']],...
  516. 'position',[25,30,45,50])
  517. add_block('built-in/Sum',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Sum']])
  518. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Sum']],...
  519. 'hide name',0,...
  520. 'inputs','+-',...
  521. 'position',[135,35,155,55])
  522. add_block('built-in/Sum',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Sum1']])
  523. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Sum1']],...
  524. 'hide name',0,...
  525. 'inputs','+-',...
  526. 'position',[130,120,150,140])
  527. add_block('built-in/Relational Operator',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Relational',13,'operator']])
  528. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Relational',13,'operator']],...
  529. 'hide name',0,...
  530. 'position',[370,102,400,133])
  531. add_block('built-in/Clock',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Clock1']])
  532. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Clock1']],...
  533. 'hide name',0,...
  534. 'position',[295,100,315,120])
  535. add_block('built-in/Constant',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Constant1']])
  536. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Constant1']],...
  537. 'Value','stt',...
  538. 'position',[295,149,320,171])
  539. add_block('built-in/Logical Operator',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Logical',13,'Operator']])
  540. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Logical',13,'Operator']],...
  541. 'Operator','XOR',...
  542. 'position',[285,38,315,62])
  543. add_block('built-in/Logical Operator',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Logical',13,'Operator1']])
  544. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Logical',13,'Operator1']],...
  545. 'Operator','NOT',...
  546. 'Number of Input Ports','1',...
  547. 'position',[355,38,385,62])
  548. add_block('built-in/Product',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Product']])
  549. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Product']],...
  550. 'hide name',0,...
  551. 'position',[455,105,480,125])
  552. add_block('built-in/Gain',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Gain']])
  553. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/Gain']],...
  554. 'hide name',0,...
  555. 'Gain','ht',...
  556. 'position',[510,102,535,128])
  557. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/out_1']])
  558. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber/out_1']],...
  559. 'hide name',0,...
  560. 'position',[560,105,580,125])
  561. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[155,130;245,130;245,55;280,55])
  562. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[160,45;280,45])
  563. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[50,40;70,40;70,125;125,125])
  564. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[135,175;100,175;100,135;125,135])
  565. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[155,130;210,130;210,175;195,175])
  566. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[50,40;130,40])
  567. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[160,45;230,45;230,85;200,85])
  568. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[140,85;105,85;105,50;130,50])
  569. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[320,110;365,110])
  570. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[405,120;450,120])
  571. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[485,115;505,115])
  572. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[540,115;555,115])
  573. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[325,160;345,160;345,125;365,125])
  574. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[320,50;350,50])
  575. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],[390,50;430,50;430,110;450,110])
  576. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],...
  577. 'Mask Display','plot(0,0,100,100,[90,75,75,60,60,35,35,20,20,10],[20,20,80,80,20,20,80,80,20,20])',...
  578. 'Mask Type','Pulse Generator')
  579. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],...
  580. 'Mask Dialogue','Pulse Generator.|Pulse period (secs):|Pulse width:|Pulse height:|Pulse start time:')
  581. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],...
  582. 'Mask Translate','Ts=@1; du=@2; ht=@3; stt=@4; ini=ones(length(ht),1); st1=rem(stt,Ts); st2=rem(stt+du,Ts);if(Ts<=1.2*du),ini=zeros(length(ht),1);end;')
  583. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],...
  584. 'Mask Help','Pulse generator which ensures pulsentransitions are hit. Provides a vector of pulses when the height is entered as a vector.nUnmask to see how it works.')
  585. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],...
  586. 'Mask Entries','.5/.25/1/0/')
  587. %     Finished composite block ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber'].
  588. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Taktgeber']],...
  589. 'position',[35,147,70,183])
  590. %     Subsystem  ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister'].
  591. new_system([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']])
  592. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],'Location',[19,610,374,740])
  593. add_block('built-in/Demux',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/Demux']])
  594. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/Demux']],...
  595. 'outputs','[len_rg, 1]',...
  596. 'position',[260,55,300,90])
  597. add_block('built-in/S-Function',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/S-function']])
  598. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/S-function']],...
  599. 'function name','regshift',...
  600. 'parameters','shft_out, thrhld',...
  601. 'position',[150,65,200,85])
  602. add_block('built-in/Mux',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/Mux']])
  603. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/Mux']],...
  604. 'inputs','2',...
  605. 'position',[80,56,115,89])
  606. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/out_1']])
  607. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/out_1']],...
  608. 'position',[330,55,350,75])
  609. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/out_2']])
  610. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/out_2']],...
  611. 'Port','2',...
  612. 'position',[330,70,350,90])
  613. add_block('built-in/Inport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/in_1']])
  614. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/in_1']],...
  615. 'position',[30,55,50,75])
  616. add_block('built-in/Inport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/in_2']])
  617. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister/in_2']],...
  618. 'Port','2',...
  619. 'position',[30,70,50,90])
  620. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],[120,75;145,75])
  621. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],[205,75;255,75])
  622. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],[305,65;325,65])
  623. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],[305,80;325,80])
  624. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],[55,65;75,65])
  625. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],[55,80;75,80])
  626. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],...
  627. 'Mask Display','plot(0,0,100,100,x,y,v,w);Reg. shift',...
  628. 'Mask Type','Register-shift')
  629. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],...
  630. 'Mask Dialogue','The rising edge of the 2nd port pulsentriggers the block to input the 1st port data and to shift the register.|Delay steps (output length is same as this vector size):|Threshold in detecting the rising edge of the pulse:')
  631. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],...
  632. 'Mask Translate','shft_out=@1;thrhld=@2;len_rg=length(@1);[v,w]=trigicon(0,25,get_param(gcb,''orientation''),2);[x,y]=trigicon(1,75,get_param(gcb,''orientation''),2);')
  633. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],...
  634. 'Mask Help','This block stores the scalar input signal from the 1st input port at the rising edge of the pulse from the 2nd port. The 1st outport outputs a vector with its size the same as the "Delay steps" entree of this block. The maximum delay is the register size of this block. The second outport outputs a positive pulse when the register isnrefreshed.')
  635. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],...
  636. 'Mask Entries','[2 1]/1/')
  637. %     Finished composite block ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister'].
  638. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Schieberegister']],...
  639. 'position',[120,133,200,177])
  640. %     Subsystem  ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe'].
  641. new_system([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']])
  642. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],'Location',[22,58,460,228])
  643. add_block('built-in/Inport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/in_3']])
  644. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/in_3']],...
  645. 'Port','3',...
  646. 'position',[65,85,85,105])
  647. add_block('built-in/Inport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/in_2']])
  648. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/in_2']],...
  649. 'Port','2',...
  650. 'position',[40,70,60,90])
  651. add_block('built-in/Inport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/in_1']])
  652. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/in_1']],...
  653. 'position',[15,55,35,75])
  654. add_block('built-in/S-Function',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/S-function']])
  655. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/S-function']],...
  656. 'function name','regdown',...
  657. 'parameters','ini_idx, idx_inc, thrshld, cycl_flag',...
  658. 'position',[185,70,235,90])
  659. add_block('built-in/Demux',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/Demux']])
  660. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/Demux']],...
  661. 'outputs','[out_size 1]',...
  662. 'position',[290,62,330,98])
  663. add_block('built-in/Mux',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/Mux']])
  664. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/Mux']],...
  665. 'inputs','[in_size 1 1]',...
  666. 'position',[110,59,140,101])
  667. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/out_2']])
  668. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/out_2']],...
  669. 'Port','2',...
  670. 'position',[355,80,375,100])
  671. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/out_1']])
  672. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe/out_1']],...
  673. 'position',[390,60,410,80])
  674. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],[90,95;105,95])
  675. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],[335,90;350,90])
  676. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],[65,80;105,80])
  677. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],[335,70;385,70])
  678. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],[40,65;105,65])
  679. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],[145,80;180,80])
  680. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],[240,80;285,80])
  681. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],...
  682. 'Mask Display','plot(0,0,100,100,x,y,v,w,u,z);Buffer dwn',...
  683. 'Mask Type','Triggered buffer down')
  684. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],...
  685. 'Mask Dialogue','Rising edge of the 2nd port triggers 1st port vector signal in. Rising edge of the 3rd port triggers 1st outport signal out.|Input signal vector size:|Initial index (integer vector):|Increment for each index (integer vector):|Trigger threshold:|When index exceed register size, 1: cyclic out, 0: zero out:')
  686. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],...
  687. 'Mask Translate','in_size=@1;ini_idx=@2;idx_inc=@3;thrshld=@4;cycl_flag=@5;out_size=length(ini_idx);[v,w]=trigicon(0,25,get_param(gcb,''orientation''),2);[x,y]=trigicon(1,75,get_param(gcb,''orientation''),2);[u,z]=trigicon(0,50,get_param(gcb,''orientation''),2);')
  688. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],...
  689. 'Mask Help','The block refreshes its registers with the vector input from the 1st inport at the rising edge of the 2nd inport pulse. The 1st outport outputs the elements of the registers starting with the given initial index. The rising edge of the 3rd inport pulse triggers the 1st output to output the register value with the index increasing the increment value. The second outport outputs a spike pulse when the internal register is refreshed.')
  690. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],...
  691. 'Mask Entries','2/[1 0]/[0 0]/1/0/')
  692. %     Finished composite block ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe'].
  693. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Haltestufe']],...
  694. 'position',[260,138,340,182])
  695. add_block('built-in/S-Function',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/D//A Wandlung']])
  696. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/D//A Wandlung']],...
  697. 'function name','simbi2de',...
  698. 'parameters','p',...
  699. 'Mask Display','Vec to scanconverter',...
  700. 'Mask Type','Base M vector to decimal integer')
  701. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/D//A Wandlung']],...
  702. 'Mask Dialogue','Convert base M integer with eachnposition in the input vector into scalar decimal output.|Input integer base M:')
  703. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/D//A Wandlung']],...
  704. 'Mask Translate','p=@1;')
  705. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/D//A Wandlung']],...
  706. 'Mask Help','This block convert the base M vector into scalar decimal integer output. Each element of the input vector is one position of the digit of the base M integer. The 1st element in the input vector contains the 1''s position. The 2nd element in the input vector contains the M''s position.')
  707. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/D//A Wandlung']],...
  708. 'Mask Entries','2/',...
  709. 'position',[370,128,450,172])
  710. %     Subsystem  ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung'].
  711. new_system([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']])
  712. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],'Location',[12,432,357,702])
  713. add_block('built-in/Relational Operator',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Relational',13,'Operator']])
  714. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Relational',13,'Operator']],...
  715. 'position',[150,168,180,192])
  716. add_block('built-in/Constant',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Constant1']])
  717. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Constant1']],...
  718. 'Value','n*ts(1)+ts(2)',...
  719. 'position',[15,194,100,216])
  720. add_block('built-in/Constant',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Constant']])
  721. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Constant']],...
  722. 'Value','ini',...
  723. 'position',[120,230,140,250])
  724. add_block('built-in/Switch',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Switch']])
  725. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Switch']],...
  726. 'Threshold','.1',...
  727. 'position',[270,114,295,146])
  728. add_block('built-in/Filter',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/K-step',13,'delay']])
  729. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/K-step',13,'delay']],...
  730. 'Numerator','[zeros(1,n), 1]',...
  731. 'Denominator','1',...
  732. 'Sample time','ts',...
  733. 'position',[60,70,185,110])
  734. add_block('built-in/Outport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/out_1']])
  735. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/out_1']],...
  736. 'position',[325,120,345,140])
  737. add_block('built-in/Inport',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/in_1']])
  738. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/in_1']],...
  739. 'position',[20,80,40,100])
  740. add_block('built-in/Digital Clock',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Digital Clock']])
  741. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung/Digital Clock']],...
  742. 'Sample time','ts',...
  743. 'position',[60,140,95,170])
  744. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],[185,180;220,180;220,130;265,130])
  745. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],[105,205;115,205;115,185;145,185])
  746. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],[100,155;115,155;115,175;145,175])
  747. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],[145,240;240,240;240,140;265,140])
  748. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],[190,90;195,90;195,120;265,120])
  749. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],[45,90;55,90])
  750. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],[300,130;320,130])
  751. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],...
  752. 'Mask Display','    -knz   ',...
  753. 'Mask Type','Multi-step delay')
  754. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],...
  755. 'Mask Dialogue','Output is K-step delay of the input signal.|Delay steps (integer):|Sample time (sec):|Initial output:')
  756. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],...
  757. 'Mask Translate','n=@1;ts=@2;if length(ts)<2, ts=[ts 0];end;ini=@3;')
  758. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],...
  759. 'Mask Help','This block holds the input signal for K steps and then outputs the signal. The delay step cannot be changed during the simulation.')
  760. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],...
  761. 'Mask Entries','2/.5/0/')
  762. %     Finished composite block ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung'].
  763. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Verz鰃erung']],...
  764. 'position',[260,48,340,92])
  765. add_block('built-in/Note',[sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Jeweils zwei Bits des Bitstroms werden zu einem quatern鋜en Symbol decodiert.',13,'Reihenfolge der Bits: Zuerst MSB, dann LSB.']])
  766. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK/Jeweils zwei Bits des Bitstroms werden zu einem quatern鋜en Symbol decodiert.',13,'Reihenfolge der Bits: Zuerst MSB, dann LSB.']],...
  767. 'position',[265,0,270,5])
  768. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[345,170;355,170;355,205;475,205])
  769. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[455,150;475,150])
  770. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[345,70;475,70])
  771. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[205,145;255,145])
  772. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[345,150;365,150])
  773. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[75,165;115,165])
  774. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[205,165;225,165;225,160;255,160])
  775. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[225,165;225,175;255,175])
  776. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[90,70;255,70])
  777. add_line([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],[105,70;115,145])
  778. %     Finished composite block ['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK'].
  779. set_param([sys,'/',['Sender/Quatern鋜e',13,'Quelle',13,'f黵 QPSK']],...
  780. 'position',[25,109,55,161])
  781. %     Subsystem  'Sender/Diagramme'.
  782. new_system([sys,'/','Sender/Diagramme'])
  783. set_param([sys,'/','Sender/Diagramme'],'Location',[669,447,1065,724])
  784. add_block('built-in/Switch',[sys,'/','Sender/Diagramme/Switch'])
  785. set_param([sys,'/','Sender/Diagramme/Switch'],...
  786. 'Threshold','1',...
  787. 'position',[130,29,155,61])
  788. add_block('built-in/Switch',[sys,'/','Sender/Diagramme/Switch1'])
  789. set_param([sys,'/','Sender/Diagramme/Switch1'],...
  790. 'Threshold','1',...
  791. 'position',[130,84,155,116])
  792. add_block('built-in/Inport',[sys,'/','Sender/Diagramme/Inphase'])
  793. set_param([sys,'/','Sender/Diagramme/Inphase'],...
  794. 'position',[30,25,50,45])
  795. add_block('built-in/Inport',[sys,'/','Sender/Diagramme/Quadratur'])
  796. set_param([sys,'/','Sender/Diagramme/Quadratur'],...
  797. 'Port','2',...
  798. 'position',[30,80,50,100])
  799. add_block('built-in/Step Fcn',[sys,'/','Sender/Diagramme/Step input'])
  800. set_param([sys,'/','Sender/Diagramme/Step input'],...
  801. 'Time','starttime',...
  802. 'position',[30,125,50,145])
  803. %     Subsystem  'Sender/Diagramme/Signalraumpunkte'.
  804. new_system([sys,'/','Sender/Diagramme/Signalraumpunkte'])
  805. set_param([sys,'/','Sender/Diagramme/Signalraumpunkte'],'Location',[165,242,460,428])
  806. add_block('built-in/S-Function',[sys,'/','Sender/Diagramme/Signalraumpunkte/Plot1'])
  807. set_param([sys,'/','Sender/Diagramme/Signalraumpunkte/Plot1'],...
  808. 'function name','eyesampl',...
  809. 'parameters','time_range, boundary, kept_length, eye_line, scatter_line, two_d_line',...
  810. 'position',[130,70,200,110])
  811. add_block('built-in/Inport',[sys,'/','Sender/Diagramme/Signalraumpunkte/in_1'])
  812. set_param([sys,'/','Sender/Diagramme/Signalraumpunkte/in_1'],...
  813. 'position',[75,80,95,100])
  814. add_line([sys,'/','Sender/Diagramme/Signalraumpunkte'],[100,90;125,90])
  815. set_param([sys,'/','Sender/Diagramme/Signalraumpunkte'],...
  816. 'Mask Display','plot(0,0,100,100,x,y);',...
  817. 'Mask Type','Eye-diagram/scatter plot')
  818. set_param([sys,'/','Sender/Diagramme/Signalraumpunkte'],...
  819. '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:')
  820. set_param([sys,'/','Sender/Diagramme/Signalraumpunkte'],...
  821. 'Mask Translate','time_range=@1;boundary=@2;kept_length=@3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);')
  822. set_param([sys,'/','Sender/Diagramme/Signalraumpunkte'],...
  823. '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.')
  824. set_param([sys,'/','Sender/Diagramme/Signalraumpunkte'],...
  825. 'Mask Entries','[1 .5 .999]/[-1.5 1.5]/0/0/''y.''/[.5 offset]/')
  826. %     Finished composite block 'Sender/Diagramme/Signalraumpunkte'.
  827. set_param([sys,'/','Sender/Diagramme/Signalraumpunkte'],...
  828. 'position',[305,213,360,247])
  829. add_block('built-in/Mux',[sys,'/','Sender/Diagramme/Mux3'])
  830. set_param([sys,'/','Sender/Diagramme/Mux3'],...
  831. 'inputs','2',...
  832. 'position',[230,211,265,244])
  833. add_block('built-in/Mux',[sys,'/','Sender/Diagramme/Mux2'])
  834. set_param([sys,'/','Sender/Diagramme/Mux2'],...
  835. 'inputs','2',...
  836. 'position',[230,146,265,179])
  837. %     Subsystem  'Sender/Diagramme/Trajektorie'.
  838. new_system([sys,'/','Sender/Diagramme/Trajektorie'])
  839. set_param([sys,'/','Sender/Diagramme/Trajektorie'],'Location',[165,242,460,428])
  840. add_block('built-in/S-Function',[sys,'/','Sender/Diagramme/Trajektorie/Plot1'])
  841. set_param([sys,'/','Sender/Diagramme/Trajektorie/Plot1'],...
  842. 'function name','eyediasi',...
  843. 'parameters','time_range, boundary, kept_length, eye_line, scatter_line, two_d_line',...
  844. 'position',[130,70,200,110])
  845. add_block('built-in/Mux',[sys,'/','Sender/Diagramme/Trajektorie/Mux'])
  846. set_param([sys,'/','Sender/Diagramme/Trajektorie/Mux'],...
  847. 'inputs','2',...
  848. 'position',[65,70,100,105])
  849. add_block('built-in/Inport',[sys,'/','Sender/Diagramme/Trajektorie/in_2'])
  850. set_param([sys,'/','Sender/Diagramme/Trajektorie/in_2'],...
  851. 'Port','2',...
  852. 'position',[20,115,40,135])
  853. add_block('built-in/Inport',[sys,'/','Sender/Diagramme/Trajektorie/in_1'])
  854. set_param([sys,'/','Sender/Diagramme/Trajektorie/in_1'],...
  855. 'position',[15,55,35,75])
  856. add_line([sys,'/','Sender/Diagramme/Trajektorie'],[105,90;125,90])
  857. add_line([sys,'/','Sender/Diagramme/Trajektorie'],[45,125;50,125;60,95])
  858. add_line([sys,'/','Sender/Diagramme/Trajektorie'],[40,65;45,65;45,80;60,80])
  859. set_param([sys,'/','Sender/Diagramme/Trajektorie'],...
  860. 'Mask Display','plot(0,0,100,100,x,y,v,w);',...
  861. 'Mask Type','Eye-diagram/scatter plot')
  862. set_param([sys,'/','Sender/Diagramme/Trajektorie'],...
  863. '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):')
  864. set_param([sys,'/','Sender/Diagramme/Trajektorie'],...
  865. '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);')
  866. set_param([sys,'/','Sender/Diagramme/Trajektorie'],...
  867. '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.')
  868. set_param([sys,'/','Sender/Diagramme/Trajektorie'],...
  869. 'Mask Entries','[2 0 1]/[-1.5 1.5]/0/0/0/''g-''/')
  870. %     Finished composite block 'Sender/Diagramme/Trajektorie'.
  871. set_param([sys,'/','Sender/Diagramme/Trajektorie'],...
  872. 'position',[305,155,360,190])
  873. add_block('built-in/Constant',[sys,'/','Sender/Diagramme/Constant0'])
  874. set_param([sys,'/','Sender/Diagramme/Constant0'],...
  875. 'orientation',3,...
  876. 'hide name',0,...
  877. 'Value','0',...
  878. 'position',[190,125,210,145])
  879. add_block('built-in/Constant',[sys,'/','Sender/Diagramme/Constant'])
  880. set_param([sys,'/','Sender/Diagramme/Constant'],...
  881. 'orientation',3,...
  882. 'hide name',0,...
  883. 'Value','Inf',...
  884. 'position',[90,125,110,145])
  885. add_block('built-in/Mux',[sys,'/','Sender/Diagramme/Mux1'])
  886. set_param([sys,'/','Sender/Diagramme/Mux1'],...
  887. 'inputs','2',...
  888. 'position',[230,76,265,109])
  889. add_block('built-in/Mux',[sys,'/','Sender/Diagramme/Mux'])
  890. set_param([sys,'/','Sender/Diagramme/Mux'],...
  891. 'inputs','2',...
  892. 'position',[230,21,265,54])
  893. %     Subsystem  'Sender/Diagramme/Auge Inphase'.
  894. new_system([sys,'/','Sender/Diagramme/Auge Inphase'])
  895. set_param([sys,'/','Sender/Diagramme/Auge Inphase'],'Location',[121,409,416,595])
  896. add_block('built-in/S-Function',[sys,'/','Sender/Diagramme/Auge Inphase/Plot1'])
  897. set_param([sys,'/','Sender/Diagramme/Auge Inphase/Plot1'],...
  898. 'function name','eyesampl',...
  899. 'parameters','time_range, boundary, kept_length, eye_line, scatter_line, two_d_line',...
  900. 'position',[130,70,200,110])
  901. add_block('built-in/Inport',[sys,'/','Sender/Diagramme/Auge Inphase/in_1'])
  902. set_param([sys,'/','Sender/Diagramme/Auge Inphase/in_1'],...
  903. 'position',[75,80,95,100])
  904. add_line([sys,'/','Sender/Diagramme/Auge Inphase'],[100,90;125,90])
  905. set_param([sys,'/','Sender/Diagramme/Auge Inphase'],...
  906. 'Mask Display','plot(0,0,100,100,x,y);',...
  907. 'Mask Type','Eye-diagram/scatter plot')
  908. set_param([sys,'/','Sender/Diagramme/Auge Inphase'],...
  909. '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:')
  910. set_param([sys,'/','Sender/Diagramme/Auge Inphase'],...
  911. 'Mask Translate','time_range=@1;boundary=@2;kept_length=@3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);')
  912. set_param([sys,'/','Sender/Diagramme/Auge Inphase'],...
  913. '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.')
  914. set_param([sys,'/','Sender/Diagramme/Auge Inphase'],...
  915. 'Mask Entries','[2 0 1+offset]/[-1.5 1.5]/0/''w-/r-''/0/2/anzahl/')
  916. %     Finished composite block 'Sender/Diagramme/Auge Inphase'.
  917. set_param([sys,'/','Sender/Diagramme/Auge Inphase'],...
  918. 'position',[305,22,360,58])
  919. %     Subsystem  'Sender/Diagramme/Auge Quadratur'.
  920. new_system([sys,'/','Sender/Diagramme/Auge Quadratur'])
  921. set_param([sys,'/','Sender/Diagramme/Auge Quadratur'],'Location',[121,409,416,595])
  922. add_block('built-in/Inport',[sys,'/','Sender/Diagramme/Auge Quadratur/in_1'])
  923. set_param([sys,'/','Sender/Diagramme/Auge Quadratur/in_1'],...
  924. 'position',[75,80,95,100])
  925. add_block('built-in/S-Function',[sys,'/','Sender/Diagramme/Auge Quadratur/Plot1'])
  926. set_param([sys,'/','Sender/Diagramme/Auge Quadratur/Plot1'],...
  927. 'function name','eyesampl',...
  928. 'parameters','time_range, boundary, kept_length, eye_line, scatter_line, two_d_line',...
  929. 'position',[130,70,200,110])
  930. add_line([sys,'/','Sender/Diagramme/Auge Quadratur'],[100,90;125,90])
  931. set_param([sys,'/','Sender/Diagramme/Auge Quadratur'],...
  932. 'Mask Display','plot(0,0,100,100,x,y);',...
  933. 'Mask Type','Eye-diagram/scatter plot')
  934. set_param([sys,'/','Sender/Diagramme/Auge Quadratur'],...
  935. '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:')
  936. set_param([sys,'/','Sender/Diagramme/Auge Quadratur'],...
  937. 'Mask Translate','time_range=@1;boundary=@2;kept_length=@3;eye_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);')
  938. set_param([sys,'/','Sender/Diagramme/Auge Quadratur'],...
  939. '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.')
  940. set_param([sys,'/','Sender/Diagramme/Auge Quadratur'],...
  941. 'Mask Entries','[2 0 1+offset]/[-1.5 1.5]/0/''w-/r-''/0/2/anzahl/')
  942. %     Finished composite block 'Sender/Diagramme/Auge Quadratur'.
  943. set_param([sys,'/','Sender/Diagramme/Auge Quadratur'],...
  944. 'position',[305,77,360,113])
  945. add_line([sys,'/','Sender/Diagramme'],[270,165;300,165])
  946. add_line([sys,'/','Sender/Diagramme'],[270,230;300,230])
  947. add_line([sys,'/','Sender/Diagramme'],[270,40;300,40])
  948. add_line([sys,'/','Sender/Diagramme'],[270,95;300,95])
  949. add_line([sys,'/','Sender/Diagramme'],[100,120;100,55;125,55])
  950. add_line([sys,'/','Sender/Diagramme'],[100,110;125,110])
  951. add_line([sys,'/','Sender/Diagramme'],[55,135;75,135;75,45;125,45])
  952. add_line([sys,'/','Sender/Diagramme'],[75,100;125,100])
  953. add_line([sys,'/','Sender/Diagramme'],[55,35;125,35])
  954. add_line([sys,'/','Sender/Diagramme'],[55,90;125,90])
  955. add_line([sys,'/','Sender/Diagramme'],[160,45;170,45;170,220;225,220])
  956. add_line([sys,'/','Sender/Diagramme'],[170,155;225,155])
  957. add_line([sys,'/','Sender/Diagramme'],[160,100;180,100;180,235;225,235])
  958. add_line([sys,'/','Sender/Diagramme'],[180,170;225,170])
  959. add_line([sys,'/','Sender/Diagramme'],[200,120;200,85;225,85])
  960. add_line([sys,'/','Sender/Diagramme'],[200,85;200,30;225,30])
  961. add_line([sys,'/','Sender/Diagramme'],[180,100;225,100])
  962. add_line([sys,'/','Sender/Diagramme'],[170,45;225,45])
  963. set_param([sys,'/','Sender/Diagramme'],...
  964. 'Mask Display','plot(0,0,100,100,x,y)',...
  965. 'Mask Type','2D-Diagramme')
  966. set_param([sys,'/','Sender/Diagramme'],...
  967. 'Mask Dialogue','Augendiagramm, Trajektorie undnSignalraumpunkte.|Startzeit f黵 Plot:|Abtastwerte pro Zeitfenster (2*TS):|Offset der Entscheiderlinie zur Mitte:')
  968. set_param([sys,'/','Sender/Diagramme'],...
  969. 'Mask Translate','starttime = @1;  anzahl = @2; offset = @3; [x, y] = srcsicon(10);')
  970. set_param([sys,'/','Sender/Diagramme'],...
  971. 'Mask Help','Dieser Block stellt die Augendiagramme, Trajektorien,nund Signalraumpunkte auf der Sende- oder Empfangsseite dar',...
  972. 'Mask Entries','6/40/0/')
  973. %     Finished composite block 'Sender/Diagramme'.
  974. set_param([sys,'/','Sender/Diagramme'],...
  975. 'position',[570,10,625,50])
  976. add_line([sys,'/','Sender'],[195,145;205,145;205,250;270,250])
  977. add_line([sys,'/','Sender'],[235,250;235,200])
  978. add_line([sys,'/','Sender'],[195,125;205,125;205,90;270,90])
  979. add_line([sys,'/','Sender'],[235,90;235,45])
  980. add_line([sys,'/','Sender'],[60,135;105,135])
  981. add_line([sys,'/','Sender'],[805,245;860,245])
  982. add_line([sys,'/','Sender'],[835,245;835,170;875,170])
  983. add_line([sys,'/','Sender'],[805,95;860,95])
  984. add_line([sys,'/','Sender'],[835,95;835,160;875,160])
  985. add_line([sys,'/','Sender'],[415,90;765,90])
  986. add_line([sys,'/','Sender'],[445,90;445,45])
  987. add_line([sys,'/','Sender'],[415,250;765,250])
  988. add_line([sys,'/','Sender'],[440,250;440,200])
  989. add_line([sys,'/','Sender'],[510,90;510,20;565,20])
  990. add_line([sys,'/','Sender'],[535,250;535,40;565,40])
  991. add_line([sys,'/','Sender'],[360,250;380,250])
  992. add_line([sys,'/','Sender'],[360,90;380,90])
  993. add_line([sys,'/','Sender'],[580,165;590,165;590,190;610,190])
  994. add_line([sys,'/','Sender'],[580,165;590,165;590,145;610,145])
  995. add_line([sys,'/','Sender'],[715,145;735,145;735,100;765,100])
  996. add_line([sys,'/','Sender'],[715,190;735,190;735,240;765,240])
  997. add_line([sys,'/','Sender'],[60,150;80,150;80,215;105,215])
  998. add_line([sys,'/','Sender'],[905,165;935,165;935,115])
  999. add_line([sys,'/','Sender'],[935,165;960,165])
  1000. add_line([sys,'/','Sender'],[80,135;80,70;105,70])
  1001. add_line([sys,'/','Sender'],[60,120;65,120;65,25;105,25])
  1002. %     Finished composite block 'Sender'.
  1003. set_param([sys,'/','Sender'],...
  1004. 'position',[200,72,275,158])
  1005. %     Subsystem  'Doppelklick2'.
  1006. new_system([sys,'/','Doppelklick2'])
  1007. set_param([sys,'/','Doppelklick2'],'Location',[136,230,381,439])
  1008. set_param([sys,'/','Doppelklick2'],...
  1009. 'Mask Display','Zeige Sender',...
  1010. 'Mask Type','鰂fnen',...
  1011. 'Mask Dialogue','eval(''showsend'')')
  1012. %     Finished composite block 'Doppelklick2'.
  1013. set_param([sys,'/','Doppelklick2'],...
  1014. 'BackGround',7,...
  1015. 'hide name',0,...
  1016. 'Font Angle','italic',...
  1017. 'position',[30,85,165,111])
  1018. %     Subsystem  'Doppelklick3'.
  1019. new_system([sys,'/','Doppelklick3'])
  1020. set_param([sys,'/','Doppelklick3'],'Location',[136,230,381,439])
  1021. set_param([sys,'/','Doppelklick3'],...
  1022. 'Mask Display','Zeige Empf鋘ger',...
  1023. 'Mask Type','鰂fnen',...
  1024. 'Mask Dialogue','eval(''showempf'')')
  1025. %     Finished composite block 'Doppelklick3'.
  1026. set_param([sys,'/','Doppelklick3'],...
  1027. 'BackGround',7,...
  1028. 'hide name',0,...
  1029. 'Font Angle','italic',...
  1030. 'position',[800,85,935,111])
  1031. %     Subsystem  'Signalraumkonstellation_'.
  1032. new_system([sys,'/','Signalraumkonstellation_'])
  1033. set_param([sys,'/','Signalraumkonstellation_'],'Location',[0,38,1264,980])
  1034. set_param([sys,'/','Signalraumkonstellation_'],...
  1035. 'Mask Display','SignalraumnKonstellation',...
  1036. 'Mask Dialogue','eval(''figure''); eval(''modmap(''''qask/cir'''',4,sqrt(2),pi/4)'')')
  1037. %     Finished composite block 'Signalraumkonstellation_'.
  1038. set_param([sys,'/','Signalraumkonstellation_'],...
  1039. 'BackGround',7,...
  1040. 'hide name',0,...
  1041. 'position',[55,20,140,56])
  1042. add_block('built-in/Scope',[sys,'/','s(t)'])
  1043. set_param([sys,'/','s(t)'],...
  1044. 'orientation',3,...
  1045. 'Vgain','1.500000',...
  1046. 'Hgain','25.000000',...
  1047. 'Vmax','3.000000',...
  1048. 'Hmax','50.000000',...
  1049. 'Window',[360,538,1280,638])
  1050. open_system([sys,'/','s(t)'])
  1051. set_param([sys,'/','s(t)'],...
  1052. 'position',[390,25,420,55])
  1053. add_block('built-in/Scope',[sys,'/','r(t)'])
  1054. set_param([sys,'/','r(t)'],...
  1055. 'orientation',3,...
  1056. 'Vgain','1.500000',...
  1057. 'Hgain','25.000000',...
  1058. 'Vmax','3.000000',...
  1059. 'Hmax','50.000000',...
  1060. 'Window',[360,638,1280,738])
  1061. open_system([sys,'/','r(t)'])
  1062. set_param([sys,'/','r(t)'],...
  1063. 'position',[585,25,615,55])
  1064. %     Subsystem  'Doppelklick5'.
  1065. new_system([sys,'/','Doppelklick5'])
  1066. set_param([sys,'/','Doppelklick5'],'Location',[136,230,381,439])
  1067. set_param([sys,'/','Doppelklick5'],...
  1068. 'Mask Display','Rauschen einstellen',...
  1069. 'Mask Type','rauschen',...
  1070. 'Mask Dialogue','eval(''setnoise'')')
  1071. %     Finished composite block 'Doppelklick5'.
  1072. set_param([sys,'/','Doppelklick5'],...
  1073. 'BackGround',7,...
  1074. 'hide name',0,...
  1075. 'Font Angle','italic',...
  1076. 'position',[440,50,575,76])
  1077. add_line(sys,[280,105;405,105;405,60])
  1078. add_line(sys,[280,125;335,125;335,215])
  1079. add_line(sys,[280,85;335,85;335,60])
  1080. add_line(sys,[405,105;460,105])
  1081. add_line(sys,[550,105;645,105])
  1082. add_line(sys,[730,105;760,105;760,215])
  1083. add_line(sys,[760,185;525,185;525,210])
  1084. add_line(sys,[335,185;485,185;485,210])
  1085. add_line(sys,[600,105;600,60])
  1086. drawnow
  1087. % Return any arguments.
  1088. if (nargin | nargout)
  1089. % Must use feval here to access system in memory
  1090. if (nargin > 3)
  1091. if (flag == 0)
  1092. eval(['[ret,x0,str,ts,xts]=',sys,'(t,x,u,flag);'])
  1093. else
  1094. eval(['ret =', sys,'(t,x,u,flag);'])
  1095. end
  1096. else
  1097. [ret,x0,str,ts,xts] = feval(sys);
  1098. end
  1099. else
  1100. drawnow % Flash up the model and execute load callback
  1101. end