man3mngr/rmt_UpdateCFpar

Table of Contents

Name

rmt_UpdateCFparameter - update a parameter in the AccelNET database

Description

rmt_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 rmtParUpdate(3rmt) or rmtUpParExc(3rmt) .

rmt_initCFparameter(3mngr) 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 rmt_GetCtlReadValues(3mngr) to obtain the current value from dbman.

This function communicates with dbman in remote mode.

This function is part of libmngr.

Syntax

int rmt_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 rmtUpdatePar(3rmt) should be returned.

See Also

libmngr(3mngr)

Manual page revision

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


Table of Contents