Spike Toolbox

STPciaerImport
Import a spike train observed from the PCI-AER monitor

Syntax
[stTrainOut1, stTrainOut2, ...] = STPciaerImport(strFilename ... <, cellstasChannelSpecs, stasChannelID>) [...] = STPciaerImport(mSpikes <, cellstasChannelSpecs, stasChannelID>)

Description
strFileName is the name of a text file containing a spike train in [int_time_sig address] format. Time signatures are read in microseconds (10e-6 sec). The resulting spike trains will be normalised to begin at the first spike occurring on ANY channel.

Alternatively, a matrix of spike times and addresses can be supplied in mSpikes. Each row of this matrix should be in [int_time_sig address] format.

The text file or matrix can optionally be in [isi address] format. ISIs should be in microseconds (10e-6 sec).

STPciaerImport needs to know two things in order to filter the input spikes: The addressing specification of the monitor channel ID field; and the addressing specifications to use for each of the monitor channels. These specifications can be either taken from the toolbox options (by default), or supplied in the argument list.

The optional argument cellstasChannelSpecs should be a cell array with one entry for each monitor channel to retrieve spikes from. Empty matrices in this cell array indicate monitor channels to ignore (ie. a spike train will not be returned for that channel). The function STIsValidMonitorChannelSpecification can be used to validate this argument.

The optional argument stasChannelID should be a valid addressing specification, with the following restrictions: it must contain two fields only, the first of which is marked to ignore, the second of which must define the addressing field for the channel ID. This second field must not be marked to ignore. The descriptions for these fields are not important. The function STIsValidChannelAddrSpec can be used to validate this argument. The toolbox provides a function STAddrSpecChannel which generates a valid channel addressing specification.

See Also
Stimulating and monitoring a chip, Understanding toolbox addressing, STPciaerExport, STStimulate, STIsValidMonitorChannelSpecification, STAddrSpecChannel, STIsValidChannelAddrSpec


$Id: STPciaerImport.html 1783 2005-08-31 21:05:51Z dylan $