Search found 7 matches

by DF1AS
Mon 18. Nov 2019, 21:17
Forum: Suggestions & Feature Requests
Topic: PCANBasic.dll performance
Replies: 12
Views: 2792

Re: PCANBasic.dll performance

We cannot use interrupts or call-backs, so it's good practice to spend threads for active polling (at the cost of some CPU load). It works perfectly for the PCAN-light version (no noticeable side effects as expected), so we stay with and do not switch to PCAN-basic. PCAN-basic also works that way bu...
by DF1AS
Sun 17. Nov 2019, 20:28
Forum: Suggestions & Feature Requests
Topic: PCANBasic.dll performance
Replies: 12
Views: 2792

Re: PCANBasic.dll performance

Hi. I found the sore spot - multi-threading. During transmission another thread is constantly reading data using CAN_read(), another one ditto for the 2nd channel. If I pause reading, transmission runs at full speed. Even if there is no data to receive at all transmission somehow gets slowed down ju...
by DF1AS
Sat 16. Nov 2019, 20:12
Forum: Suggestions & Feature Requests
Topic: PCANBasic.dll performance
Replies: 12
Views: 2792

Re: PCANBasic.dll performance

Hi Marvin, well, I played a bit with the sample code. Doesn't matter if in x64 or in Win32 mode, and doesn't matter if loading the DLL once and just calling the stored references or calling the "classic" functions and linking the appropriate lib (either x64 or x86). For all permutations it takes rou...
by DF1AS
Thu 14. Nov 2019, 18:12
Forum: Suggestions & Feature Requests
Topic: PCANBasic.dll performance
Replies: 12
Views: 2792

Re: PCANBasic.dll performance

Hi Marvin, What is WriteFrame() with no parameters doing? I use the following function: TPCANStatus __stdcall CAN_Write(TPCANHandle Channel, TPCANMsg* MessageBuffer); I checked the following setups: 1. PCANBasic.dll 4.3.4.246, 32 bit, 338 KB 2. PCANBasic.dll 4.3.4.246, 64 bit, 393 KB 3. PCAN_USB.dll...
by DF1AS
Sun 10. Nov 2019, 01:02
Forum: Suggestions & Feature Requests
Topic: PCANBasic.dll performance
Replies: 12
Views: 2792

Re: PCANBasic.dll performance

Hi Marvin, the source code that has changed is a just a 5-liner, an additional DLL wrapper that connects our application with the PCAN DLL. Both DLLs reside in the folder of the application. When we switch to the new version we have to exchange both DLLs - that's all. I attach the file for completen...
by DF1AS
Mon 4. Nov 2019, 21:40
Forum: Suggestions & Feature Requests
Topic: PCANBasic.dll performance
Replies: 12
Views: 2792

Re: PCANBasic.dll performance

Hi Marvin, I included in a C++ project and built with latest VS - PCANBasic.h, signed "Last change: 13.11.2017 Wagner" (30,095 bytes) - PCANBasic.lib, obviously 4.3.4.246 as from same folder as the DLL below (4,262 bytes) On runtime - PCANBasic.dll, 4.3.4.246 (346,560 bytes) Just three functions are...
by DF1AS
Sun 3. Nov 2019, 21:10
Forum: Suggestions & Feature Requests
Topic: PCANBasic.dll performance
Replies: 12
Views: 2792

PCANBasic.dll performance

Hi, I used PCAN_USB.dll and PCAN_2USB.dll (both 2.0.4.0, 81 kB) to drive a PCAN-USB Pro interface adapter without any problems. One send call takes about 200 µs, which leads to a net data rate of > 300 kbps in 1-M mode. Now I switched to the actual PCANBasic.dll (4.3.4.246, 338 kB). All runs fine - ...