hardware in the loop simulation book