PT_MAIVoltageIn

typedef struct tagPT_MAIVoltageIn
{
     INT16U NumChan;
     INT16U StartChan;
     INT16U *GainArray;
     INT16U TrigMode;
     FP32  *VoltageArray;
} PT_MAIVoltageIn, * LPT_MAIVoltageIn;

PT_MAIVoltageIn is used in function DRV_MAIVoltageIn.

Member Description

Name Direction Range Description
NumChan input 1-N (N is the maximum channel number and depends on the hardware) The range (number) of sampling channels. The first channel is specified by StartChan.
 
StartChan input 0-(N-1) (N is the maximum channel number and depends on the hardware) The start sampling channel. The range of sampling channels is specified by NumChan.
The target channels are specified by the starting channel (StartChan) and the range of channels (NumChan). For example, the sampling channels will be 5, 6 and 7 if the StartChan is 5 and the NumChan is 3. The input range depends on how many channels there are.
GainArray input Refer to the GainCode list in the Hardware Manual. The Array where GainCodes are listed in order for the channels specified by StartChan and NumChan.
The GainCode should be matched with the previous channel settings in DRV_MAIConfig.
TrigMode input 0: internal
1: external
The triggering mode.
VoltageArray output Depends on the input range. The return voltage values listed in order.