Name

InPort_poll — Polling function of Inport. Check if InPort received the data.

Calling Sequence

ret=InPort_poll(port)

Parameters

port

Handle value of Outport.

ret

%T if received. %F if failed.

Description

This function check the InPort's buffer is empty or not. So the connection type must be push.

Examples

      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;
    

See Also

Authors

Yuki Suga (ysuga.net)