OpenBCI_GUI 3.2.0 and Max 7: Networking
retiutut
Louisiana, USA
Hello All,
The current GUI for Mac is working well via OSC messages, and I'm doing my best to create a template to make the data usable with Max 7 objects. I have a few questions to make this possible. The data looks correct when displayed on multislider objects, but I don't understand how the received OSC values correlate to what I see in the GUI in regards to measurements.
How do I convert the Time Series amplitude to microvolts?
Recorded Data Range on Synthetic Channel 1: -150. to 150. (floating point)
I believe I can plot the data logarithmically as in the GUI in Max, but it doesn't seem to match what the GUI shows with synthetic data. How do I interpret Band Power to (uV)^2 / Hz per channel?
Recorded Data Range on Synthetic: 0. to 5. (floating point)
Can I use the data from the previous question to create a focus algorithm in Max per the description in the GUI?
Comments
The data is in microvolts already!
Link to previous question please.
Recorded Data Range on Synthetic Channel 1: -150. to 150. (floating point)
I believe I can plot the data logarithmically as in the GUI in Max, but it doesn't seem to match what the GUI shows with synthetic data. How do I interpret Band Power to (uV)^2 / Hz per channel?
Recorded Data Range on Synthetic: 0. to 5. (floating point)
Can I use the data from the previous question to create a focus algorithm in Max per the description in the GUI?
public void process(float[][] data_newest_uV, //holds raw bio data that is new since the last call
float[][] data_long_uV, //holds a longer piece of buffered EEG data, of same length as will be plotted on the screen
float[][] data_forDisplay_uV, //this data has been filtered and is ready for plotting on the screen
FFT[] fftData) { //holds the FFT (frequency spectrum) of the latest data
// ...yLittleBuff_uV[Ichan] is the most recent raw data since the last call to this processing routine
// ...dataBuffY_filtY_uV[Ichan] is the full set of filtered data as shown in the time-domain plot in the GUI
// ...fftBuff[Ichan] is the FFT data structure holding the frequency spectrum as shown in the freq-domain plot in the GUI
// w_emg.process(yLittleBuff_uV, dataBuffY_uV, dataBuffY_filtY_uV, fftBuff); //%%%
// w_openbionics.process();
Exact lines of code in the networking widget that send unfiltered time series data:
// TIME SERIES UNFILTERED
if(filter==0){
// OSC
if(this.protocol.equals("OSC")){
for(int i=0;i msg.clearArguments();
for(int j=0;j msg.add(yLittleBuff_uV[j][i]);
}
try{
this.osc.send(msg,this.netaddress);
}catch (Exception e){
println(e);
}
}
https://www.allaboutcircuits.com/tools/rms-voltage-calculator/
: The maximum instantaneous value of a function as measured from the zero-volt level.
VP−P
: The full voltage between positive and negative peaks of the waveform; that is, the sum of the magnitude of the positive and negative peaks.
Vrms
: The root-mean-square or effective value of a waveform.