/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_27.c
#include <stdio.h>
#include "
mates.h
"
int
main(
void
)
{
char
buf[0x200];
int
success = 0;
MATES_HANDLE
h =
mates_open
(
"proxy.mon"
, 1);
/* Check if node is present. */
if
(
mates_discover_single_node
(h, 20) !=
UOS_STATUS_OK
)
{
mates_close
(h);
return
(0);
}
if
(
mates_node_info
(h, 20, buf,
sizeof
(buf)) ==
UOS_STATUS_OK
)
{
success++;
printf(
"Found node #20:\n"
);
printf(buf);
}
else
{
mates_print_errors
();
}
mates_close
(h);
return
((success == 1) ? 0 : -1);
}