4 error functions, 1 s24xx_errortext() – Sensoray 2410 API User Manual
Page 14
Sensoray 24xx Programming Guide
10
Module-Independent Functions
5.4 Error Functions
5.4.1 s24xx_ErrorText()
Function:
Return an error description string.
Prototype:
const char * s24xx_ErrorText( u32 err );
Returns:
Pointer to a text string that describes the error code contained in
err
.
Example:
// A simple application program.
int
main( void )
{
int
rtnval = 1;
u32 err = ERR_NONE;
char
ipaddr[] = "192.168.24.10"
HSESSION sess
;
// Open the API.
if
( !s24xx_ApiOpen() )
printf( "Failed to open API\n" );
else
{
// Open a session on a Model 2410 I/O module.
if
( !s24xx_SessionOpen( &sess, &err, 2410, ipaddr, 23, 1000 ) ) {
printf( "Error: %s\n", s24xx_ErrorText(err) );
rtnval = err;
}
else
{
// ... perform I/O operations as required by the application ...
s24xx_SessionClose( sess );
// Close the session and API.
}
s24xx_ApiClose();
}
return
rtnval;
}
Argument
Description
err
Error code. See Section 4.3.3 for list of error codes.
- 2226 (15 pages)
- 2253 (19 pages)
- 616 (8 pages)
- 516 AVStream DirectShow (10 pages)
- 2246 (42 pages)
- 2246 (50 pages)
- 2255 (33 pages)
- 614 (17 pages)
- 611 (7 pages)
- 314 (14 pages)
- 614 Caption Overlay (18 pages)
- 311 (9 pages)
- 314 Quick Start (14 pages)
- 1012 (12 pages)
- 810 Quick Start (7 pages)
- 953-ET (17 pages)
- 911 (17 pages)
- 812 (16 pages)
- 810 (15 pages)
- 615 (8 pages)
- 615 (15 pages)
- 711 (36 pages)
- 609 (17 pages)
- 817 (11 pages)
- 817 (18 pages)
- 2411 (11 pages)
- 2250 (6 pages)
- 2263 (12 pages)
- 2263 (25 pages)
- 2480 (10 pages)
- 2453 (27 pages)
- 819 (11 pages)
- 516 (8 pages)
- 3011S (29 pages)
- 2444 (19 pages)
- 7429 (48 pages)
- 718 (22 pages)
- 518 (57 pages)
- 526 (29 pages)
- 526 (7 pages)
- 826 (76 pages)
- 2426 (17 pages)
- 721 (13 pages)
- 2410 (9 pages)
- 2600 (80 pages)