Search found 8 matches

by msalz
Tue 25. Aug 2020, 16:24
Forum: PCAN-Basic
Topic: Python win32 event in different processes
Replies: 8
Views: 1750

Re: Python win32 event in different processes

Hello, Question: are those devices connected to a USB-switch? note that if so, the switch should be powered, otherwise unwanted problems (like unwanted unplug events) may occur. Yes, the PEAKs are connected to a docking station on the PC via an active USB hub. After the devices were connected direct...
by msalz
Wed 19. Aug 2020, 07:28
Forum: PCAN-Basic
Topic: Python win32 event in different processes
Replies: 8
Views: 1750

Re: Python win32 event in different processes

Hello, your script works. But the difference to my application is that I have hard time limits. In my case I have 2 PEAK PRO FD USB. With the 1st PEAK a frame is sent on the bus on channel 1 and read with the 2nd channel back. Afterwards another bus participant sends his answer to the request. Only ...
by msalz
Mon 27. Jul 2020, 12:55
Forum: PCAN-Basic
Topic: Time to wait after reset transmit and receive buffer
Replies: 2
Views: 1068

Re: Time to wait after reset transmit and receive buffer

I use the PCAN PRO FD and send on the first channel to the bus and read in the frames on the second channel.
by msalz
Mon 27. Jul 2020, 12:46
Forum: PCAN-Basic
Topic: Time to wait after reset transmit and receive buffer
Replies: 2
Views: 1068

Time to wait after reset transmit and receive buffer

Hello, considering the PCAN-Basic API, the reset function clear the transmit and receive buffer of the specified channel: # Resets the receive and transmit queues of the PCAN Channel # def Reset( self, Channel): """ Resets the receive and transmit queues of the PCAN Channel Remarks: A reset of the C...
by msalz
Mon 6. Jul 2020, 11:19
Forum: PCAN-Basic
Topic: Python win32 event in different processes
Replies: 8
Views: 1750

Re: Python win32 event in different processes

Hello,

Code: Select all

print(self.m_ReceiveEvent)
returns

Code: Select all

<PyHANDLE:800>
each process will create an event, and configure the initialized channel with it (just tested this and it works)
Can you please send me your example code?


Thanks
by msalz
Fri 3. Jul 2020, 10:48
Forum: PCAN-Basic
Topic: Python win32 event in different processes
Replies: 8
Views: 1750

Python win32 event in different processes

Hello, a Python script is reading frames per event using win32.event according to the PCANBasicExample.py example. The function works properly according to the following scheme: Several PCANs are connected to the PC and a PEAK with a certain ID is searched and selected. ... match = False result = se...
by msalz
Mon 25. May 2020, 14:35
Forum: PCAN-Basic
Topic: Time measurement in Python between transmitted and received CAN frame
Replies: 3
Views: 1361

Re: Time measurement in Python between transmitted and received CAN frame

Hi, thanks for the quick answer. I agree that under Windows with the standard timer (64 interrupts per second) timing with the uptime() function in Python will be inaccurate due to the 15.625 ms. Which irritates me anyway: When I calculate the difference of the timestamps (timestamp when sending by ...
by msalz
Wed 20. May 2020, 18:14
Forum: PCAN-Basic
Topic: Time measurement in Python between transmitted and received CAN frame
Replies: 3
Views: 1361

Time measurement in Python between transmitted and received CAN frame

Hi, I would like to measure the time between the transmission of a CAN frame and the next received CAN frame in Python (I am aware that PCAN does not provide a timestamp for transmitted frames). Therefore I use the uptime() function (https://pythonhosted.org/uptime/), which returns a timestamp measu...