#include <cogent.h>
int DR_WritePoint(
char* pnt_name, int pnt_type, DR_ApValue_t* pnt_value, char** error )
;
A string containing the name of the required point.
The point type code. The list of defined driver data point types is described in the Overview section of the Device Driver for Hilscher Fieldbus Cards manual.
A pointer to the memory area containing the point value, of the same type as specified in pnt_type.
The address of a string pointer. In case of error (non-zero return), the string pointer is set to the corresponding error description string. The error string is contained in a static buffer and remains valid only until the next API call. The parameter may be NULL if no error string is required.
The integer value 0 if the point was updated successfully, otherwise the following error code is returned:
DR_ERR_PNT_NOT_WRITEABLE
This function writes a new value to the named point. The field I/O is updated immediately, unless the point is a member of a writeable group, in which case it is updated when the group is processed.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.