/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_28.c
#include <stdio.h>
#include "
mates.h
"
int
main(
void
)
{
int
success = 0;
double
val;
MATES_HANDLE
h =
mates_open
(
"proxy.mon"
, 1);
/* Check if node is present. */
if
(
mates_discover_single_node
(h,
mates_adc5_mk1_1
) !=
UOS_STATUS_OK
)
{
mates_close
(h);
return
(0);
}
if
(
mates_get_adc
(h,
mates_adc5_mk1_1
, 0, &val) ==
UOS_STATUS_OK
)
{
success++;
printf(
"Value at channel IN 01: %f V\n"
, val);
}
else
{
mates_print_errors
();
}
mates_close
(h);
return
((success == 1) ? 0 : -1);
}