AI_9116_CounterInterval Previous topicNext topicFirst topicLast topic

AI_9116_CounterInterval

@ Description

Informs PCIS-DASK library of the scan interval value and sample interval value selected for analog input operation of PCI9116. You must call this function before calling function to perform continuous analog input operation of PCI9116

@ Cards Support

9116

@ Syntax

I16 AI_9116_CounterInterval (U16 CardNumber,U32 ScanIntrv, U32 SampIntrv)

@ Parameter

CardNumber : The card id of the card that want to perform this operation.
ScanIntrv : The length of scan interval (that is, the counter value between the initiation of each scan sequence).
                  Range: 96 through 16777215
SampIntrv : The length of sample interval (that is, the counter value between each A/D conversion within a scan sequence).
                  Range: 96 through 65535


Note : the value of ScanIntrv must be greater than or equal to the sum of the total sample interval (that is, the number of channels in a scan sequence * SampIntrv).

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport