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

Typically: "How do I... ", "How can I... " questions
Post Reply
xiaohua0916
Posts: 9
Joined: 02 Mar 2021, 09:22

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

Post by xiaohua0916 »

The default interval is 1 second. How do I change it?

coppelia
Site Admin
Posts: 10410
Joined: 14 Dec 2012, 00:25

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

Post 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

Post Reply