/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_19.c
#include <stdio.h>
#include "
mates.h
"
int
main(
void
)
{
MATES_HANDLE
h =
mates_open
(NULL, 0);
int
i;
int
sr;
if
(h == NULL)
{
for
(i = 0; i < 100; i++)
{
/* Poll the status register. */
if
(
mates_get_register_sr
(h,
mates_dio3_mk1_2
, &sr) ==
UOS_STATUS_OK
)
{
printf(
"SR: %u\n"
, (
unsigned
)sr);
}
mates_clear_errors
();
}
}
mates_close
(h);
}