function sendMessagePIC(H, id_peripherical, command, param1, param2)

globalVar;

txmessage = [STARTBYTE command id_peripherical param1 param2]';

fwrite(H,txmessage,'uint8');
