Data Acquisition Toolbox    
analoginput

Create an analog input object

Syntax          

Arguments

'adaptor'
The hardware driver adaptor name. The supported adaptors are hpe1432, keithley, mcc, nidaq, parallel, and winsound.
ID
The hardware device identifier. ID is optional if the device object is associated with a sound card having an ID of 0.
AI
The analog input object.

Description

AI = analoginput('adaptor') creates the analog input object AI for a sound card having an ID of 0 (adaptor must be winsound). This is the only case where ID is not required.

AI = analoginput('adaptor',ID) creates the analog input object AI for the specified adaptor and for the hardware device with device identifier ID. ID can be specified as an integer or a string.

Remarks

More About Creating Analog Input Objects

More About the Hardware Device Identifier

When data acquisition devices are installed, they are assigned a unique number which identifies the device in software. The device identifier is typically assigned automatically and can usually be manually changed using a vendor-supplied device configuration utility. National Instruments refers to this number as the device number while Agilent Technologies refers to it is as the device ID.

For sound cards, the device identifier is typically not exposed to you through the Microsoft Windows environment. However, the Data Acquisition Toolbox automatically associates each sound card with an integer ID value. There are two cases to consider:

There are two ways you can determine the ID for a particular device:

Example

National Instruments

To create an analog input object for a National Instruments board defined as device number 1:

Agilent Technologies

To create an analog input object for an Agilent Technologies module with device identifier 1 residing in VXI chassis 0:

Alternatively, you can use the syntax

The HP driver allows you to span multiple hardware devices. To create an analog input object that spans two HP devices with device identifiers 1 and 2 residing in VXI chassis 0:

Alternatively, you can use the syntax

See Also

Functions

addchannel, daqhwinfo

Properties

Name


  addmuxchannel analogoutput