Register and connect to net automatically

Professional Windows® software to communicate with CAN and CAN FD busses and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
Krishna.skt
Posts: 21
Joined: Mon 6. Apr 2020, 15:33

Register and connect to net automatically

Post by Krishna.skt » Fri 22. Jan 2021, 10:32

Hello there,

Before starting my main application in PCAN Explorer I want to register a few net connections and connect with them later when needed. Yes, I know the way of making connections and connecting with them manually but is there a method/function available to do this using VBScript or automatically in any other way?
Any help would be highly appreciated.

Kind regards
Krishna

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Register and connect to net automatically

Post by M.Heidemann » Fri 22. Jan 2021, 11:17

Hello,

Thank you for your request.

Creating PCAN-Nets is not possible via VBScript-Macros, this has to
be done manually.

You can create a Connection and connect it to certain PCAN-Net via VBScript-Macros:

Code: Select all

Sub AddConnectionExample()

   Dim conn

   Set conn = Connections.Add("TestNet@pcan_usb")

   conn.IsEnabled = True

End Sub
The corresponding PCAN-Nets have to be created beforehand.

For further questions feel free to contact me again.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply