Page 1 of 1

How do I adjust the time interval in the vrep4.1 graph

Posted: 30 Dec 2022, 14:31
by xiaohua0916
The default interval is 1 second. How do I change it?

Re: How do I adjust the time interval in the vrep4.1 graph

Posted: 30 Dec 2022, 16:17
by coppelia
Hello,

in CoppeliaSim V4.1 and earlier, the time interval of a graph is usually the simulation time step (which is 50ms by default). If you change the simulation time step, then the graph time interval will also change. You can change that time interval by setting the graph to Explicit handling and calling sim.handleGraph upon it each time you want a new value recorded.

But since CoppeliaSim V4.2 and onwards, you would handle graphs yourself, each time you want to add a new data point. i.e. you would call sim.setGraphStreamValue each time you have a new data point.

I highly recommend you to use the newest version of CoppeliaSim (i.e. currently V4.4)

Cheers