Channel:AsFloat

This function is part of the Channel class.

AsFloat is used to retrieve the value of the channel as a floating-point number.

ARDI data generally travels as strings, but through JSON conversion might be converted to and from numeric values. As such, we always suggest casting your channels to the desired type to ensure no exceptions occurr.

Return Value

This function returns the floating-point value of the channel.

If the channels current value is bad, it will return NaN. You can detect this using numpy and np.isnan

Parameters

None