Skip to content

ndi.fun.probe.export_all_binary

  NDI.FUN.PROBE.EXPORT_ALL_BINARY - export NDI probes to binary format

  NDI.FUN.PROBE.EXPORT_ALL_BINARY(S, ...)

  Exports probe data from ndi in a format useable by external tools like Kilosort.

  Creates a folder 'kilosort' (by default) in the path of the ndi.session object S.
  A subdirectory with the name of each probe is created, and the raw data from
  the probe in binary format is stored as 'kilosort.bin'.

  This function's parameters can be modified by passing name/value pairs:
  --------------------------------------------------------------------------
  | Parameter (default) | Description                                      |
  |---------------------|--------------------------------------------------|
  | kilosort_dir        | Name of output directory                         |
  |  ('kilosort')       |                                                  |
  | verbose (1)         | 0/1 Should we be verbose?                        |
  | multiplier(1/0.195) | Multiplier..assume Intan data                    |
  |---------------------|--------------------------------------------------|


  Example:

  prefix = '/Volumes/van-hooser-lab/Projects/Vikko_Laminar_Organization/Analyzed';
  expnames = {'2022-01-05'}; % just one experiment for now
  for i=1:numel(expnames),
     S = ndi.session.dir([prefix filesep expnames{i}]);
     ndi.fun.probe.export_all_binary(S,'verbose',1);
  end;