worker.Start() doesn't work

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
MatjazJ
Posts: 2
Joined: Thu 15. Feb 2024, 13:38

worker.Start() doesn't work

Post by MatjazJ » Thu 15. Feb 2024, 14:14

Hello !

I've started to work on project where I need CAN communication to some equipment. I have your IPEH-002022 USB to CAN converter and PCAN-View application and that combination works as expected. My application is in C#/.NET and I have Peak.Can.Basic NuGet package installed. I did some basic work with API functions like Api.Initialize a channel and Api.Read(channel, out canmsg). It all worked.
I got a problem when I started with Worker object. I'm getting a couple of exceptions when trying to start the worker. I tried various ways, but I always get an exection. I'm attaching a screenshot of the last (the simplest) version, based on some code found on Worker.Start Method doc.
Please help.

Best regrads.
Matjaz Jost
Attachments
screen_exception.png
screen_exception.png (146.72 KiB) Viewed 2735 times

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

Re: worker.Start() doesn't work

Post by K.Wagner » Thu 15. Feb 2024, 15:49

Helllo,

please let us know which versions are you using of:
  1. PCAN-Basic.NET --> see the version of the nuget package installed.
  2. PCANBasic.dll --> Start the tool "PEAK-Settings" and check the section "APIs".
  3. PEAK-Drivers --> Start the tool "PEAK-Settings" and check the section "Drivers".
Best regards,
Keneth

MatjazJ
Posts: 2
Joined: Thu 15. Feb 2024, 13:38

Re: worker.Start() doesn't work

Post by MatjazJ » Fri 16. Feb 2024, 09:21

Hello !

Thank you for fast response.
The desired data:
NuGet package: Peak.PCANBasic.NET, version 4.8.2.897, published 22.01.2024
APIs and Drivers are on attached screenshots.

Best regards.
MatjazJost
Attachments
drivers.png
drivers.png (204.87 KiB) Viewed 2715 times
apis.png
apis.png (194.93 KiB) Viewed 2715 times

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

Re: worker.Start() doesn't work

Post by K.Wagner » Fri 16. Feb 2024, 12:23

Hello,

it seems to be all up to date. Nevertheless, such an error can only occur when one used file is not up to date. Maybe you have some other files in the target folder of your project?

If the problem persists, please send an email to support[at]peak-system.com, making reference to this post. Please attach a picture of your device where we can see the serial number.
Best regards,
Keneth

Post Reply