man3mngr/UpdateCFpar

Table of Contents

Name

UpdateCFparameter - update a parameter in the AccelNET database

Description

UpdateCFparameter checks to see if V is equal to CONFLIST.Current.

If they are different then V is copied to CONFLIST.Current and the value of CONFLIST.Current is copied to CONFLIST.Prev.

It then constructs an update msg using lclParUpdate(3rmt) .

initCFparameter() should be called once before using this function to sychronize dbman and the local value in cases where the program wishes to set the value of the datapoint at startup.

The other possibility is to call one of the library functions such as GetCtlReadValues(3mngr) to obtain the current value from dbman.

This function communicates with dbman in local mode.

This function is part of libmngr.

Syntax

int UpdateCFparameter(
   int DBchan,

   CONFLIST *CFpnt,

   double V,

   int exclude_flag

   );

Arguments

DBchan

database channel

CFpnt

A pointer to a CONFLIST record.

V

The new value.

exclude_flag

If this value is zero dbman(8) sends an update back to the caller if subscribed.

If this value is one no update is sent back to the caller.

Return Value

0 is always returned.

Notes

Perhaps the error code from lclUpdatePar(3rmt) should be returned.

See Also

libmngr(3mngr)

Manual page revision

$Id: UpdateCFpar.3,v 1.3 2004/05/05 15:52:25 kitchen Exp $


Table of Contents