GpibGetErrorString


Function

The contents of an error over an error code are changed info a character sequence.

 

Format

Ret = GpibGetErrorString ( ErrorCode, ErrorString )

 

Parameter

ErrorCode [ long ]

Specifies return value.

 

ErrorString [ char *]

The head address of the buffer which stores an error character is specified.

Please secure a length of 256 characters of a character sequence..

 

Return Value

Ret [ long ]

0

Normality completion

10301

The value of ErrorCode is outside the designated range

10312

Pointer to ErrorString is NULL

 

Initial Value

None

 

Example

C

char ErrorString[256];

Ret = GpibInit ( "Gpib000" , &DevId );

GpibGetErrorString ( Ret, &ErrorString );

 

Remark

 

See Also