Page 1 of 1

How to using PLIN API

Posted: Thu 28. Mar 2024, 05:00
by betty
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.

Re: How to using PLIN API

Posted: Thu 28. Mar 2024, 10:55
by M.Maidhof
Hi,

which PLIN hardware do you use?

regards

Michael

Re: How to using PLIN API

Posted: Thu 28. Mar 2024, 14:27
by betty
Accessing the LIN line connected to the ECU and collecting data using the PLIN-USB.

Re: How to using PLIN API

Posted: Thu 28. Mar 2024, 14:41
by M.Maidhof
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

Re: How to using PLIN API

Posted: Fri 29. Mar 2024, 05:11
by betty
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.

Re: How to using PLIN API

Posted: Tue 2. Apr 2024, 10:03
by M.Maidhof
Hi,

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

regards

Michael