β¨ FlickersOnTop is a program written in C# and Python that offers SSVEP and code-VEP (using m-sequence) flickers implementation trough a Graphical User Interface for Windows only πͺ.
No need to code ! Just use the software to define flickers and place them. Use the sequencer to enable play and pauses in the flickering. The flickers can be displayed on top of any interface or with a black background for pyschopysics experiments. π§βπ¬
It provides Lab Streaming Layer (LSL) integration to send corresponding markers at the start of the flickering.
π§ It was developped in the Human-Factors department of ISAE-Supaero (France) by the team under the supervision of FrΓ©dΓ©ric Dehais.
π You can cite our work using the DOI on top or in the CITATION.cff
file.
IMPORTANT WARNING: our app is false flagged by some antivirus as a virus, this is due to the direct OS calls necessary for our click-through functionnality, if you are afraid of anything, you can read and directly compile the source code yourself. One of the known antivirus to flag us is Avast. the latest update of windows defender seemed ok with it.
π₯ Download the compiled version in the Release section and then click on Launch.bat
. It will launch the GUI and allows you to create some flickers.
As the gui use python, you need to download some package for it to work, specifically "psutil","PyQt5" and "pySDL2":
pip install psutil
pip install PyQt5
pip install pySDL2
if "Lanch.bat" doesn't work it most likely means that you don't have python in your environment. if you are using anaconda or other third-party python installer, please launch "MainApp.py" from there with the correct package installed.
-
Click on
Add
to add a flicker. You can set a name, X and Y positions, width, height, frequency and phase (for SSVEP). To place and set dimensions of flickers you can use the information of theMouse position
, on the bottom right of the interface. It is also possible to change the color of the flicker (default to white) and the amplitude depth of the flicker (default from 0 to 100%). -
By default it would use a black background but you can put the flickers on top of your current interface by a click in the checkbox:
Add a Black Screen background when running
. -
You can also load an image (as for now only in
BMP
format, you can find some online converter) to replace the rectangle by an image (a checkerboard for instance).
π You can then click on TEST
to make the flicker run for 10s, you can stop it before with an Escape
press. If you click on RUN
it will run until you press Escape
or on stop. One LSL marker per flicker (with the corresponding information) is sent at the start to synchronize the EEG recording.
πΎ The configuration files of the flickers is saved automatically in XML
format. You can use it to inspect later your design or to load it in the GUI (Import
button) to run the same configuraton.
You can click on Sequencing
to define a specific sequence of pauses and flickering for each stimulus. Then, every time a flicker stops or restarts a new LSL marker is sent.
Currently, you can change in the settings whether you want all flicker to be link to one sequence or for all flicker to have different sequence.
This functionality is still under development so the ergonomy could be improved.
Please send us your recommendation! π
The code is divided in two parts :
- Interface2App: A GUI to design and place flickers. It creates an XML files that would be used as input for the second part.
- VisualSimuli: Use directly the XML file without GUI to create and animate flickers.
If you want to build the software by yourself instead of using our executable , here are some information:
-
All files are coded in C# and runing in VisualStudio.
-
Download VisualStudio 2022: https://visualstudio.microsoft.com/vs/
-
There are 2 application extension:
SDL2.dll
LSL.dll
-
For most cases, it will automatically be added to project when you do download. However, if you meet problem like [BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)] when trying to complite program You should make sure the two extentions are in x64 bits version and you can download them there:
And then, you must go to project's properties -> Build -> change Platform target to x64
.
If you experience issues during installation and/or use of this program, you can post a new issue on the GitHub issues webpage. We will reply to you as soon as possible and are very interested in to the improvement of this tool !