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 data point is copied several times, then the information is read only once. The buffer is reloaded, if you copy another source data point. If you change the source data point of the same data point 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 data points. Change the source data point ExampleDP_Arg1 during the delay (for example, insert a config). The data point 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

Data point function

Availability

UI, CTRL