Retrieve derivative of data stream real time

Typically: "How do I... ", "How can I... " questions
Post Reply
BiancaSan93
Posts: 27
Joined: 25 Apr 2017, 17:26

Retrieve derivative of data stream real time

Post 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

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

Re: Retrieve derivative of data stream real time

Post 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

Post Reply