Skip to main content
Open topic with navigation CAPL Functions » VT System » SerialConfigure

SerialConfigure

Valid for: CANoe DE • CANoe:lite DE Note The function can only be called on system variable namespaces of channels that represent an external power supply in a power module VT7001 respectively the system variable namespace that represents functionality common for the entire VT7001 module. To make sure the correct settings are used execute a wait command between the call of this function and the following sending or receiving of data.

Method Syntax

Description

Configures the serial port of the VT System channel that is specified by the system variable namespace. Without setting up a configuration explicitly, the default configuration is used. Default baudrate: 1200, 8 data bits, 1 stop bit, no parity.

Parameters

  • baudrate: The symbol rate to use for reception and transmission. Serial ports of the VT7001: Values see eVTSBaudRate
  • numberOfDataBits: The number of data bits within a transmission frame. Serial ports of the VT7001: Values see eVTSDataBits
  • numberOfStopBits: The number of stop bits within a transmission frame. Serial ports of the VT7001: Values see eVTSStopBits
  • parity: Specifies which parity mode should be used. Values see eVTSParity

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.

Example

This example shows how to use the RS232 functionality of the VT7001 module. It is assumed, that power supply 1 of the VT7001 is connected to a proper counterpart (e.g. a computer) via a serial connection. In this example the string “Hello World!” is sent by the VT7001. After that all incoming characters are output to the Write Window. After 10 seconds the connection is closed.

CAPL

.NET (C#)

VT System Control vtsSerialConfigure