/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_39.c
#include <stdio.h>
#include "
mates.h
"
int
main(
void
)
{
int
success = 0;
MATES_HANDLE
h =
mates_open
(
"default.mon"
, 0);
if
(
mates_discover_single_node
(h,
mates_ucc_mk1_1
) ==
UOS_STATUS_OK
)
{
printf(
"Found UCC node.\n"
);
mates_close
(h);
/* After closing of the handle it is not usable anymore. */
if
(
mates_discover_single_node
(h,
mates_ucc_mk1_1
) ==
UOS_STATUS_ECORRUPT
)
{
success++;
}
if
(
mates_close
(h) ==
UOS_STATUS_ECORRUPT
)
{
success++;
}
mates_print_errors_ex
(h);
return
(success == 2 ? 0 : -1);
}
else
{
return
(0);
}
}