Browse Source

Dateien hochladen nach „“

master
Nicole Weber 2 years ago
parent
commit
91a01ce030
3 changed files with 13 additions and 10 deletions
  1. 11
    8
      dll.cpp
  2. BIN
      dll.so
  3. 2
    2
      start.sh

+ 11
- 8
dll.cpp View File

string pathSpatialCFG_taktil = "Projekte/OpenVibe_THN-p300-bci-main/p300-tactile/cfg/p300-spatial-filter.cfg"; string pathSpatialCFG_taktil = "Projekte/OpenVibe_THN-p300-bci-main/p300-tactile/cfg/p300-spatial-filter.cfg";
string PATH_DEFAULT_taktil = "Projekte/OpenVibe_THN-p300-bci-main/p300-tactile/datasets"; string PATH_DEFAULT_taktil = "Projekte/OpenVibe_THN-p300-bci-main/p300-tactile/datasets";


string PATH_FILES_ConfigFile = "Projekte/OpenVibe_THN-p300-bci-main/cfg/OV_TACTILE_PANDA.conf";

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




char* getCommandPS(){ char* getCommandPS(){
char* getCommandFreespellingTaktil() char* getCommandFreespellingTaktil()
{ {
string s = ""; string s = "";
s = s.append(command).append(" ").append(PATH_OV).append(" ").append( play).append(" ").append(PATH_FILES_taktil).append(filefreeSpellingTaktil).append(" ").append(nogui);
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(filefreeSpellingTaktil).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* getCommandFreespellingVisuell() char* getCommandFreespellingVisuell()
{ {
string s = ""; string s = "";
s = s.append(command).append(" ").append(PATH_OV).append(" ").append( play).append(" ").append(PATH_FILES_Visual).append(filefreeSpellingVisuell).append(" ").append(nogui);
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(filefreeSpellingVisuell).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* getCommandCopyspellingTaktil() char* getCommandCopyspellingTaktil()
{ {
string s = ""; string s = "";
s = s.append(command).append(" ").append(PATH_OV).append(" ").append( play).append(" ").append(PATH_FILES_taktil).append(fileCopySpellingTaktil).append(" ").append(nogui);
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(fileCopySpellingTaktil).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* getCommandCopyspellingVisuell() char* getCommandCopyspellingVisuell()
{ {
string s = ""; string s = "";
s = s.append(command).append(" ").append(PATH_OV).append(" ").append( play).append(" ").append(PATH_FILES_Visual).append(fileCopySpellingVisuell).append(" ").append(nogui);
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(fileCopySpellingVisuell).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_taktil() char* getCommandXDawn_taktil()
{ {
string s = ""; string s = "";
s = s.append(command).append(" ").append(PATH_OV).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( play).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( 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( play).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( 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( play).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( 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( play).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


+ 2
- 2
start.sh View File

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




cd Desktop/BCIProjekt/
cd Desktop/BCI/
> log.txt > log.txt
./gui >> log.txt
./gui.sh >> log.txt



Loading…
Cancel
Save