| Parallel Computing Toolbox™ | ![]() |
Test to see if messages are ready to be received from other lab
is_data_available = labProbe
is_data_available = labProbe(source)
is_data_available = labProbe('any',tag)
is_data_available = labProbe(source,tag)
[is_data_available, source, tag] = labProbe
source | labindex of a particular lab from which to test for a message. |
tag | Tag defined by the sending lab's labSend function to identify particular data. |
'any' | String to indicate that all labs should be tested for a message. |
is_data_available | Boolean indicating if a message is ready to be received. |
is_data_available = labProbe returns a logical value indicating whether any data is available for this lab to receive with the labReceive function.
is_data_available = labProbe(source) tests for a message only from the specified lab.
is_data_available = labProbe('any',tag) tests only for a message with the specified tag, from any lab.
is_data_available = labProbe(source,tag) tests for a message from the specified lab and tag.
[is_data_available, source, tag] = labProbe returns labindex and tag of ready messages. If no data is available, source and tag are returned as [].
![]() | labindex | labReceive | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |