/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_09.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_dac5_mk1_2
) !=
UOS_STATUS_OK
)
{
mates_close
(h);
return
(0);
}
/* Set output to 1/10 of the full scale. */
if
(
mates_set_dac_raw
(h,
mates_dac5_mk1_2
,
MATES_OUT30
, 0xFFFF / 10) ==
UOS_STATUS_OK
)
{
success++;
printf(
"Successfully set raw DAC value\n"
);
}
mates_close
(h);
return
((success == 1) ? 0 : -1);
}