IGWv4Ports

Interface for access to PC logging features.

{75585FDE-457A-41C7-A96F-C4A94F86381B}

Contents

Properties

Property Description
Length Get/Set filename format.
SelectedPortMemento Get/Set the selected port memento to select a port for connecting with.
Baudrate Get/Set the baudrate for the selected port.
CanRXID Get/Set the CAN RX ID for the selected port.
CanTXID Get/Set the CAN TX ID for the selected port.
CanExtendedIDs Get/Set the CAN Extended IDs option for the selected port.
EthernetTimeoutAdjust Get/Set the Ethernet timeout ajustment.

Public Methods

Function Description
Refresh Refresh the ports list. Blocks execution until complete.
GetPortName Get friendly name of the port at the specified index in the port list.
GetPortType Get friendly name of the port at the specified index in the port list.
GetPortMemento Get internal ‘memento’ for the port at the specified index in the port list.
GetPortDevice Get device ID for the port at the specified index in the port list.
SelectPort Set the port for connecting with. The port must exist in the list.

Properties

Length

Get/Set filename format.

int Length

SelectedPortMemento

Get/Set the selected port memento to select a port for connecting with.

BSTR SelectedPortMemento

Baudrate

Get/Set the baudrate for the selected port.

int Baudrate

CanRXID

Get/Set the CAN RX ID for the selected port.

int CanRXID

CanTXID

Get/Set the CAN TX ID for the selected port.

int CanTXID

CanExtendedIDs

Get/Set the CAN Extended IDs option for the selected port.

BOOL CanExtendedIDs

EthernetTimeoutAdjust

Get/Set the Ethernet timeout ajustment.

int EthernetTimeoutAdjust

Public Methods

Method: Refresh

Refresh the ports list. Blocks execution until complete.

HRESULT Refresh([in] BSTR typelist)

COM GSB USB Simulator FTDI HID PCAN Ethernet ShiftecCAN

Method: GetPortName

Get friendly name of the port at the specified index in the port list.

HRESULT GetPortName([in] unsigned int index, [out, retval] BSTR *retval)

Method: GetPortType

Get friendly name of the port at the specified index in the port list.

HRESULT GetPortType([in] unsigned int index, [out, retval] int *retval)

Method: GetPortMemento

Get internal ‘memento’ for the port at the specified index in the port list.

HRESULT GetPortMemento([in] unsigned int index, [out, retval] BSTR *retval)

Method: GetPortDevice

Get device ID for the port at the specified index in the port list.

HRESULT GetPortDevice([in] unsigned int index, [out, retval] BSTR *retval)

Method: SelectPort

Set the port for connecting with. The port must exist in the list.

HRESULT SelectPort([in] int type, [in] BSTR device, [out, retval] BOOL *retval)

Returns

false if port was not found in the list.

port types: COM = 0, GSB = 1 USB = 2 SIM = 3 FTDI = 4 HID = 5 PCAN = 6 Ethernet = 7

Note that COM port device strings should be in the format:

\\.\COM1