function [pw,voltage] = readPwV(H)

globalVar;
pw = 255;
voltage=255;

sendServo(H,READ_PW_V,0,0,0,0,0,0);
[command,return1,return2] = readServo(H);

if(command == READ_PW_V)
    pw = return1;
    voltage = return2;
else
    disp('OPERATION FAILED: Read Pulse-width & Voltage');
end

