entries0=846; valmin0=0; valmax0=178;
res0=[
82;	63;	38;	38;	41;	60;	87;	95;	83;	62
38;	38;	41;	59;	86;	95;	83;	63;	38;	37
41;	59;	86;	95;	83;	63;	38;	38;	41;	59
86;	95;	83;	63;	38;	38;	41;	59;	86;	95
83;	63;	38;	38;	41;	58;	86;	95;	83;	63
38;	38;	41;	57;	86;	95;	84;	64;	38;	38
41;	58;	87;	96;	78;	51;	36;	36;	43;	67
87;	94;	79;	52;	37;	36;	44;	67;	87;	96
79;	52;	37;	37;	43;	67;	88;	95;	79;	53
37;	37;	44;	67;	88;	96;	79;	53;	38;	37
44;	67;	88;	96;	79;	53;	37;	37;	43;	68
88;	96;	80;	53;	38;	37;	44;	67;	88;	96
80;	54;	38;	37;	44;	67;	88;	96;	79;	54
38;	37;	44;	67;	87;	96;	80;	54;	38;	37
44;	67;	88;	95;	79;	54;	38;	37;	43;	67
87;	96;	80;	54;	38;	37;	43;	67;	88;	95
81;	54;	38;	37;	44;	67;	87;	96;	80;	55
38;	37;	43;	66;	88;	96;	81;	55;	38;	37
43;	66;	87;	96;	80;	55;	38;	37;	43;	66
88;	95;	80;	55;	38;	37;	43;	65;	87;	96
81;	56;	38;	37;	43;	65;	88;	96;	81;	55
38;	37;	43;	65;	87;	96;	81;	56;	38;	37
43;	64;	87;	95;	81;	56;	38;	38;	43;	65
87;	96;	80;	56;	38;	37;	43;	64;	87;	95
81;	56;	37;	37;	42;	64;	87;	96;	81;	57
38;	63;	81;	110;	136;	147;	135;	111;	89;	89
76;	88;	105;	109;	92;	67;	45;	43;	47;	68
91;	98;	84;	60;	40;	39;	44;	65;	88;	96
83;	60;	39;	38;	43;	64;	88;	96;	82;	60
39;	38;	43;	63;	88;	96;	82;	59;	38;	38
43;	63;	87;	96;	83;	59;	38;	38;	42;	62
87;	95;	82;	59;	38;	38;	42;	62;	86;	96
82;	60;	38;	38;	42;	62;	87;	95;	83;	60
38;	38;	43;	62;	86;	96;	82;	60;	38;	38
42;	61;	87;	95;	83;	60;	38;	37;	41;	61
87;	96;	83;	61;	38;	38;	42;	61;	86;	95
83;	61;	38;	38;	42;	61;	86;	95;	83;	61
38;	38;	41;	60;	87;	95;	83;	62;	38;	38
41;	60;	86;	95;	83;	62;	38;	38;	41;	60
86;	96;	];
entries1=846; valmin1=44; valmax1=152;
res1=[
65;	64;	63;	63;	64;	65;	65;	65;	65;	63
64;	63;	63;	64;	65;	65;	65;	63;	64;	63
64;	64;	65;	65;	65;	63;	63;	64;	64;	64
65;	65;	65;	64;	63;	63;	64;	64;	65;	65
65;	63;	63;	63;	64;	64;	65;	65;	65;	64
63;	64;	63;	65;	65;	65;	65;	64;	63;	63
64;	64;	64;	64;	63;	63;	62;	61;	62;	64
64;	64;	63;	62;	62;	63;	66;	64;	64;	65
64;	63;	63;	63;	63;	64;	65;	64;	63;	63
63;	62;	63;	64;	65;	65;	64;	63;	63;	63
63;	64;	65;	65;	64;	63;	63;	63;	63;	65
66;	65;	64;	63;	63;	63;	64;	64;	65;	65
65;	63;	63;	63;	63;	64;	65;	65;	64;	63
63;	63;	64;	64;	65;	65;	65;	63;	63;	63
64;	64;	65;	65;	64;	63;	63;	63;	63;	64
65;	65;	65;	63;	63;	63;	63;	64;	65;	65
64;	63;	63;	63;	63;	65;	65;	65;	65;	63
63;	63;	63;	64;	65;	65;	65;	63;	63;	63
63;	65;	65;	65;	65;	63;	63;	63;	63;	65
65;	65;	64;	63;	63;	63;	63;	64;	65;	65
64;	64;	63;	63;	63;	65;	65;	65;	64;	63
63;	63;	63;	65;	65;	65;	65;	64;	63;	63
63;	64;	65;	65;	65;	64;	63;	63;	63;	64
65;	65;	64;	63;	63;	63;	63;	64;	65;	65
64;	64;	63;	63;	63;	65;	65;	65;	64;	63
63;	91;	105;	111;	116;	118;	120;	120;	120;	121
102;	91;	85;	80;	76;	73;	71;	69;	69;	69
69;	69;	68;	66;	65;	65;	65;	67;	67;	67
66;	65;	64;	65;	65;	66;	66;	66;	66;	64
63;	64;	64;	65;	65;	66;	65;	64;	64;	63
64;	64;	65;	66;	65;	64;	64;	64;	63;	65
65;	65;	65;	64;	64;	64;	64;	64;	65;	66
65;	64;	63;	62;	63;	65;	65;	65;	65;	64
63;	63;	64;	64;	65;	66;	65;	64;	63;	63
64;	64;	65;	65;	65;	64;	64;	64;	64;	64
65;	66;	65;	64;	63;	64;	63;	65;	65;	65
65;	64;	63;	63;	64;	64;	65;	65;	65;	64
63;	64;	64;	64;	65;	65;	65;	64;	63;	63
64;	64;	65;	65;	65;	64;	63;	63;	63;	64
65;	65;	];
close all;
entries=[entries0,entries1]; res=[res0,res1];
valmin=[valmin0,valmin1]; valmax=[valmax0,valmax1];
for f=1:2
  r=res(:,f); s=shift(r,-mod(entries(f),length(r)));
  sintv=2.5; blen=256; slen=length(s);
  signal=repmat(s,2,1);
  blink=abs([1:blen]-slen/2)<10/sintv; blink=-1+33*blink;
  cs=conv(blink,signal)(blen:end-blen); cs/=std(cs); cs=detrend(cs,0);
  td=sintv*[1:2*slen]; [t,v]=stairs(td,signal);
  figure(f); plotyy(t,v,sintv*(1:length(cs)),cs);
endfor
