Page 1 of 1

Retrieve derivative of data stream real time

Posted: 12 Jan 2019, 20:35
by BiancaSan93
Hi,

Using the graph object, I am computing the derivative of the data stream plotted during the simulation. How can i retrieve that value (i.e., after performing derivative on the signal) at each step in a script? I figured sim.handleGraph would do the trick but I don't understand where the result is stored, seems just a flag for succesful operation.
Thanks

Re: Retrieve derivative of data stream real time

Posted: 16 Jan 2019, 08:24
by coppelia
Hello,

you can't directly extract computed values in a graph. You can only copy a curve to the clipboard or export a graph.
The best would be to compute that derivative yourself, inside of a child script.

Cheers