extractValidFrames extracts framed adc data from valid epochs
Example:
[data tb epochs trig]=extractValidFrames(channel, trig, duration, pretime)
where
channel is a sigTOOL channel object
trigger is a vector of trigger time
duration is the duration of the sweeep
pretime is the pre-trigger time
All times are in units defined by getTimeUnits(channel) [usually seconds]
Returns
data a double matrix. Each coloumn is a frame of data
tb the timebase for each frame of data (pretime to
duration-pretime) in seconds
epochs the physical numbers of the epochs from which data was
taken for each frame
trig an updated copy of the input, with invalid trigger times
omitted
Note that, in the case of multiplexed channels, extractValidFrames
returns data for the currently selected subchannel as set in
channel.CurrentSubchannel.
See also scchannel/getTimeUnits
-------------------------------------------------------------------------
Author: Malcolm Lidierth 01/08
Copyright © The Author & King's College London 2008
-------------------------------------------------------------------------