"curveVals"

Sets curve values at specified times.

Synopsis

setValue(string shape, "curveVals", string Name, dyn_float YValue, dyn_time t);

shape.curveVals (string Name, dyn_float YValue, dyn_time t);

Parameters

Parameter Description
shape Name of the object
Name Name of curve
YValue Curve value Y
t Time

Description

Adds an array of Y values "YValue" and times "t" to the curve "Name".

Example

The following example adds values to "curve1" at different times.

main()
{
  dyn_float valX, valY;
  dyn_time timeX, timeY;
  valY = makeDynFloat(10, 90, 10, 60, 60, 5);
  valX = makeDynFloat(10, 50, 90, 10, 90, 5);
  time now = getCurrentTime();
  timeX = timeY = makeDynTime(now, now+1, now+2, now+3, now+4, now+5);
  this.curveVals("curve1", valY, timeY);
  this.curveValsX("curve1", valX, timeX);
}

Assignment

Trend