Gets the value of a value attribute.
The index of the value attribute
The value read
if the index is out of range or the device was removed