Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 

Creating an Analog Output Object

Before executing an analog output (AO) task, you must create an analog output object.

where:

The valid input argument values for the analog output creation function are given below.

Table 5-1: Analog Output Object Creation Function Argument Values
Value
Description
Supported Drivers
Sound Cards
NI
HP VXI
adaptor
Adaptor name
winsound
nidaq
hpvxi
ID
Device label
N/A
Device number
Device id

If the hardware driver adaptor has been successfully registered by the data acquisition engine, then you can create an analog output object. Once the device object is created, a unique analog output object name is automatically created and assigned to the Name property.

By default, no hardware channels are associated with a newly created analog output object. To associate channels with the device object, you must use the addchannel function.

Example: Create an Analog Output Object

Suppose you want to create the analog output object AO for a sound card. Since there is no device label for the sound card, the analog output object creation function requires only the adaptor name as an argument.

An analog output object called AO now exists in the MATLAB workspace and the engine. You can display the device object's name using

You cannot yet use AO to output data since it has no hardware channels associated with it. Additionally, you must set property values to establish the required behavior for your specific application. Adding channels to an analog output object is described below.



[ Previous | Help Desk | Next ]