Create get_rpm

this is the function to get rpm from a generator. Be aware that this has not been tested with a generator that is not running