Writes array of data to the port.
| Visual Basic .NET | Sub WriteArray(ByVal DataBuffer As Byte, ByVal BytesToWrite As UInt32)
|
|---|---|
| Visual C# | void WriteArray(byte[] DataBuffer, UInt32 BytesToWrite);
|
DataBuffer
[in] Buffer of data to be written.
BytesToWrite
[in] Size of buffer in bytes.
The method may throw exception. Use GetLastError method to get the error code.
| ftvspcErrorFailed | 1 | The operation has not been completed. |
|---|---|---|
| ftvspcErrorInvalidParameter | 2 | Invalid parameter. |