How to using PLIN API

The free LIN software API (Application Programming Interface) for Windows® (only for usage with the PCAN-USB Pro CAN/LIN interface)
Post Reply
betty
Posts: 3
Joined: Thu 28. Mar 2024, 04:33

How to using PLIN API

Post by betty » Thu 28. Mar 2024, 05:00

Hi,
I'm making a tool using PLIN API for collection LIN data.
When I'm monitoring through PLIN view, it is possible to collect the data.
I proceeded to register the client and initialize the hardware connection.
Then, I try to read the data, but the error appears(error code is 3) that the queue is empty.
What should I do?

I use 'TLINRcvMsg' and 'Read' structure.

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: How to using PLIN API

Post by M.Maidhof » Thu 28. Mar 2024, 10:55

Hi,

which PLIN hardware do you use?

regards

Michael

betty
Posts: 3
Joined: Thu 28. Mar 2024, 04:33

Re: How to using PLIN API

Post by betty » Thu 28. Mar 2024, 14:27

Accessing the LIN line connected to the ECU and collecting data using the PLIN-USB.

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: How to using PLIN API

Post by M.Maidhof » Thu 28. Mar 2024, 14:41

Hi,

did you open the filter with SetClientFilter()?

Please see help of PLIN-API for more details (Section 3.1.3 Configuring a Client) : https://www.peak-system.com/produktcd/D ... PI_enu.pdf

regards

Michael

betty
Posts: 3
Joined: Thu 28. Mar 2024, 04:33

Re: How to using PLIN API

Post by betty » Fri 29. Mar 2024, 05:11

Hi,

I solve this problem.
I didn't use a SetClientFilter method.

Thank you so much !

I can collect data using PLIN api now.
But, when I checked data, length and the length of the data are different.

Is the length a value for valid data,
and the additional data being displayed in the data frame shows the value indicating that the valid data is over and the padding value?

Thank you for reading this.

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: How to using PLIN API

Post by M.Maidhof » Tue 2. Apr 2024, 10:03

Hi,

you must set the length of the used message according to the definition in your ldf file.

regards

Michael

Post Reply