Periodic Frame with CRC Transmission in VBScript

Professional Windows® software to communicate with CAN and CAN FD busses and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
scope
Posts: 18
Joined: Wed 24. Jan 2024, 15:42

Periodic Frame with CRC Transmission in VBScript

Post by scope » Thu 17. Oct 2024, 16:55

Hello,

I hope you're doing well.

I need to send a periodic frame that includes a CRC, which I calculate using VBScript. However, I can't use an endless loop function since I need to run other VBScript functions as well. Do you have any suggestions on how I could resolve this issue?

Thank you in advance for your help.

Best regards,

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

Re: Periodic Frame with CRC Transmission in VBScript

Post by M.Heidemann » Fri 18. Oct 2024, 09:05

Hi!

You should consider running your CRC by using a Callback-Library,
PCAN-Explorer 6 cannot run parallel Macros.

VBS never implemented any proper features for threading, parallel processing, etc.

You'll find an example, which conveniently also implements a CRC in:

Code: Select all

C:\Program Files (x86)\PCAN-Explorer 6\Samples\CallbackDLLs
The PCAN-Explorer 6 help (hotkey F1) also provides a documentation for this under:

"Automating tasks in PCAN-Explorer" -> "Callback Libraries"


BR

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply