function sendMessage(H,command,param1,param2,checksum)

globalVar;

txmessage = [STARTBYTE command param1 param2 checksum PULLUP5 PULLUP6]';

fwrite(H,txmessage,'uint8');
