Modeling a DC Motor with SolidWorks Motion

Hello everyone, I work under SW2012 with the SolidWorks Motion complement as a cnematic model. 

I want to create a torque on a pivot part but this torque must depend on the rotation speed of the motor 

So I create a torque and instead of making it constant I put an expression but there I only have access to the variable time and angle of rotation, how to add other variables? 

Do you have a lead, I can't find anything on this site or on the internet 

Thank you in advance for your help 

CDT

Vv

VV

 

Hello

Watch this video:

https://www.youtube.com/watch?v=w0jZE2c92zU

And Deepak Gupta's answer here:

https://forum.solidworks.com/thread/87561