beautypg.com

Daqgetdeviceinventory – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 237

background image

Programmer’s Manual

908794

Daq API Command Reference 4.5-7


daqGetDeviceInventory

Format

daqGetDeviceInventory(pInfoList, pInfoListCount, pMatchInfo, flags)

Purpose

daqGetDeviceInventory builds a device information list of devices that exist in the Windows Registry and/or devices that
can be dynamically detected

Parameter Summary

Parameter Type

Description

pInfoList

DaqDevInfoPT Pointer an array of device information structures

pInfoListCount PDWORD

Pointer to the number of elements in the device information list

pMatchInfo

DaqDevInfoPT Pointer to a device information structure containing device matching information

flags

DWORD

One or more device information flags

Parameter Values

pInfoList: a pointer to an array of DaqDevInfoT structures (see the DaqDevInfoT table of the daqCreateDevice

function)

pInfoListCount: upon entry, the value that pInfoListCount points to should be set to the number of elements in the

information list array; upon exit, the value that pInfoListCount points to will be set to the number of elements in the
information list that were modified

pMatchInfo: if any of the match info flags are set in the flags parameter, pMatchInfo should point to a device

information structure containing the appropriate match information, otherwise pMatchInfo can be NULL

flags: see the DaqDevInfoFlagsT table below

Parameter Type Definitions

flags – (DaqDevInfoFlagsT)
Definition Description
DaqInfoFlagsCreated

Enables searching the Windows registry for created devices and returns those that
are found

DaqInfoFlagsNotCreated

Enables searching the Windows registry for created devices but removes those that
are found

DaqInfoFlagsDetected Enables

searching for detectable devices and returns those that are detected

DaqInfoFlagsNotDetected

Enables searching for detectable devices but removed those that are detected

DaqInfoFlagsTestPassed

Enables testing of detected and/or created devices and returns those that pass the
communications test

DaqInfoFlagsTestFailed

Enables testing of detected and/or created devices and returns those that pass the
communications test

DaqInfoFlagsNew

Returns devices that are detected, but not yet created (DaqInfoFlagsDetected +
DaqInfoFlagsNotCreated)

DaqInfoFlagsRemoved

Returns devices that are created, but failed the communications test
(DaqInfoFlagsCreated + DaqInfoFlagsTestFailed)

DaqInfoFlagsAvailable

Returns devices that are created, and passed the communications test
(DaqInfoFlagsCreated + DaqInfoFlagsTestPassed)

DaqInfoFlagsMatchAlias

Causes any devices whose alias does not match the specified alias to be removed
from the list

DaqInfoFlagsMatchParentAlias Causes any devices whose parent alias does not match the specified alias to be

removed from the list

DaqInfoFlagsMatchType

Causes any devices whose device type does not match the specified device type to be
removed from the list

DaqInfoFlagsMatchSubType

Causes any devices whose device type and device sub type do not match the
specified device type and device sub type to be removed from the list

DaqInfoFlagsMatchProdGroup

Causes any devices whose device product group does not match the product group of
the specified device type to be removed from the list

DaqInfoFlagsMatchProdFamily Causes any devices whose device product family does not match the product family

of the specified device type to be removed from the list