Customizing the Time Series Window / Bipolar Longitudinal Montage

nejemianejemia argentina
edited March 2020 in OpenBCI_GUI

Dear all. Is it possible to change within OpenBCI-GUI Time Series Window the name of each channel (1, 2,...8) and replace text by the standard nomination of the Bipolar Longitudinal Array like FP2-F4, F4-C4, C4-P4 and so on?
Next: Once changing to referencial mode using the SRB1 feature of the AD converter, is it possible to have a different texts for the Channel Selector? Leaving just the name of the Active sensor?
Thank you !!

Comments

  • wjcroftwjcroft Mount Shasta, CA

    The default mode for the Cyton is ALREADY referential, with SRB2 (pin closer to board) as the reference. Using the settings to turn off SRB2 or turn on SRB1, does not give you bipolar references for each channel. As mentioned before, you can re-reference in software,

    https://www.google.com/search?q=eeg+re-reference+bipolar

    Some clinical work may require an actual bipolar lead wiring. This would be very tedious, but can be done using each channel's positive and negative input pins: IN1P-IN1N, IN2P-IN2N, etc. N pins are closest to board. P pins farther. Settings can be used to disable SRB2 and SRB1 bussing. Since bipolar montage shares leads, you would also need to use Y-cables.

    https://www.google.com/search?q=eeg+longitudinal+bipolar+montage

    I believe this could be avoided with re-referencing, if your clinic allows it.

    William

  • wjcroftwjcroft Mount Shasta, CA

    I think for best re-referencing results, you would want to use an original reference on the midline. Many EEG caps have extra midline positions, such as AFz.

  • nejemianejemia argentina

    Thanks William! Perfect orientation as always!
    I will explore the internal functions of SRB2 and SRB1 of AD1299.
    My question now is on the OpenBCI-GUI if it is possible to change the label of each channel (1,2,3..8) and put another text instead, like Fp2-F4 etc.

  • nejemianejemia argentina

    Just to make it more intuitive for the Neurologist to know exactly what he is reading

  • nejemianejemia argentina

    Dear William. I was diving into the .pde's --- No way to touch nothing there. I am alone at home, the magnitude and complexity of the whole software architecture is overwhelming and impossible to be addressed by a single human being.
    So far, I will let it be.
    QUESTION:
    How about printing the EEGs? Any suggestions? It is very important feature.
    All the best. Nelson.

  • wjcroftwjcroft Mount Shasta, CA

    You are referring to the old style EEG strip chart recorders, that used a roll of paper?

    The recording files (CSV or BDF/EDF) produced by the GUI, can be read by any program and plotted or manipulated as desired. You can also write your own program to read the data stream directly in real time and do whatever you want with it.

    https://brainflow.readthedocs.io/

    Regards, William

  • retiututretiutut Louisiana, USA

    @nejemia Time for me to help you out! :smile:

    Here is a link to the modified W_TimeSeries.pde
    https://gofile.io/?c=1WqMlA

    Go into the ChannelBar class to find the switch (channelNumber) {}, and complete the cases for exactly how you are arranging the electrodes on subjects.

    Take Care!
    RW

  • nejemianejemia argentina

    dear All. Fantastic support ! I have all the stuff under control now. My next step, I will try to run CYTON firmware on different PIC which is already available of the shelves in Argentina and along with ESP8266 Module (also available here) I will be able to build an Argentinian version of the system. I have to work out how to get the AD1299's but I think MOUSER or DIGIKEY can source them to Argentina.
    Will keep posting my progress.
    Please, take care, the covid-19 is still rounding and we have to fight it together.
    Hope I can test the OpenBCI Argentinian version at the British Hospital in Bs As very soon.
    All the best pals.
    Nelson

  • nejemianejemia argentina

    Hello. I modified the W_TimeSeries.pde as per your instructions.
    I need to write "Fp1-F3" Text, and so on.
    How do I increase the WIDTH of the Button Cell to accommodate the longer text?
    Thank you .
    Nelson

  • retiututretiutut Louisiana, USA

    Search the W_TimeSeries.pde for onOff_diameter = 34. It's easiest just to make a change in the ChannelBar screenResized() method.

    void screenResized(int _x, int _y, int _w, int _h){
            x = _x;
            y = _y;
            w = _w;
            h = _h;
    
            if(h > 26){
                onOff_diameter = 34;
                onOffButton.but_dx = onOff_diameter;
                onOffButton.but_dy = onOff_diameter;
            } else{
                // println("h = " + h);
                onOff_diameter = h + 4;
                onOffButton.but_dx = onOff_diameter;
                onOffButton.but_dy = onOff_diameter;
            }
    
            onOffButton.but_x = x + 3;
            onOffButton.but_y = y + int(h/2) - int(onOff_diameter/2);
    
            if(eegDataSource == DATASOURCE_CYTON){
                impCheckButton.but_x = x + 36;
                impCheckButton.but_y = y + int(h/2) - int(impButton_diameter/2);
            }
    
            //reposition & resize the plot
            plot.setPos(x + 36 + 4 + impButton_diameter, y);
            plot.setDim(w - 36 - 4 - impButton_diameter, h);
    
            voltageValue.x = x + 36 + 4 + impButton_diameter + (w - 36 - 4 - impButton_diameter) - 2;
            voltageValue.y = y + h;
            impValue.x = x + 36 + 4 + impButton_diameter + 2;
            impValue.y = y + h;
    
        }
    

    Might try changing onOff_diameter = 34; to onOff_diameter = 40;

    and onOffButton.but_x = x + 3; to onOffButton.but_x = x

  • nejemianejemia argentina

    Oki. It works for me !!
    Thank you.

  • nejemianejemia argentina

    Hello ! Still fighting.. What exactly means the RAILED message ? Why I see (randomly) channels going to RAILED while no signal is applied?
    Does the GUI reads the default settings from the CYTON ?
    Thanks

  • nejemianejemia argentina

    I apologize for my lack of professionalism.
    Due to the annoying circumstances (covid-19) i am working alone at home and the challenge of having a CYTON under test for further approval in a real Hospital, requieres a great effort.
    I can not manage alone the complete software, GUI and CYTON firmware, but i am doing my best.
    QUESTION
    Is there any possibility to use Serial1 only for commands without the streaming and having Serial0 as it is with the RFduino dongle working normally?
    I want to test the GUI for Display only but a separate Serial Terminal on Serial1 to send the commands to the ADC and other related board commands.
    Thanks a million!!!

  • wjcroftwjcroft Mount Shasta, CA

    Nejemia, hi. re: the two serial streams on the chipKIT microcontroller, Serial0 and Serial1. I don't understand the context of your question. The GUI expects to use Serial0 for both commands and data stream output. There is firmware code / function that can switch the port to Serial1 (for both input and output), but this was intended for debugging mainly.

    Since you have complete firmware source, you could possibly do some kind of split. But the GUI would not understand how to work with that.

  • nejemianejemia argentina

    Dear William. My question could be b etter understood with an example.
    Suppose I have the normal setup. CYTON+Dongle+GUI using RFduino BLE.
    I would like to add a second communication channel (lets say Serial1) connected to a different PC and use this second PC to send/receive commands ONLY, not to receive the flux of data comming from the sensors. Just a command console, p.e. "ser SRB2 on channel "x" or Z measure on channel "y' while the GUI only displays the EEG.

  • wjcroftwjcroft Mount Shasta, CA

    Anything is possible, since the firmware source is available. If you are connecting usb cables from PCs to your Cyton clone, be sure to utilize a "usb isolator" to avoid exposing the EEG subject to potential mains power or data overvoltages.

  • nejemianejemia argentina

    Glad to hear that! Unfortunately I was not able to port the firmware to the chipKit u32 yet. The problem is I can not manage to use the DAISY board as main ADC via SPI.
    I have added the DRDY pin from the ADS chip to the chipKit and feeded the DAISY with the correct voltages from the original CYTON but still unable to communicate with the SPI.
    Still fighting!
    May be someone already did it... I dont know.

Sign In or Register to comment.