Page 1 of 1

Getting dat filename from Application

Posted: 24 Aug 2004, 12:07
by sinverso
Hi,

Is it easy to get the current dat file name, e.g. SamS001R10, in the Application or other modules?

I would like to output debug information to a file specific to the subject and run. I can get the SubjectName parameter, but is the Run number stored globally?

Thanks for any suggestions.

All the best,

-Sam

Run number ...

Posted: 26 Aug 2004, 16:12
by gschalk
Hey Sam,

The run number is stored in a parameter the same way the session number and the subject identifier are. However, in the current version of BCI2000 the run number simply is not updated (i.e., published to the operator) after every run. If that were the case, the operator would have the most recent run number, and on the next click on Set Config and Resume it would broadcast it down to all the modules.

In sum, it can't be done with the current version of BCI2000, but could be changed.

Gerv

Re: Run number ...

Posted: 27 Aug 2004, 10:55
by sinverso
Gerv,

Ok, thanks for saving me hours of sifting through the code. It seems like writing to disk with a printf statement slows down the sytem anyway. I'll keep debugging output to a minium and having just the name should be fine for now.

Thanks for you help,

-Sam