MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_25.c
#include <stdio.h>
#include "mates.h"
int main(void)
{
MATES_HANDLE h = mates_open("proxy.mon", 1);
int success = 0;
int value = 0xCAFE;
/* Check if node is present. */
{
return (0);
}
/* Set the values of all digital outputs. */
{
success++;
printf("Successfully set all outputs: 0x%X\n", value);
}
value = 0;
/* Read back. */
{
success++;
printf("Successfully got all outputs: 0x%X\n", value);
}
return ((success == 2) ? 0 : -1);
}