MIES icon indicating copy to clipboard operation
MIES copied to clipboard

Fix effective stimset size extension with ITC and multiple TTL channels with different length stimsets

Open MichaelHuth opened this issue 1 year ago • 0 comments

Only on ITC: If multiple TTL channels are used with different size stimsets then the decimation uses the joined TTL data and decimates over the maximum stimset size. Depending on the decimation factor this leads to an extension of the shorter stimset in the data wave.

Steps to solve:

  • Change logic for ITC to have single channel TTL waves, if possible use same code paths as NI.
  • In DC_WriteTTLIntoDAQDataWave use a for loop over the single TTL channels of a rack and join the TTL data in ITCDataWave, use for each single TTL channel the setLength specific for that channel. From singleSetLength = DC_CalculateStimsetLength(TTLWaveSingle, device, DATA_ACQUISITION_MODE)
  • revert the handling of that case in epoch creation

MichaelHuth avatar Feb 14 '24 17:02 MichaelHuth