I used to run
[sStudy, iStudy, iFile, DataType, sItem] = bst_get('AnyFile', File_name);
[sSubject, iSubject] = bst_get('Subject', sStudy.BrainStormSubject, 1);
where File_name = sFiles{1} from here
![]()
sFiles_imported= bst_process('CallProcess', 'process_import_data_time', File_name, [], ...
'subjectname', sSubject.Name, ...
'condition', 'TWA3', ...
'timewindow', [], ...
'split', 3600,...
'ignoreshort', 0);
To import data and continue my work from there last year. Now I needed the code again but having issues in importing in the database.
For discussion I am trying on TuttorialIntroduction data as subject-1.
If I leave it as epoched version and import using the code everything work as intended, but only 1 epoch is imported.
If I change to continuous from here and import even using the gui i.e. the option on the picture.

I got error

and using the code sFiles_imported is empty.
The code also does the same it imports but sFiles_imported is empty.
What am I doing wrong, how can I import and the code returns correct sFiles_imported. Also, I since I am importing I wanna be able to divide recording to 1 hour chunks as before.