Import script: fail to impose correct time window/freq recording

Hello,

Importing recordings from Matlab matrices or text files is still handled with older interface functions. You can't set the import options from the process options.

Three solutions to your problem:

  1. You load all your files with the interactive menu: right-click > Import MEG/EEG: This will ask you the missing information.
    image
  2. Do this only once, the options will be saved permanently, then if you call again process_import_data_time or process_import_data_epoch, they will used you redefined options.
  3. Use only scripts, but redefined the option structure manually. For example:
    % Prepare ASCII import options
    ImportEegRawOptions = bst_get('ImportEegRawOptions');
    ImportEegRawOptions.BaselineDuration  = 0;
    ImportEegRawOptions.SamplingRate      = 1000;
    ImportEegRawOptions.MatrixOrientation = 'channelXtime';
    ImportEegRawOptions.VoltageUnits      = 'None';
    ImportEegRawOptions.SkipLines         = 2;
    ImportEegRawOptions.nAvg              = 1;
    ImportEegRawOptions.isChannelName     = 1;
    bst_set('ImportEegRawOptions', ImportEegRawOptions);
2 Likes