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

globalVar;

txmessage = [STARTBYTE id_peripherical command param1 param2]';

fwrite(H,txmessage,'uint8');
