Skip to content

wvCopyToTempChannel

  wvCopyToTempChannel creates a temporary sigTOOL waveform channel

  Data are written to a temporary file placed in the system temp folder.
  They will be deleted when the figure is closed. 

  Examples:
  wvCopyToTempChannel(fhandle, source, target, IntFlag)
  channels=wvCopyToTempChannel(fhandle, source, target, IntFlag)
  channels=wvCopyToTempChannel(channels, source, target, IntFlag

  where
    fhandle     is the sigTOOL data view handle
    or
    channels    is a sigTOOL channel cell array
    source      is the number of the channel to copy
    target      is the number of the channel to copy data into
    IntFlag     true to save an integer result
                    [1] If IntFlag is true and the source data are  on
                    disc in integer format, these values will be copied
                    [2] If IntFlag is true and the source data are on
                    disc in floating point format, these values will be
                    scaled and offset and cast to int16 in the target
                    channel
                    [3] If IntFlag is false (default) data will be written
                    to disc as double precision floating point, after
                    scaling and offsetting                

  [channels, filename]=wvCopyToTempChannel(...)
            also returns the name of the temporary file

  -------------------------------------------------------------------------
  With episodically sampled waveforms, only currently valid epochs will be
  copied.

  With multiplexed channels, only data from the currently selected
  subchannel will be copied.
  -------------------------------------------------------------------------

  See Also scCommit, memmapfile, adcarray, tempname

  -------------------------------------------------------------------------
  Author: Malcolm Lidierth 11/07
  Copyright © The Author & King's College London 2007-
  -------------------------------------------------------------------------

  Revisions
    23.12.09  Add support for channel groups