This are the two codes, the sender is the first initialized and the reciver the second one, without initializing the peak, only looking for the chanel where is the specified Peak ID.
Sender
import cantools
import time
import ctypes
from PCANBasic import *
class DEVICE:
def __init__(self ...
Search found 4 matches
- Wed 17. Apr 2024, 08:16
- Forum: PCAN-Basic
- Topic: PCAN_ERROR_INITIALIZE
- Replies: 5
- Views: 3051
- Tue 16. Apr 2024, 16:26
- Forum: PCAN-Basic
- Topic: PCAN_ERROR_INITIALIZE
- Replies: 5
- Views: 3051
Re: PCAN_ERROR_INITIALIZE
Hi,
I already read the documentation. Firstly I didn’t tried to initialize the channel, but when I wanted to acces to this cannel with the same TPCANHandle as it is initialized firstly it returns that this channel wasn’t initialize yet and can’t read the messages.
I can share the code used if it ...
I already read the documentation. Firstly I didn’t tried to initialize the channel, but when I wanted to acces to this cannel with the same TPCANHandle as it is initialized firstly it returns that this channel wasn’t initialize yet and can’t read the messages.
I can share the code used if it ...
- Tue 16. Apr 2024, 12:49
- Forum: PCAN-Basic
- Topic: PCAN_ERROR_INITIALIZE
- Replies: 5
- Views: 3051
PCAN_ERROR_INITIALIZE
I'm currently able to Initialize CAN with python (script 1), but my target is to be able to read the messages written by the script 1 with another independently script 2 in the same computer but when I try to Initialize the Peak with this second script it gives me the error (Indicates that the ...
- Mon 18. Mar 2024, 12:11
- Forum: PCAN-Basic
- Topic: undefined reference to `CAN_LookUpChanel'
- Replies: 1
- Views: 1625
undefined reference to `CAN_LookUpChanel'
Hi,
I am using Windows 10 and the TDM-GCC compiler to compile the code. Recently, I attempted to use the PCANBasic API in C++ and encountered several errors. The drivers are correctly installed and updated, and I'm trying to compile using `g++ main.cpp -o main.o`, but I'm receiving the following ...
I am using Windows 10 and the TDM-GCC compiler to compile the code. Recently, I attempted to use the PCANBasic API in C++ and encountered several errors. The drivers are correctly installed and updated, and I'm trying to compile using `g++ main.cpp -o main.o`, but I'm receiving the following ...