wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/GetIndexFromDACRange

GetIndexFromDACRange

Get an index value from a DAC range.

int GetDACRangeFromIndex(DACOuputRange range);

Parameters

  • range - the range dacOutput0to5V, dacOutput0to10V, dacOutput4to20mA, dacOutput0to20mA, dacOutput0to25mA

Return Value

  • Returns an integer index based on the output range

Remarks

Examples

   DACOutputRange range = dacOutput4to20mA;

   int index = GetIndexFromDACRange(range);
   // index will be 2

See Also

Last modified 6 years ago Last modified on 04/12/18 12:36:39
Note: See TracWiki for help on using the wiki.