/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_33.c
#include <stdio.h>
#include "
mates.h
"
int
main(
void
)
{
MATES_HANDLE
h =
mates_open
(
"proxy.mon"
, 1);
int
success = 0;
if
(
mates_discover_single_node
(h,
mates_diox_mk1_1
) !=
UOS_STATUS_OK
)
{
mates_print_errors
();
mates_close
(h);
return
(0);
}
/* Locate node by blinking its LEDs. */
if
(
mates_lamp_test
(h,
mates_diox_mk1_1
) ==
UOS_STATUS_OK
)
{
success++;
}
mates_close
(h);
return
((success == 1) ? 0 : -1);
}