MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_16.c
#include <stdio.h>
#include "mates.h"
int main(void)
{
MATES_HANDLE h = mates_open("proxy.mon", 1);
int sr;
/* Get error status bit from SR. */
{
printf("Error bit: %d\n", (sr & (1 << 1)) ? 1 : 0);
}
}