InstalledDevices Collection

A collection of information on all installed data acquisition devices. Members of the collection are MDAQDevice class objects.

Syntax

Device = object.InstalledDevices( index)

The InstalledDevices collection syntax has these parts:

Part Description

object Required. A valid Mathcad Data Acquisition Control object.

index Required. A string or integer value representing the device object to return. Specifying a string for index returns information for the device having the same number. Specifying an integer for index returns that item of the collection. A particular device may not necessarily have the same name as its index in the collection.

Device Required. MDAQDevice. A variable used to hold the device member.

Remarks

The InstalledDevices collection is populated when the control is initialized or after a call to the QueryDevices method.

Example

Sub GetDeviceObject()

  Dim McadDAQ As AnalogIO

  Dim MyDevice as MDAQDevice

  'the next statement assumes there is a Mathcad Data Acquisition control called

  ' AnalogIO1 on Form1 of a VisualBasic project

  Set McadDAQ = Form1.AnalogIO1

  'get the information for device 1

  Set MyDevice = McadDAQ.InstalledDevices("1")

  If MyDevice.HasDigTrig Then

  MsgBox "Device 1 supports digital triggers"

  Else

  MsgBox "Device 1 does not support digital triggers"

  End If

End Sub