| Data Acquisition Toolbox | ![]() |
Example: Performing a Linear Conversion
This example illustrates how to configure the engineering units properties for an analog output object connected to a National Instruments PCI-6024E board.
The queued data consists of a 4 volt peak-to-peak sine wave. The UnitsRange property is configured so that queued data is scaled to the OutputRange property value, which is fixed at ±10 volts. This scaling utilizes the maximum dynamic range of the analog output hardware.
You can run this example by typing daqdoc6_6 at the MATLAB command line.
AO for a National Instruments board. The installed adaptors and hardware IDs are found with daqhwinfo.
AO.
UnitsRange is set to [-2 2], which scales the output data to 20 volts peak-to-peak.
AO and wait until all the data is output.
AO, you should remove it from memory and from the MATLAB workspace.
| Linearly Scaling the Data: Engineering Units | Starting Multiple Device Objects | ![]() |