dpCopyBufferClear()

Clears the buffer copies prior to a new dpCopy().

Synopsis

void dpCopyBufferClear ();

Parameters

Parameter Meaning
- none

Return Value

None

Errors

Description

The function clears the buffer of dpCopy(). If the source datapoint is copied several times, then the information is read only once. The buffer is reloaded, if you copy another source datapoint. If you change the source datapoint of the same datapoint type during copying, then you have to clear the buffer with the function dpCopyBufferClear(). Otherwise the old information would be copied.

Exampl e

Creating two datapoints. Change the source datapoint ExampleDP_Arg1 during the delay (for example, insert a config). The datapoint test2Copy accept the new config only after clearing the buffer with

dpCopyBufferClear().

main()
{
  int x,y;
  dpCopy("System1:ExampleDP_Arg1", "test3Copy", x);
  DebugN(x);
  delay(20);// insert config
  dpCopyBufferClear(); //clearing buffer
  dpCopy("System1:ExampleDP_Arg1", "test2Copy", y);
  // new config accept
  DebugN(y);
}

Assignment

Datapoint function

Availability

UI, CTRL