Hi @Telemeter Is the following what you are looking for ? clear() if(!('Protocol' in this)) throw "Please open the Protocol instrument"; Protocol.Mode.text = "UART" // make sure UART tab is selected Protocol.UART.Receiver(); // reset receiver - that is start receiving data var rx = [] while(wait(1)){ // wait 1 sec and repeat while not stopped rx = rx.concat(Protocol.UART.ReceiveArray()) // append new words while(rx.length>10){ if(rx.shift()==0xAA) continue; if