displayer
displayer.rar
—
application/rar,
6Kb
This module allows to display arbitrary images in the rectangles confining the areas of LCD backlit by different LEDs. Images are loaded from the directory indicated in the GUI screenshot on the left picture. Central field is initially empty, and during the operation displays the user's choice. This choice must be sent to the display module from BCI2000, via the UDP protocol, in the following format:
number_of_field time_to_remain_on_screen
though the second number is optional and can be a float. Time is set, as default, to 1 second and sending any number changes it for any other action until another time number is sent. For example, if BCI2000 sends to the module the following string
9 0.5
then the application will display in the middle area the icon from the field 9 for 0.5 second and changes time of display for every next image.
To interrupt displaying image pass stop command as
stop
Application expects data at 127.0.0.1, port 8111. Technically, this module consists of two programs. The first one conf.py prepares the configuration file (conf.txt), containing the information about
number of rows and columns, spacing size, colour of background and path to the directory with images. This file is written by the conf.py, which should be called from the MS Windows command prompt as
python conf.py
in the windows command line. Names of the files in grid are taken from typed/browsed directory. To change any entry simply double mouse click on cell and combo box will appear
To run program displaying images, enter:
python display.py
As default display searches for conf.txt file in it's directory. It is possible to pass file from any other position by running
python conf.py -f file_path
where file_path is path leading to configuration result.
Of course Python must be in your path.
presentation/graphics
1.0
GPL
uncompiled sourcecode
python


