Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 

Data Range and Engineering Units

Properties associated with engineering units allow you to control the range of data output to your D/A converter and the valid ranges that it can be set to. When data is output to a D/A converter, you must be aware of these two issues:

You should select the data and D/A hardware ranges such that the output data is not clipped, and you use the largest possible dynamic range of the output hardware.

The output data range is set with the UnitsRange property, and the D/A range is set with the OutputRange property, These are both channel properties and can be set on a per-channel basis. The range set for UnitsRange maps the data to the range set for OutputRange thereby scaling the output data accordingly.

For example, suppose you are outputting data to one analog output channel. The output data ranges between -2 and 2 volts and the D/A converter has a maximum range of -1 volt to 1 volt. If the data is not scaled, it will be clipped since its range exceeds that of the D/A hardware. To solve this problem, you must use the UnitsRange property. Setting UnitsRange to [-2 2] scales the output data such that a value of -2 maps to -1 at the hardware level and a value of 2 maps to 1 at the hardware level. The code below illustrates how to configure the appropriate properties.

Setting the data range and engineering units is described in detail in "Engineering Unit Conversion".



[ Previous | Help Desk | Next ]