PPC Write (Macintosh)

Writes a block of information to a PPC session. If a timeout occurs or the VI aborts before running, the port closes. PPC Write runs asynchronously by starting to write the data, then polling until the write is finished.

timeout ticks, if non-zero, indicates the number of ticks the PPC Inform Session VI waits for LabVIEW to establish a session. After timeout ticks, LabVIEW returns the errTimedOut error. One tick equals 1/60 of a second. The default is 0, which indicates no timeout. Refer to PPC Inform Session for more information.
session refnum is a session refnum, which you use in subsequent communication for this session.
data bytes is the data to send to the target application.
data info is a cluster of application-specific information that LabVIEW uses when reading and writing blocks of data in a PPC session. This cluster contains the following 32-bit integers that you can use to send information about the block of data to the receiving application:
block creator indicates the creator of the block being written.
block type defines the data type according to user-defined specifications.
user data lists additional information about the block at the user's discretion.
more indicates whether to write more data for a given block. For example, if you want to write a block of data in several calls to PPC Write, set more to TRUE on all but the last write of the sequence.
poll wait indicates how frequently PPC Write checks to see whether LabVIEW has written the data successfully; for higher throughput, a value of zero is optimal. The default is 10 ms.
length written is the actual number of bytes written. Except when the VI returns an error, length written is the length of the byte array input.
error, if negative, indicates a Macintosh error. If positive, error indicates an error internal to the CIN that generated it. Refer to the PPC Error Codes for a list of PPC error codes and their descriptions.