Page 1 of 1

How to get the PCANClient object

Posted: Wed 24. Feb 2016, 14:32
by michael.stahl
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.

Re: How to get the PCANClient object

Posted: Wed 24. Feb 2016, 15:02
by michael.stahl
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