/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
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. */
if
(
mates_get_register_sr
(h,
mates_dio3_mk1_2
, &sr) ==
UOS_STATUS_OK
)
{
printf(
"Error bit: %d\n"
, (sr & (1 << 1)) ? 1 : 0);
}
mates_close
(h);
}