Skip to Main Content Skip to Search
Product Documentation

labProbe - Test to see if messages are ready to be received from other lab

Syntax

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

Arguments

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.

Description

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 [].

See Also

labindex | labReceive | labSend | labSendReceive

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS