<< InPort_isNew InPort InPort_read >>

RTCscilab >> RTComponent > InPort > InPort_poll

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

<a href="initRTM.html" class="link">initRTM</a>("Scilab");
rtc =  <a href="RTC_create.html" class="link">RTC_create</a>();

port = <a href="RTC_registerInPort.html" class="link">RTC_registerInPort</a>(rtc, "TimedDoubleSeq", "in0");
if <a href="InPort_poll.html" class="link">InPort_poll</a>(port) then,
sz = [3 3];
data =  <a href="InPort_read.html" class="link">InPort_read</a>(port, sz);
end;

See Also

Authors

<< InPort_isNew InPort InPort_read >>