DRV_AIGetConfig

status = DRV_AIGetConfig( DriverHandle,lpAIGetConfig )

Purpose

Retrieve the device configuration from DriverHandle specified device. The device configuration includes BoardID, AIMode ...etc, but not include the AI channels' input voltage ranges (GainCode).

Parameters

The address and size of retrieve buffer are all stored in the lpAIGetConfig pointed structure (PT_AIGetConfig).

Here, the range of target channel (USHORT chan, in the lpAIConfig  pointed structure) is from zero (the first AI channel) to its maximum AI channel number subtract one. For example, the range will be from 0 to 15 on a card with 16 AI channels.

Please refer to the hardware manual of each card for the GainCode (USHORT TrigMode, in the lpAIConfig pointed structure) and its corresponding input voltage range.

 

Name Direction Type Range Description
DriverHandle Input long pointer default Pointer retrieved from DRV_DeviceOpen that specifies the target device.
lpAIGetConfig Input / Output long pointer to PT_AIGetConfig default Pointer that indicates the structure which stores the buffer address and size for retrieving the configuration data.

Return

SUCCESS if successful

InvalidDriverHandle if DriverHandle is NULL