Regular API function

simDuplicateGraphCurveToStatic / sim.duplicateGraphCurveToStatic

Description Duplicates a graph stream or curve, and freezes it. See also the other functions related to graphs.
C synopsis simInt simDuplicateGraphCurveToStatic(simInt graphHandle,simInt curveId,const simChar* staticCurveName)
C parameters
graphHandle: handle of the graph
curveId: the id of the stream or curve
staticCurveName: name of the new static stream/curve
C return value
-1 if operation was not successful, otherwise the id of the created static stream or curve
Lua synopsis int staticCurveId=sim.duplicateGraphCurveToStatic(int graphHandle,int curveId,string staticCurveName)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart