A prototype controller for variable reluctance motors