MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_26.c
#include <stdio.h>
#include "mates.h"
int main(void)
{
MATES_HANDLE h = mates_open("proxy.mon", 1);
int success = 0;
int value = 0xBACA;
/* Check if node is present. */
{
return (0);
}
/* Set the values of all digital outputs. */
{
success++;
printf("Successfully set all outputs: 0x%X\n", value);
}
/* Now use AND mode to clear part of the outputs. */
value = 0xFF0F;
{
success++;
printf("Successfully ANDed outputs: 0x%X\n", value);
}
value == 0xBA0A)
{
success++;
printf("Successfully got all outputs: 0x%X\n", value);
}
return ((success == 3) ? 0 : -1);
}