Page 1 of 1

LIN scheduled frames change

Posted: Wed 17. Apr 2019, 15:59
by danreb
Hello,

I'm trying to create an application sending LIN frames (master mode) and using schedules (using KDI LabVIEW API), but I can't get it working. Is is possible to change the payload of the LIN frames while the schedule is running?

Thanks, best regards.

Re: LIN scheduled frames change

Posted: Thu 18. Apr 2019, 09:49
by M.Riedl
Hello,

The following is described to use with our PLIN API.

If connected as LIN master and a scheduler is running you have to change the LIN frame data
by using the PLIN API function LIN_UpdateByteArray instead of LIN_Write.

Regards
M.Riedl

Re: LIN scheduled frames change

Posted: Mon 22. Apr 2019, 10:32
by danreb
Hello,

That's what I've tried. I use the KDI Labview API and don't know if I have to configure the schedule in any particular way previously. The message is properly timed, but I can't chage it from default value (all payload 0x00).

Image

Thanks, best regards.

Re: LIN scheduled frames change

Posted: Tue 23. Apr 2019, 09:36
by K.Wagner
Hello,

please take into consideration that only publisher frames can get its data updated using the function LIN_UpdateByteArray. If you are trying to update the data of another frame type, this will not work.

If your frames are publisher, then it may be a problem within the KDI driver. For questions and further information, please contact Mr. Kunze: support[at]digiinst.de.

Re: LIN scheduled frames change

Posted: Tue 23. Apr 2019, 10:53
by danreb
Hello,

Thanks, that was the problem... I was testing the different options but made a mistake with the frame I was using and that was hidding the main error.

Thanks, best regards.

Re: LIN schedule frames isn't working

Posted: Wed 24. Apr 2019, 09:56
by NetoRegalado
Hi, I'm having troubles trying to send two LIN frames enlisted in the same pSchedule cluster.
Isn't working
Isn't working
SCHED.PNG (12.5 KiB) Viewed 19268 times
For any reason it only works by using two pSchedule clusters and alternating between them. but it’s not the right way to do it.
Changing Schedule
Changing Schedule
Sched 2.PNG (54.56 KiB) Viewed 19268 times
Do you have any clue why this, isn't working?

Re: LIN scheduled frames change

Posted: Wed 24. Apr 2019, 11:11
by K.Wagner
Hello,

For questions and further information about the use of the KDI, please contact Mr. Kunze: support[at]digiinst.de.