J1939 protocol and GetSystemTime

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
rbmisc
Posts: 5
Joined: Wed 9. May 2012, 15:17

J1939 protocol and GetSystemTime

Post by rbmisc » Tue 21. Aug 2012, 16:34

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

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: J1939 protocol and GetSystemTime

Post by K.Wagner » Wed 22. Aug 2012, 08:50

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.
Best regards,
Keneth

Post Reply