Fromeng.vi – Measurement Computing UL for NI LabVIEW User Manual
Page 46
![background image](https://www.manualsdir.com/files/797520/content/doc046.png)
Universal Library Virtual Instruments (VIs)
Signal conditioning VIs
FromEng.VI
Changed R5.4 ID, R7.1 ID
Performs the following conversion operations:
Converts a single voltage (or current) in engineering units to a D/A count value for output to a D/A.
Converts an array of voltages (or currents) in engineering units to an array of D/A count values for output
to a D/A.
Converts a single voltage (or current) in engineering units to a D/A count value for output as an analog
trigger threshold based on the hardware's trigger circuit. If hardware does not support analog triggering,
output is 0.
To use FromEng.VI to output an analog trigger threshold to the SetTrig.VI, right-mouse-click on the VI
and select the
Select Type
► FromEng(trigger)
option from the menu.
Change at revision 5.4 to support processing of single values and arrays of values.
Change at revision 7.1 to support processing of analog trigger values.
Summary:
Inputs
BoardNum
[U32] - The board number assigned when installed with InstaCal. Can
be 0 to 100.
Range
[I32] - D/A range to use in conversion
EngUnits
[SGL] - Voltage (or current) value or array of values to convert
Outputs
DA Data
[I16] - D/A count equivalent to voltage returned here
ErrCode
[I32] - Error code. See ErrMsg VI.
Arguments:
BoardNum
The board number associated with a D/A 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
If the selected D/A board does not have a programmable range feature, this will be
ignored. Otherwise the gain can be set to any of the ranges that are supported by
the selected D/A board. See the "
" table on page 19 for valid
values. Refer to board-specific information contained in the Universal Library
User's Guide (available on
EngUnits
Either a single voltage/current value or an array of voltage/current values that you
want to set the D/A to. Values should be within the range specified by the
Range
argument.
DA Data
Returns a D/A count or an array of D/A counts to this output that is equivalent to
the
EngUnits
argument.
ErrCode
Error code returned from the Universal Library. Zero if no error occurred. Use the
ErrMsg VI to convert
ErrCod
e into a readable string.
46