#include <cogent.h>
int DR_ApDescribePnt(char* pnt_name, int* pnt_type, int* enabled, int* readable, int* writeable, char* address, int addr_len, char** error );
* DR_API_DOUBLE_TYPE * DR_API_INT16_TYPE * DR_API_BIT_TYPE
The integer value 0 if the point was accessed successfully, otherwise one of the following error codes:
DR_ERR_PNT_NOT_FOUND DR_ERR_PNT_NOT_ENABLED DR_ERR_PNT_NOT_READABLE DR_ERR_PNT_TYPE_NO_REP DR_API_STATUS_ERRORS DR_API_IPC_ERRORS
int enabled, readable, writeable, type;
char *name = "counter";
char address[16];
char *error_str;
if result = DR_ApDescribePoint (name, &type, &enabled,
&readable, &writeable,
address, sizeof(address), &error_str))
{
printf (" Error@DescribePoint (%d, %s)\n",
result, error_str);
}
else
{
printf (" Point %s: type %d, %s%s, addr: %s\n",
test_pnt, type, (readable?"R":""),
(writeable?"W":""), address);
}Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.