Page 1 of 1

J1939 protocol and GetSystemTime

Posted: Tue 21. Aug 2012, 16:34
by rbmisc
I used the following portion of an example from help for GetSystemTime. It works fine when CAN protocol but fails when J1939 protocol. I get a dialog message stating "Wrong number of arguments or invalid property assignment: 'node.GetSystemTime' " when set to J1939 protocol. I assume this should work for both since it is an example in the help files.

If conn.Protocol = peProtocolCAN Then
' Access the PCANClient object
Dim client
Set client = conn.CommunicationObject.Parent
millis = client.GetSystemTime
ElseIf conn.Protocol = peProtocolJ1939 Then
' Access the J1939Node object
Dim node
Set node = conn.CommunicationObject
millis = node.GetSystemTime
End If

Re: J1939 protocol and GetSystemTime

Posted: Wed 22. Aug 2012, 08:50
by K.Wagner
Dear rbmisc,

this is indeed a small bug within the J1939 AddIn. It was already corrected and the update will be available soon, together with the next release of PCAN-Explorer.