WriteArray Method
Writes array of data to the port.
Syntax
Visual Basic .NET | Sub WriteArray(ByVal DataBuffer As Byte, ByVal BytesToWrite As UInt32) |
---|---|
Visual C# | void WriteArray(byte[] DataBuffer, UInt32 BytesToWrite); |
Parameters
DataBuffer
[in] Buffer of data to be written.
BytesToWrite
[in] Size of buffer in bytes.
Errors
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. |