labReceive - Receive data from another lab

Syntax

data = labReceive
data = labReceive(source)
data = labReceive('any',tag)
data = labReceive(source,tag)
[data, source, tag] = labReceive

Arguments

source

labindex of a particular lab from which to receive data.

tag

Tag defined by the sending lab's labSend function to identify particular data.

'any'

String to indicate that data can come from any lab.

data

Data sent by the sending lab's labSend function.

Description

data = labReceive receives data from any lab with any tag.

data = labReceive(source) receives data from the specified lab with any tag

data = labReceive('any',tag) receives data from any lab with the specified tag.

data = labReceive(source,tag) receives data from only the specified lab with the specified tag.

[data, source, tag] = labReceive returns the source and tag with the data.

Remarks

This function blocks execution in the lab until the corresponding call to labSend occurs in the sending lab.

See Also

labBarrier, labindex, labProbe, labSend

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS