Configures the VISA serial settings for the device under test (DUT) specified by the VISA resource name parameter.

Syntax

Namespace: NationalInstruments.BluetoothDtm

public int ConfigureVisaSerialSettings(ushort dataBits, uint baudRate, BluetoothDtmFlowControl flowControl, BluetoothDtmStopBits stopBits, BluetoothDtmParity parity)

Parameters

NameTypeDescription
dataBitsushort

Specifies the number of data bits contained in each frame. Valid values are 5 to 8, inclusive. The data bits for each frame are located in the low-order bits of every byte stored in the memory. The default value is 8.

baudRateuint

Specifies the baud rate of the given communication port. The default value is 115,200.

flowControlBluetoothDtmFlowControl

Specifies the baud rate of the given communication port. Specifies the flow control method used for transmitting and receiving data. The default value is RtsCts.

stopBitsBluetoothDtmStopBits

Specifies the number of stop bits used to indicate the end of a frame. Valid values are StopBits1_0, StopBits1_5, and StopBits2_0. The default value is StopBits1_0.

parityBluetoothDtmParity

Specifies the parity bit used with each transmitted or received frame. The default value is None

Returns

Returns the status code of this method. The status code either indicates success or describes a warning condition.