File MIES_MiesUtilities_Config.ipf

This file holds MIES utility functions for the config wave.

Functions

variable GetSamplingInterval(wave config, variable channelType)

Returns the sampling interval of the sweep in microseconds (1e-6s)

variable GetDataOffset(wave config)

Returns the data offset of the sweep in points.

variable UpdateSweepConfig(wave config, variable samplingInterval = defaultValue)

Write the given property to the config wave.

Note

Please add new properties as required

Parameters:
  • config – configuration wave

  • samplingInterval – sampling interval in microseconds (1e-6s)

string GetDefaultElectrodeName(variable headstage)

Return the default name of a electrode.

std::tuple<variable, variable> GetConfigWaveDims(wave config)
variable IsValidConfigWave(WaveOrNull config, variable version = defaultValue)

Check if the given wave is a valid ITCConfigWave.

The optional version parameter allows to check if the wave is at least comaptible with this version. The function assumes that higher versions are compatible with lower versions which is for most callers true. For a special case see AFH_GetChannelUnits.

Parameters:
  • config – wave reference to a ITCConfigWave

  • version – [optional, default=DAQ_CONFIG_WAVE_VERSION], check against a specific version current versions known are 0 (equals NaN), 1, 2, 3

variable GetFirstADCChannelIndex(wave config)