set adc shl rtl8195am

This commit is contained in:
pvvx 2018-03-04 18:23:47 +03:00
parent 2bc9cc61b3
commit 8529849a5a
4 changed files with 187 additions and 10 deletions

View file

@ -85,8 +85,8 @@ ws.onmessage = function (event) {
oldblkid = blkid + blksz;
for (var i=2; i<wordarray.length; i+=2) {
if(rend) {
if(cur_idx >= samples) datau.shift();
datau.push([cur_idx/smprate, (wordarray[i]-10500)*0.000078, (wordarray[i+1]-10500)*0.000078]);
// datau.push([cur_idx/smprate,wordarray[i],wordarray[i+1]]);
datau.push([cur_idx/smprate, (wordarray[i]-11460)*0.00007757, (wordarray[i+1]-11460)*0.00007757]);
}
cur_idx++;
}
@ -95,17 +95,17 @@ ws.onmessage = function (event) {
$("div_v"),
datau,
{
title: 'RTL871xAx ADCs',
title: 'RTL8195AM ADCs',
showRangeSelector: true,
showRoller: true,
xlabel: 'T(sec)',
ylabel: 'U19(V)',
y2label: 'Uvbat(V)',
colors: ['red','green'],
series : { 'Uvbat': { axis: 'y2' } },
ylabel: 'U2(V)',
y2label: 'U1(V)',
colors: ['green','red'],
series : { 'U1': { axis: 'y2' } },
axes: {
x: {valueFormatter: function(x){return this.getLabels()[0] + ': '+ x.toPrecision(5);}}},
labels: ['T', 'U19', 'Uvbat'],
labels: ['T', 'U2', 'U1'],
labelsDiv: $('labdiv'),
legend: 'always', // "follow"
digitsAfterDecimal: 3,