typedef struct tagPT_AOConfig
{
INT16U chan;
INT16U RefSrc;
FP32 MaxValue;
FP32 MinValue;
} PT_AOConfig, * LPT_AOConfig;
PT_AOConfig is used in function DRV_AOConfig.
| Name | Direction | Range | Description |
| chan | input | 0-(N-1) (N is the maximum channel number and depends on the hardware) | The target channel. From a minimum of zero for the first AO channel to its maximum AO channel number minus one. For example, the range will be from 0 to (N-1) on a device with N AO channels. |
| RefSrc | input | 0,1 | Reference source:
0-internal 1-external The settings of reference source relates to the conversion of data in the AO functions to be called later (for example, DRV_AOCurrentOut, DRV_AOVoltageOut, DRV_AOScale). If the reference source is set to internal (0), the transferring will operate according to the setting of the maximum reference value (MaxValue) and the minimum value (MinValue). If it is set to external (1), the transferring will operate according to a fixed proportion of hardware implementing and will not be related to the maximum and the minimum reference value (MaxValue & MinValue). Please refer to the Hardware Manual for the corresponding details about specific hardware. |
| MaxValue | input | Depends on the hardware. | The maximum value of reference source. |
| MinValue | input | Depends on the hardware. | The minimum value of reference source. |