A new approach of realizing derivative block in RT-BOX or launchpad ,is this idea correct?

Although there is a similar question in the forum:https://forum.plexim.com/9/why-is-there-no-derivative-block-in-the-component-library?show=9#q9

But the C-script contains the ‘currenttime’ so it’s not compatible with the RT-BOX and launchpad ,while there is already a PID block in the latest plecs software, so can we utilize the PD function ,setting the KP=0, and adjusting the deriviative filter coefficient to realize the derivative function?

Derivative__Feb_24.plecs (62.3 KB)

But maybe using the memory block can also achieve the derivative function,but we have to run it in the fixed solver~

Hello

I have same question about derivative block to work with RT-BOX and Launchpad.

But I test two methods you proposed is still not working.

Do you have any idea about this function?