MDAQDevice Class

The MDAQDevice class stores information related to all data acquisition devices installed on your computer.

The InstalledDevices collection is populated with an MDAQDevice object for each installed device as a result of a call to the QueryDevices Method. The QueryDevices Method is automatically called when the control is initialized so there should be no need to call it under normal circumstances. However, if you reconfigure devices (such as change the device number) while an instance of the control is running, the QueryDevices method should be called to update information on the devices.

The MDAQDevice class has these members:

Member Description

Number As Integer

The number assigned to the device by the configuration utility.

DevType As String

The name of the device, such as DAQCard-500.

DevTypeCode As Long

The National Instruments device type code.

NumAIChannels As Long

The number of analog input channels that the device supports.

SupportsDIFFAI As Boolean

True if the device supports differential analog input.

SupportsNRSEAI As Boolean

True if the device supports non-referenced single ended analog input.

SupportsRSEAI As Boolean

True if the device supports referenced single ended analog input.

AllowedAIGains As Integer

Specifies the allowed gain values for the device. The values correspond to:

0: 1

1: 1, 10, and 100

2: 1, 2, 10, and 100

3: 1, 2, 5, 10, 20, 50, and 100

ChannelString As String

The channel string for the device.

InputResolution As Integer

The number of bits of resolution for the analog to digital converter.

SupportsAO As Boolean

True if the device supports analog output.

NumAOChannels As Long

The number of analog output channels.

OutputResolution As Integer

The number of bits of resolution for the digital to analog converter.

HasDigTrig As Boolean

True if the device supports digital triggers.

HasAnalogTrig As Boolean

True if the device supports analog triggers.

Supported As Boolean

True if the device is supported by the control.