Page 1 of 1

Reset graph

Posted: 25 Oct 2018, 16:02
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.

Re: Reset graph

Posted: 05 Nov 2018, 08:36
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