QueryDevices Method |
Retrieves information on installed and configured data acquisition devices.
Variant = object.QueryDevices( )
The QueryDevices method syntax has these parts:
object Required. A valid Mathcad Data Acquisition Control object.
The QueryDevices method is called when the control initializes and looks for installed and confugured data acquisition devices on your computer. The results are stored in the InstalledDevices collection. The QueryDevices method returns 0 if there was at least one supported device installed on your computer and -1 otherwise.
Sub GetDeviceInfo()
Dim McadDAQ As AnalogIO
Dim vResult as Variant
'the next statement assumes there was a Mathcad Data Acquisition control called
' AnalogIO1 on Form1 of a VisualBasic project
Set McadDAQ = Form1.AnalogIO1
vResult = McadDAQ.QueryDevices
End Sub