/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_08.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_close
(h);
return
(0);
}
if
(
mates_toggle_dout
(h,
mates_diox_mk1_1
,
MATES_OUT10
) ==
UOS_STATUS_OK
)
{
success++;
printf(
"Successfully toggled output\n"
);
}
else
{
mates_print_errors
();
}
mates_close
(h);
return
((success == 1) ? 0 : -1);
}