GtDio6xChannelGetCount

Applies To

GX5961, GX5964

Purpose

Returns the number of high-speed channels in the Domain.

Syntax

GtDio6xChannelGetCount (nHandle, plChannelCount, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Session identifier:       

     Board handle is used when communicating with the hardware. The Board handle session identifier is returned by calling GtDio6xInitialize or GtDio6xSetupInitialization.

     File handle is used when communicating with a file. The File handle session identifier is  returned by calling GtDio6xFileOpen.

plChannelCount
PLONG
Gets the number of channels in the Domain.
pnStatus
PSHORT
Returned status: 0 on success, negative value on failure.

Comments

This function gets the number of high-speed channels in the Domain. It does not include any auxiliary channels. Any of these channels can be accessed using the Channel functions.

Example

The following gets the Domain channel count.

 

SHORT nStatus;

LONG   lChannelCount;

 

GtDio6xChannelGetCount(nHandle, &lChannelCount, &nStatus);

printf(“There are %d channels in the domain”, lChannelCount);

 

See Also

GtDio6xChannelGetAuxiliaryCount, GtDio6xGetErrorString