Converts a single precision voltage (or current) value in engineering units to an integer count value. This function is typically used to obtain a data value from a voltage value for output to a D/A with functions such as a_out().
from_eng_units(board_num, ul_range, eng_units_value)
board_num (int)
The number associated with the board when it was installed with InstaCal or created with create_daq_device().
ul_range (ULRange)
The voltage (or current) range to use for the conversion to counts. When using this function to obtain a value to send to a D/A board, keep in mind that some D/A boards have programmable voltage ranges, and others set the voltage range via switches on the board. In either case, the desired range must be passed to this function.
Refer to board-specific information for the supported A/D ranges of each board.
eng_units_value (float)
The single precision voltage (or current) value to use for the conversion to counts. Set the value to be within the range specified by the ul_range parameter.