Browse Source

Dateien hochladen nach „“

master
Nicole Weber 2 years ago
parent
commit
6032ddfa6b
3 changed files with 9 additions and 7 deletions
  1. 6
    5
      dll.cpp
  2. BIN
      dll.so
  3. 3
    2
      start.sh

+ 6
- 5
dll.cpp View File

//------------------------------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------------------------------
string command = "bash"; string command = "bash";
string nogui = "--no-gui"; string nogui = "--no-gui";
string play = "--play";
string play = "--play";
string playFast = "--play-fast";
string config = "--config"; string config = "--config";




char* getCommandXDawn_taktil() char* getCommandXDawn_taktil()
{ {
string s = ""; string s = "";
s = s.append(command).append(" ").append(PATH_OV).append(" ").append(config).append(" ").append(PATH_FILES_ConfigFile).append(" ").append( play).append(" ").append(PATH_FILES_taktil).append(fileXDawnTrainingTaktil).append(" ").append(nogui);
s = s.append(command).append(" ").append(PATH_OV).append(" ").append(config).append(" ").append(PATH_FILES_ConfigFile).append(" ").append( playFast).append(" ").append(PATH_FILES_taktil).append(fileXDawnTrainingTaktil).append(" ").append(nogui);
char char_array[s.length()+1]; char char_array[s.length()+1];
strcpy(char_array, s.c_str()); strcpy(char_array, s.c_str());
char* s_convert = char_array; char* s_convert = char_array;
char* getCommandXDawn_visuell() char* getCommandXDawn_visuell()
{ {
string s = ""; string s = "";
s = s.append(command).append(" ").append(PATH_OV).append(" ").append(config).append(" ").append(PATH_FILES_ConfigFile).append(" ").append( play).append(" ").append(PATH_FILES_Visual).append(fileXDawnTrainingVisuell).append(" ").append(nogui);
s = s.append(command).append(" ").append(PATH_OV).append(" ").append(config).append(" ").append(PATH_FILES_ConfigFile).append(" ").append( playFast).append(" ").append(PATH_FILES_Visual).append(fileXDawnTrainingVisuell).append(" ").append(nogui);
char char_array[s.length()+1]; char char_array[s.length()+1];
strcpy(char_array, s.c_str()); strcpy(char_array, s.c_str());
char* s_convert = char_array; char* s_convert = char_array;
char* getCommandClassifier_visuell() char* getCommandClassifier_visuell()
{ {
string s = ""; string s = "";
s = s.append(command).append(" ").append(PATH_OV).append(" ").append(config).append(" ").append(PATH_FILES_ConfigFile).append(" ").append( play).append(" ").append(PATH_FILES_Visual).append(fileClassifierTrainingVisuell).append(" ").append(nogui);
s = s.append(command).append(" ").append(PATH_OV).append(" ").append(config).append(" ").append(PATH_FILES_ConfigFile).append(" ").append( playFast).append(" ").append(PATH_FILES_Visual).append(fileClassifierTrainingVisuell).append(" ").append(nogui);
char char_array[s.length()+1]; char char_array[s.length()+1];
strcpy(char_array, s.c_str()); strcpy(char_array, s.c_str());
char* s_convert = char_array; char* s_convert = char_array;
char* getCommandClassifier_taktil() char* getCommandClassifier_taktil()
{ {
string s = ""; string s = "";
s = s.append(command).append(" ").append(PATH_OV).append(" ").append(config).append(" ").append(PATH_FILES_ConfigFile).append(" ").append( play).append(" ").append(PATH_FILES_taktil).append(fileClassifierTrainingTaktil).append(" ").append(nogui);
s = s.append(command).append(" ").append(PATH_OV).append(" ").append(config).append(" ").append(PATH_FILES_ConfigFile).append(" ").append( playFast).append(" ").append(PATH_FILES_taktil).append(fileClassifierTrainingTaktil).append(" ").append(nogui);
char char_array[s.length()+1]; char char_array[s.length()+1];
strcpy(char_array, s.c_str()); strcpy(char_array, s.c_str());
char* s_convert = char_array; char* s_convert = char_array;

BIN
dll.so View File


+ 3
- 2
start.sh View File

#!/bin/bash #!/bin/bash




cd Desktop/BCI/
cd ~/bci/
> log.txt > log.txt
./gui.sh >> log.txt
chmod +rw log.txt
./gui >> log.txt



Loading…
Cancel
Save