/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_05.c
#include <stdio.h>
#include "
mates.h
"
int
main(
void
)
{
MATES_HANDLE
h =
mates_open
(
"proxy.mon"
, 1);
int
value;
if
(
mates_get_din
(h,
mates_dio3_mk1_1
,
MATES_IN01
, &value) ==
UOS_STATUS_OK
)
{
printf(
"Channel #1: %d\n"
, value);
}
if
(
mates_get_din
(h,
mates_diox_mk1_1
,
MATES_IN01
, &value) ==
UOS_STATUS_OK
)
{
printf(
"Channel #1: %d\n"
, value);
}
mates_close
(h);
}