How to repeatedly send 4 different data in sequence

Windows® Compatible Software for Displaying LIN Messages
Post Reply
A.Suzuki
Posts: 2
Joined: Sun 25. Aug 2024, 06:27

How to repeatedly send 4 different data in sequence

Post by A.Suzuki » Sun 25. Aug 2024, 06:41

We are using PLIN View Pro Version 3.2.0.174.
We are using PLIN View Pro as a slave node, and when Frame ID 0x17 is sent from the master node, we want to repeatedly send the following 4 data in sequence.
If it is possible to achieve this with PLIN View Pro, please let us know how.

1. ID=0x17 : Data={ 0x10, 0x11, 0x00, 0x00 }
2. ID=0x17 : Data={ 0x11, 0x22, 0x00, 0x00 }
3. ID=0x17 : Data={ 0x12, 0x33, 0x00, 0x00 }
4. ID=0x17 : Data={ 0x13, 0x44, 0x00, 0x00 }
5. ID=0x17 : Data={ 0x10, 0x11, 0x00, 0x00 } *Same as 1.
6. Same as 2.
7. …

M.Riedl
Software Development
Software Development
Posts: 34
Joined: Wed 22. Sep 2010, 13:28

Re: How to repeatedly send 4 different data in sequence

Post by M.Riedl » Mon 26. Aug 2024, 13:35

Hello,

There are two possibilities for this.

1. Write a Before Publish script for the frame in the Publish list.
This way you can control the data before sending, but not the timing. You have to trigger each send manually.
For further information, see the software documentation and the Automation chapter, especially Use in Publisher Frames.

2. Use the VBScript support to write a small script that controls the publish data and the timing.
For further information, see the software documentation and the VBScript Support chapter and the PublishData function.

Regards
M.Riedl

A.Suzuki
Posts: 2
Joined: Sun 25. Aug 2024, 06:27

Re: How to repeatedly send 4 different data in sequence

Post by A.Suzuki » Tue 27. Aug 2024, 10:31

Thank you for your response.

I was able to execute it using method 1. This method requires manual operation for the sending trigger, but is it possible to automate the sending in PLIN-View Pro?

I would like to know how to automate sending in PLIN-View Pro.

M.Riedl
Software Development
Software Development
Posts: 34
Joined: Wed 22. Sep 2010, 13:28

Re: How to repeatedly send 4 different data in sequence

Post by M.Riedl » Tue 27. Aug 2024, 17:05

Hello,

As I wrote in method 1, sending cannot be automated, also because the software is connected as a LIN slave.
Only the LIN master can send data automatically with a scheduler and the LIN slave can only publish data.
For further information, please refer to the software documentation and the chapter Program Features -> Transmitting LIN Frames.

If you want to automate the sending respectively publishing data as a LIN Slave, you must write it with VBScript (method 2).
For further information, see the software documentation and the chapter VBScript Support -> Essentials and Initialization and the function PublishData.

Regards
M.Riedl

KiranKeshavegowda
Posts: 4
Joined: Mon 24. Mar 2025, 12:36

Re: How to repeatedly send 4 different data in sequence

Post by KiranKeshavegowda » Tue 25. Mar 2025, 10:43

Hello Riedl,
you mentioned the lin SLAVE can only publish the data. So can we set the configuration in such a way only when there is a request from LIN master to send the data , the LIN Slave can publish.. without we manually triggering to send the data..

Regards
Kiran

M.Riedl
Software Development
Software Development
Posts: 34
Joined: Wed 22. Sep 2010, 13:28

Re: How to repeatedly send 4 different data in sequence

Post by M.Riedl » Tue 25. Mar 2025, 11:48

Hello Kiran,

The most recently updated data is automatically published by the slave when the master requests it with the corresponding subscriber frame.
How the data is updated is up to you.

As mentioned before, there are two different methods in PLIN-View Pro.
For further information, see the software documentation and the following chapters:
  • Program Features -> Transmitting LIN Frames
  • VBScript Support -> Essentials and Initialization and the PublishData and ReadData functions
Alternatively, you can use our PLIN API and write your own application to manage the timing and other things yourself.

Regards
M.Riedl

Post Reply