GetRS232ErrorString
- Updated2023-02-21
- 1 minute(s) read
char *GetRS232ErrorString (int errorNumber);
Purpose
Returns the error message associated with the RS-232 Library error code specified in the errorNumber parameter.
If errorNumber is -1 (Unknown System Error), GetRS232ErrorString calls the Windows SDK function GetLastError and translates the return value to a Windows message string.
If this function returns -1 from a real-time or Linux application, an unspecified system error occurred.
Parameters
| Input | ||
| Name | Type | Description |
| errorNumber | int | An error code returned by an RS-232 Library function. |
Return Value
| Name | Type | Description |
| errorMessage | char * | The error message associated with the error code. Do not modify or free this string. |
Additional Information
Library: RS-232 Library
Include file: rs232.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later