Instance.PropertyArray.appendDouble()
Signature
void appendDouble (PropertyArrayDouble arr, double value, long time)
Description
Creates a new propertyAtomDouble of value with initial history timestamp time and appends to the end of the
PropertyArray. Use instanceX.arr[instanceX.arr@length] = value for appending with system current time
Parameters
Name | Type | Description |
arr | PropertyArray | A PropertyArray to append an element to. |
value | double | A value to append to the PropertyArray, arr . |
time | long | The initial history timestamp. |
Cautions
Use instanceX.arr[instanceX.arr@length] = value for appending with system current time
Example
Instance.PropertyArray.appendDouble (instanceA.doubleProperty, 3.14, 1111111111111);
Instance.PropertyArray.appendDouble (instanceA.doubleProperty, 2.7, 1111111133333);
Result is: instanceA.doubleProperty
contains:
instanceA.doubleProperty[len-2] = {value=3.14,timestamp=1111111111111}
instanceA.doubleProperty[len-1] = {value=2.7,timestamp=1111111133333}