IrDA Read Function
- Updated2025-07-30
- 5 minute(s) read
Reads the number of bytes specified in bytes to read from the IrDA connection specified in the connection ID.

Inputs/Outputs
mode (standard)
—
mode indicates the behavior of the read operation.
connection ID
—
connection ID is an IrDA connection refnum that uniquely identifies the IrDA connection.
bytes to read
—
bytes to read indicates how many bytes the function reads from the IrDA device. Use one of the following techniques to handle messages that might vary in size:
timeout ms (25000)
—
timeout ms specifies the time, in milliseconds, that the function waits for bytes from an IrDA device on a wireless network before the function completes and returns an error. The default value is 25,000 ms. A value of –1 indicates to wait indefinitely.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
connection ID out
—
connection ID out is the IrDA connection refnum that uniquely identifies the IrDA connection. Use this value to refer to this connection in subsequent IrDA function calls. connection ID out always has the same value as connection ID.
data out
—
data out is the data the function reads from an IrDA device returned as a string or as a flattened string. Use the Unflatten From String function to convert the data to the correct data type. You also can use the Unflatten From XML function to convert data from XML format.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Data Communication\Protocols\IrDA\Simple IrDA\Simple IrDA.lvproj
- labview\examples\Data Communication\Protocols\IrDA\Simple IrDA\Simple IrDA.lvproj
mode (standard)
—
connection ID
—
bytes to read
—
error in (no error)
—
connection ID out
—
data out
—
error out
—