Hardware in the loop simulator