[beagleboard] Re: BBB Libpruio Analog Data

2021-03-14 Thread TJF
16 bit = 2 byte! Parsing the buffer in JavaScript code: const val = new Uint16Array(Buffer); // val.length = 1 (2 channels x 5000 samples) // output raw data: integer from 0 (=0V) to 4095 (=1V8) console.log(val[0], val[1]); // first samples AIN-1, AIN-2 console.log(val[2], val[3]); //

[beagleboard] Re: BBB Libpruio Analog Data

2021-03-11 Thread Ritesh Bhatt
Hello TJF, Thank you for the explanation that is very useful! With parsing the file, I'm doing that in Node-Red reading in the file as a binary buffer, but for some reason the buffer is 4x the number of sampling points I set. Like let's say I tell the script to sample the analog inputs 5000

[beagleboard] Re: BBB Libpruio Analog Data

2021-03-10 Thread TJF
Hi! ritesh...@gmail.com schrieb am Dienstag, 9. März 2021 um 21:15:01 UTC+1: > Specifically, they are collecting the data using Ring Buffer mode and > saving it to a text file to be processed further for some feature > extraction and further analysis. > > What I'm trying to understand is this: