GX5961, GX5964
Returns the number of high-speed channels in the Domain.
GtDio6xChannelGetCount (nHandle, plChannelCount, pnStatus)
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. |
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.
The following gets the Domain channel count.
SHORT nStatus;
LONG lChannelCount;
GtDio6xChannelGetCount(nHandle, &lChannelCount, &nStatus);
printf(“There are %d channels in the domain”, lChannelCount);