MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_22.c
#include <stdio.h>
#include "mates.h"
int main(void)
{
MATES_HANDLE h = mates_open("proxy.mon", 1);
int success = 0;
int value = 0;
{
return (0);
}
/* Set output to 1/10 of the full scale. */
{
success++;
printf("Successfully set raw DAC value\n");
}
/* Read back the value. */
value = 0;
{
success++;
printf("Successfully got raw DAC value: %d\n", value);
if (value == (0xFFFF / 10))
{
success++;
}
}
return ((success == 3) ? 0 : -1);
}