The simple method i can suggest is that use switch available in the simpower system toolbox..compare the running speed with the fixed speed that will generate a signal which would be the gating signal for the switch...
I really know i have to use switch, but how to use this switch to implement this task is my problem. I will appreciate if you can build one for me and attach or refer me to a material that will help me.