Hi Francois,
Yu-Teng has worked on the following code to automatically import raw data (== review raw data) into Brainstorm (modifying code from the script folder). However, we cannot figure out how to completely disable the gui and still load the events (triggers). The current code still pops-up the window to select the event channel. Any hints on how to automatically load the raw data without any gui?
Also, how can we then create trials out of the imported raw data using only scripts?
Thank you!
Dimitrios
% Align sensors
sProcess.options.channelalign.Comment = ‘Align sensors using headpoints’;
sProcess.options.channelalign.Type = ‘checkbox’;
sProcess.options.channelalign.Value = 1;
% Channels options
ChannelAlign = 2 * double(sProcess.options.channelalign.Value);
ImportOptions = db_template(‘ImportOptions’);
ImportOptions.ChannelReplace = 2;
ImportOptions.ChannelAlign = ChannelAlign;
ImportOptions.DisplayMessages = 0;
% ImportOptions.EventsMode = ‘ignore’;
% ImportOptions.EventsTrackMode = ‘value’;
for i=1:length(RawFiles)
OutputDataFile{i} = import_raw(RawFiles{i}, FileFormat, iSubject, ImportOptions);
end