File MIES_SweepSaving.ipf

SWS Scale and store acquired data

Functions

variable SWS_SaveAcquiredData(string device, variable forcedStop = defaultValue)

Save the acquired sweep permanently.

Parameters:
  • device – device

  • forcedStop – [optional, defaults to false] if DAQ was aborted (true) or stopped by itself (false)

static variable SWS_SweepSettingsEpochInfoToLBN(string device, variable sweepNo)
static variable SWS_AfterSweepDataChangeHook(string device)

General hook function which gets always executed after sweep data was added or removed.

Parameters:

device – device name

wave SWS_GetChannelGains(string device, variable timing = defaultValue)

Return a free wave with all channel gains.

Rows:

  • Active channels only (same as DAQConfigWave)

Different hardware has different requirements how the DA, AD and TLL channels are scaled. As general rule use data * SWS_GetChannelGains for GAIN_BEFORE_DAQ and data / SWS_GetChannelGains for GAIN_AFTER_DAQ, i.e. before_gain * data(before_DAQ) == after_gain * data(after_DAQ).

Hardware

Channel

Specialities

ITC

DA

None

ITC

AD

None

ITC

TTL

Multiple TTL bits are combined. See SplitTTLWaveIntoComponents() for details.

NI

DA

None

NI

AD

Scaled directly on acquisition.

NI

TTL

One channel per TTL bit.

See also

GetDAQDataWave()

Parameters:
variable SWS_GetRawDataFPType(string device)

Return the floating point type for storing the raw data.

The returned values are the same as for WaveType