Skip to content

SONGetRealWaveChannel

  SONGETREALWAVECHANNEL reads an ADC (waveform) channel from a SON file.

  [DATA {, HEADER}]=SONGETREALWAVECHANNEL(FID,...
                        CHAN{, START{, STOP{, OPTIONS}}})
  FID is the matlab file handle, CHAN is the channel number (1=max)

  [DATA, HEADER]=SONGETREALWAVECHANNEL(FID, 1{, OPTIONS})
        reads all the data on channel 1
  [DATA, HEADER]=SONGETREALWAVECHANNEL(FID, 1, 10{, OPTIONS})
        reads disc block 10 for continuous data or epoch 10 for triggered
        data
  [DATA, HEADER]=SONGETREALWAVECHANNEL(FID, 1, 10, 20{, OPTIONS})
        reads disc blocks 10-20 for continuous data or epochs 10-20
        for triggered data

  When present, OPTIONS must be the last input argument. Valid options
  are:
  'ticks', 'microseconds', 'milliseconds' and 'seconds' cause times to
     be scaled to the appropriate unit (seconds by default)in HEADER
  'progress' - causes a progress bar to be displayed during the read.
  'mat' - the loaded data will be appended to the MAT-file specified 
          in the next optional input e.g.:
        [d,h]=SONGetADCChannel(fid,1,'progress','mat','myfile.mat');