InPort_poll — Polling function of Inport. Check if InPort received the data.
ret=InPort_poll(port)
This function check the InPort's buffer is empty or not. So the connection type must be push.
initRTM("Scilab"); rtc = RTC_create(); port = RTC_registerInPort(rtc, "TimedDoubleSeq", "in0"); if InPort_poll(port) then, sz = [3 3]; data = InPort_read(port, sz); end;