Skip to content

Commit

Permalink
Util: Add two conversion function for DA/AD unit string return
Browse files Browse the repository at this point in the history
Added GetADChannelUnit, GetDAChannelUnit that return the unit string
depending on clamp mode.
  • Loading branch information
MichaelHuth committed Aug 22, 2024
1 parent 04d3270 commit ef3f1d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Packages/MIES/MIES_MiesUtilities_Conversion.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,15 @@ Function MapAnaFuncToConstant(anaFunc)
#endif
endswitch
End

/// @brief returns the unit string for the AD channel depending in clampmode
threadsafe Function/S GetADChannelUnit(variable clampMode)

return SelectString(clampMode == V_CLAMP_MODE, "mV", "pA")
End

/// @brief returns the unit string for the DA channel depending in clampmode
threadsafe Function/S GetDAChannelUnit(variable clampMode)

return SelectString(clampMode == V_CLAMP_MODE, "pA", "mV")
End

0 comments on commit ef3f1d2

Please sign in to comment.