"curveValsX"

Sets several values of a curve at specific times.

Synopsis

setValue(string shape, "curveValsX", string Name, dyn_float XValue, dyn_time t);

shape.curveValsX (string Name, dyn_float XValue, dyn_time t);

Parameters

Parameter Description
shape Name of the trend object.
Name The curve name.
XValue The x value of the curve.
t The time when a value is set.

Description

Adds an array of x values "XValue" with the appropriate times 't' to the curve "Name".

Example

Adds values at different times to the curve "curve1".

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