How to get the PCANClient object

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
michael.stahl
Posts: 4
Joined: Wed 24. Feb 2016, 09:10

How to get the PCANClient object

Post by michael.stahl » Wed 24. Feb 2016, 14:32

Hi,

I startet the PCAN-Explorer over a VB script.

Code: Select all


Set app = CreateObject("PCANExplorer5.Application")

I want to have access to the PCANClient object because I need the state of the xmtQueueEmtpy property.

michael.stahl
Posts: 4
Joined: Wed 24. Feb 2016, 09:10

Re: How to get the PCANClient object

Post by michael.stahl » Wed 24. Feb 2016, 15:02

I found it out

Code: Select all

Dim client
set client = app.Connections(1).CommunicationObject.Parent
This works for me because I only have one connection

Post Reply