PT_AIVoltageIn

typedef struct tagPT_AIVoltageIn
{
     INT16U chan;
     INT16U gain;
     INT16U TrigMode;
     FP32  *voltage;
} PT_AIVoltageIn, * LPT_AIVoltageIn;

PT_AIVoltageIn is used in function DRV_AIVoltageIn.

Member Description

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 AI channel to its maximum AI channel number minus one. For example, the range is from 0 to (N-1) on a device with N AI channels.
gain input Depends on the hardware. GainCode. Refer to the hardware manual.
TrigMode input 0: internal
1: external
The triggering mode.
 
voltage output Depends on the input range. The return voltage value.