This function writes to the pipe. The pipe must be open before it can be written to.

The command is as follows:

rc = CLWritePipe( command )
Command contains any of the valid Comm Engine commands as listed under Comm Engine Function Description.

The return value rc is the same as what DOSWrite returns and can be the following values:
0 NO_ERROR
5 ERROR_ACCESS_DENIED
6 ERROR_INVALID_HANDLE
19 ERROR_WRITE_PROTECT
26 ERROR_NOT_DOS_DISK
29 ERROR_WRITE_FAULT
33 ERROR_LOCK_VIOLATION
109 ERROR_BROKEN_PIPE

Example write to pipe. Command:
rc = CLWritePipe( '}ID1 A1 DIM 50' )

Contents of rc:
0

This example instructs the Comm Engine to command the
CP290 to dim module A1 to 50% using the direct command.