File MIES_MiesUtilities_Conversion.ipf

This file holds MIES utility functions for conversions.

Functions

string ChannelTypeToString(variable channelType)

Convert a channel type constant from ChannelTypeAndControlConstants to a string.

variable ParseChannelTypeFromString(string channelType, variable allowFail = defaultValue)

Convert a channel type string from ChannelTypeToString to one of the constants from ChannelTypeAndControlConstants.

UTF_NOINSTRUMENTATION

Parameters:
  • channelType – channel type

  • allowFail – [optional, defaults to false] return NaN on unknown channel types (true) or assert (false)

variable GetNumberFromType(variable var = defaultValue, string str = defaultValue, variable xopVar = defaultValue)

Return the maximum count of the given type.

Parameters:
  • var – numeric channel types

  • str – string channel types

  • xopVar – numeric XOP channel types

string GetWaveBuilderParameterTypeName(variable type)

Return the name short String of the Parameter Wave used in the WaveBuilder.

Parameters:

type – One of ParameterWaveTypes

Returns:

name as string

string ConvertAmplifierModeShortStr(variable mode)

Stringified short version of the clamp mode.

string ConvertAmplifierModeToString(variable mode)

Stringified version of the clamp mode.

string GetAbbreviationForAnalysisFunction(string anaFunc)

Return the short/abbreviated analysis function name used in the tables.

variable MapAnaFuncToConstant(string anaFunc)

Map from analysis function name to numeric constant.

Returns:

One of SpecialAnalysisFunctionTypes which includes INVALID_ANALYSIS_FUNCTION and for CI testing TEST_ANALYSIS_FUNCTION