DioFileGetChannelName

Applies To

File.

Purpose

Returns the specified file board channel’s name.

Syntax

DioFileGetChannelName (hFile, nChannel, pszChannelName, nMaxLength, pnStatus)

Parameters

Name
Type
Comments
hFile
SHORT
File board handle returned by the function DioFileOpen.
nChannel
SHORT
Board’s channel number ranges from 0 to 31.
pszChannelName
PSTR
Pointer to the string holding the Board’s channel name.
nMaxLength
SHORT
Maximum length of pszChannelName.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example returns channel 0 name:

 

SHORT nStatus, hFile;

CHAR szChName[256];

DioFileOpen (szfilename, 1, &hFile, &nStatus);

if (hFile!=0 && nStatus==0)

DioFileGetChannelName (hFile, 0, szChName, 256,&nStatus);

 

See Also

DioFileSetChannelName, DioGetErrorString