worker.Start() doesn't work
Posted: 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
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