Struct AnalysisFunction_V3

struct AnalysisFunction_V3

The structure passed into V3 and later analysis functions.

Public Members

variable eventType

one of EVENT_TYPE_ANALYSIS_FUNCTIONS

WAVE rawDACWave

raw data wave for interacting with the DAC hardware (locked to prevent changes using SetWaveLock). The exact wave format depends on the hardware.

See also

GetDAQDataWave()

WAVE scaledDACWave

scaled and undecimated data from the DAC hardware, 2D floating-point wave Rows has channel data, one column per channel, channels are in the order DA/AD/TTL

variable headStage

active headstage index, [0, NUM_HEADSTAGES[

variable lastValidRowIndex

last valid row index in rawDACWave which will be filled with data at the end of DAQ. The total number of rows in rawDACWave might be higher due to alignment requirements of the data acquisition hardware.

Always NaN for PRE_DAQ_EVENT/PRE_SET_EVENT events.

variable lastKnownRowIndex

last written row index in rawDACWave/scaledDACWave with already acquired data

Always NaN for PRE_DAQ_EVENT/PRE_SET_EVENT/PRE_SWEEP_CONFIG_EVENT.

variable sweepNo

Potential future number of the sweep. Once the sweep is finished it will be saved with this number. Use GetSweepWave() to query the sweep itself.

variable sweepsInSet

Number of sweeps in the currently acquired stimset of the passed headstage.

string params

Analysis function parameters set in the stimset’s textual parameter wave. Settable via AFH_AddAnalysisParameter().