
Universal Library Virtual Instruments (VIs) Signal conditioning VIs
ToEng.VI
Changed R5.4 ID
Converts a single A/D count value to an equivalent voltage value, or converts an array of A/D counts to an
array of equivalent voltage values.
Change at revision 5.4 to support processing of single values and arrays of values.
Summary:
Inputs: BoardNum - The board number assigned when installed with InstaCal. Can be 0 to
100.
Range - A/D range to use in conversion
AD Data - A/D count value returned from an A/D board
Outputs:
EngUnits - Equivalent voltage (or current) value returned to this variable
ErrCode - Error code. See ErrMsg.VI
Arguments:
BoardNum The board number associated with an A/D board when it was installed with
InstaCal. This function uses the board number to determine whether to do a 12-bit
or 16-bit conversion.
Range A/D voltage (or current) range. Some A/D boards have programmable voltage
ranges, others set the voltage range via switches on the board. In either case the
selected range must be passed to this function. Each A/D board supports different
voltage and/or current ranges. See the "
Range input values" table on page 19 for
valid values. Refer to board-specific information contained in the Universal
Library User's Guide (available on our web site at
www.mccdaq.com/PDFmanuals/sm-ul-user-guide.pdf
) for the list of ranges
supported by each board.
AD Data A/D measurement in binary counts to be converted to engineering units.
EngUnits The voltage (or current) value that is equivalent to AD Data is returned to this
variable. The value will be within the range specified by the
Range argument.
ErrCode Error code returned from the Universal Library. Zero if no error occurred. Use the
ErrMsg VI to convert
ErrCode into a readable string.
Kommentare zu diesen Handbüchern