Home > Software > Programming and SDK > Forum > DI-718BX Counts to volts

DI-718BX Counts to volts

Jun 17, 2015
Brett Snyder wrote
DI-718BX Anyone work with the SDK and the 718. Trying to figure out how to convert counts to volts the right way. Do I average the points on each channel first?
Is this the correct counts to volts conversion? Its a 14 bit ADC.


Private Function CountsToVolts(value As Decimal) As Decimal

Dim ret As Decimal

ret = (((0.00132) - (-0.00132) / 65536) * value)
ret = ret + ((0.00132) + (-0.00132) / 2)

Return ret

End Function
Reply
2 Answers
Jun 17, 2015
Ken agent wrote
For a DI-718Bx channel configured with its ADGainList entry = 1 for ±5V, Vmax = 5 and Vmin = -5.
The points on each channel are averaged by the SDK if SampleRate*ADChannelCount <= MaxBurstRate/2.

Private Function CountsToVolts(value as Short) As Double
Dim ret as Double
ret = 10.0/65536 * value
Return ret
Jun 17, 2015
Ken agent wrote
For a DI-718 or DI-718Bx channel configured with its default ADGainList entry = 0, Vmax = 5 and Vmin = -5. An entry of 1 should be used to get that range with a DI-710-PGH,