Reset graph

Typically: "How do I... ", "How can I... " questions
Post Reply
Rose111
Posts: 10
Joined: 13 Sep 2018, 08:05

Reset graph

Post by Rose111 »

Hello,
I want to plot data user defined and reset the graph every 10 seconds. the following code which i used it for that.
But I have failed in this mission.

Code: Select all

t=sim.getSimulationTime()
        if (t%10 == 0)then
            sim.resetGraph(graphHandle)
        end
could you help me please?.
Best Regards.

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

Re: Reset graph

Post by coppelia »

Hello,

are you sure that your graph is flagged as explicit handling?
In that case you are also in charge of doing the same things the main script does, to your graph.

Cheers

Post Reply