/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_31.c
#include <stdio.h>
#include "
mates.h
"
int
main(
void
)
{
MATES_HANDLE
h =
mates_open
(
"proxy.mon"
, 1);
int
success = 0;
/* Check if node is present. */
if
(
mates_discover_single_node
(h,
mates_dio3_mk1_1
) !=
UOS_STATUS_OK
)
{
mates_close
(h);
return
(0);
}
/* Disable the generators and then enable them,
this resets all time bases of the generators. */
if
(
mates_enable_generators
(h,
mates_dio3_mk1_1
, FALSE) ==
UOS_STATUS_OK
)
{
success++;
}
if
(
mates_enable_generators
(h,
mates_dio3_mk1_1
, TRUE) ==
UOS_STATUS_OK
)
{
success++;
}
mates_close
(h);
return
((success == 2) ? 0 : -1);
}