vtsSerialSend
Valid for: CANoe DE • CANoe:lite DEFunction Syntax
Description
Sends a block of bytes to the serial port of the specified VT7001 channel- The operation starts the sending of a block.
- A callback handler can be set to notify when the send operation is completed. See SerialSetOnSendHandler.
- Another callback handler can be set to notify of errors in later stages of the send operation. See SerialSetOnErrorHandler. There are no automatic retrials in case of error.
Parameters
- Target: Name of the system variable/namespace that will be affected by this function call.
- buffer: An array of bytes that contains the data to be sent.
- number: Number of bytes to send from the buffer. Number must have a value > 0 and < 65.
Return Values
- 0: Successful call
- -1: Non-specific error
- -2: The namespace on which the command was called does not exist, is not a valid VT System namespace or does not support this command.
- -3: One of the parameters has an invalid value.
- -5: Serial port is not open.