Search found 15 matches

by Gyula.L
Mon 31. Mar 2025, 12:11
Forum: PCAN-Basic
Topic: Listen only
Replies: 1
Views: 2282

Listen only

I have a Worker object running correctly, sending and receiving frames. This is a standalone application.

I want to have another application, which could be ran parallel to the other one. This application should just read frames on CAN bus, without acknowledging (listen only) and without sending ...
by Gyula.L
Mon 13. Jan 2025, 12:33
Forum: PCAN-Basic
Topic: MessageAvailable event is not triggered
Replies: 5
Views: 9855

Re: MessageAvailable event is not triggered

Hi Keneth,

the problem is solved: I re-installed the PCAN driver and now it works.

regards
Gyula
by Gyula.L
Fri 10. Jan 2025, 14:39
Forum: PCAN-Basic
Topic: MessageAvailable event is not triggered
Replies: 5
Views: 9855

Re: MessageAvailable event is not triggered

Hi Keneth,

thanks for your reply.

I do this right after construct a worker:
worker.AllowEchoFrames = true;

I have an ECU connected to the PCAN box, and I trace the CAN communication with another hardware (NI-XNET), where I see the sent frames by Peak and also the ones sent by the ECU. But the ...
by Gyula.L
Fri 10. Jan 2025, 13:46
Forum: PCAN-Basic
Topic: MessageAvailable event is not triggered
Replies: 5
Views: 9855

MessageAvailable event is not triggered

Hello,

I made a very simple program, which sends a CAN message, and I want to receive it using the MessageAvailable event --> but this won't trigger at all. What is wrong?


private void btn_Start_Click(object sender, EventArgs e)
{
if (null != worker)
{
worker.Stop();
worker = null ...
by Gyula.L
Wed 6. Nov 2024, 08:18
Forum: PLIN-API
Topic: Diagnostics on LIN
Replies: 5
Views: 6032

Re: Diagnostics on LIN

Hello,

I use LabVIEW 32-bit, I created a wraper around the PlinApi.dll. All functions are working, but there is an issue I can't solve.

If I call SetClientFilter() before Read(), calling the Read() function causes LabVIEW crash.

I have the following setup:
- RegisterClient()
- ConnectClient ...
by Gyula.L
Tue 5. Nov 2024, 12:50
Forum: PLIN-API
Topic: Diagnostics on LIN
Replies: 5
Views: 6032

Re: Diagnostics on LIN

Okay fine! It works almost...

The 0x3D request will be sent, then I send the 0x7D (0x3D), and I see on the bus monitor, that the ECU has filled its payload into the frame, as I expected.
I read the response with Read() in a loop for 1 second, but the function returns always TLINError ...
by Gyula.L
Tue 5. Nov 2024, 11:37
Forum: PLIN-API
Topic: Diagnostic response not received
Replies: 5
Views: 8647

Re: Diagnostic response not received

Hello,

is there any way after calling the Write() function to check, whether the frame has been physically transmitted?

Write() places the data into the output queue, so it is not yet transmitted, when leaving the function.

Or do I need to wait, let's say 20 ms before change to SlaveResponse?
by Gyula.L
Tue 5. Nov 2024, 10:02
Forum: PLIN-API
Topic: Diagnostics on LIN
Replies: 5
Views: 6032

Diagnostics on LIN

Hello,

I try to set up an UDS diagnostic tool using PLIN. I know diagnostics well, but I have some troubles to program it with PLIN.

I can't find any example how to do it, so I do try and error:
- RegisterClient
- SetFrameEntry using FrameId 0x3C as Publisher
- SetFrameEntry using FrameId 0x3D ...
by Gyula.L
Tue 29. Oct 2024, 10:57
Forum: PCAN-Basic
Topic: Initial timestamp
Replies: 1
Views: 4520

Initial timestamp

Hello,

I plan to get the initial timestamp in the moment of starting my application. The timestamp for all CAN frames will be then calculated, related to the initial timestamp.
I could do it by reading the very first frame and take its timestamp as reference - but I don't like this solution, as I ...
by Gyula.L
Thu 24. Oct 2024, 10:34
Forum: PCAN-Basic
Topic: Multiple Workers
Replies: 10
Views: 13148

Re: Multiple Workers

Hi,

I have an existing LabVIEW project, which communicates with different ECUs over UDS, originally using only NI-XNET.
Our idea was to keep this project, but extend it with other CAN/LIN hardware. One of these hardware type is Peak, in order to be independent of NI.

As the project already exists ...