| | 1 | = GetIndexFromDACRange = |
| | 2 | Get an index value from a DAC range. |
| | 3 | |
| | 4 | {{{ |
| | 5 | int GetDACRangeFromIndex(DACOuputRange range); |
| | 6 | }}} |
| | 7 | |
| | 8 | == Parameters == |
| | 9 | |
| | 10 | * range - the range dacOutput0to5V, dacOutput0to10V, dacOutput4to20mA, dacOutput0to20mA, dacOutput0to25mA |
| | 11 | |
| | 12 | == Return Value == |
| | 13 | |
| | 14 | * Returns an integer index based on the output range |
| | 15 | |
| | 16 | == Remarks == |
| | 17 | |
| | 18 | |
| | 19 | == Examples == |
| | 20 | |
| | 21 | {{{ |
| | 22 | DACOutputRange range = dacOutput4to20mA; |
| | 23 | |
| | 24 | int index = GetIndexFromDACRange(range); |
| | 25 | // index will be 2 |
| | 26 | }}} |
| | 27 | |
| | 28 | |
| | 29 | == See Also == |
| | 30 | |
| | 31 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/DAC/GetDACRangeFromIndex GetDACRangeFromIndex] |
| | 32 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/SetDACTrackScale SetDACTrackScale] |