Skip to content

scGetChannelValues

  scGetChannelValues returns the values on each channel at a specified time

  Examples
  y=scGetChannelValues(fhandle, time)
  y=scGetChannelValues(fhandle, time, mode)

  fhandle is the handle of a sigTOOL figure window
  time is the time to return values for
  mode (if set) is a string. Either 'pixel' or 'interval' (see below)


  y is a cell array with one element for each channel

  Waveform channels:
  The value placed in y is the value at time. If there is no sample at time,
  y{channelnumber} will be empty unless mode is set. Then:
      if mode=='pixel'
          the value of the first sample at or after time but 
          within one pixel width will be returned. If there is none,
          y{channelnumber} will be empty. This mode will typically be used
          with cursor functions
      if mode=='interval'
          the value of the nearest sample at or after time will be
          returned if it lies within one sample interval. If not,
          y{channelnumber} will be empty.

  Edges
  If an edge occurs at time, y{channelnumber} will be set true.
  If mode=='pixel', the edge can be within one pixel width of time.

  Pulses
  y{channelnumber} will be true if the channel is high at time,
  and false otherwise