AioGetAoMaxChannels

Function

Retrieves the maximum number of channels for the analog output.

 

Format

Ret = AioGetAoMaxChannels ( Id , AoMaxChannels )

 

Parameter

Id [VB.NET:Short C,C++:short C#:short]

Specifies the device ID retrieved from AioInit.

 

AoMaxChannels [VB.NET:Short C,C++:short * C#:ref short]

Specifies the address of the variable that stores the maximum number of channels.

 

Return Value

Ret [VB.NET:Integer C,C++:long C#:int]

Define

Value

Description

AIO_ERR_SUCCESS

0

Normality completion

AIO_ERR_DLL_INVALID_ID

10001

Invalid ID was specified.

AIO_ERR_DLL_TIMEOUT

28004

Communication time out occurred.

AIO_ERR_ACCESS_RIGHT

28003

Access rights error.

AIO_ERR_PTR_AO_MAX_CHANNELS

13080

Pointer to AoMaxChannels is NULL.

AIO_ERR_DEVICE_BUSY

20002

Can not use while by another device works.

  

See also: Error Code Details

 

Initial Value

It differs by the device that you use.

 

Remark

The maximum number of channels differs by the device that you use.

For the device without the analog output functionality, AiMaxChannels = 0.

 

Example

VB.NET   Ret = AioGetAoMaxChannels ( Id , AoMaxChannels )

C,C++     Ret = AioGetAoMaxChannels ( Id , &AoMaxChannels );

C#          Ret = AIO.ccapaio.AioGetAoMaxChannels ( Id , ref AoMaxChannels );

 

See Also

None