How to send n number of messages through standard can pack unpack and speedgoat IO blocks

71 Ansichten (letzte 30 Tage)
Hi,
I am simulating my slx file having standard can pack unpack blocks along with J1939 blocks in real time using speedgoat IO blocks in loopback model. But having a delay in the receiving those signals when number of messages are more. I am chnaging in SLRT explorer but signal is not received in another block for a long time. But working fine wiht J1939 blocks, only standard CAN is having problem. Can someone explain why there is a delay and how to overcome those

Akzeptierte Antwort

Dimitri MANKOV
Dimitri MANKOV vor etwa 16 Stunden
Hi Akhila,
Could you please provide more details about that you mean by "I am changing in SLRT explorer but signal is not received in another block for a long time"? Do you mean there's a delay between the moment that you update a parameter value and the moment when...:
  • ... that parameter gets updated on the target machine, or
  • ... the corresponding signal change is refected on the CAN bus?
Does this affect any signals, or only signals that are fed to CAN blocks? Does this happen only when you try to send more than X messages? Have you considered the average load of your CAN bus?
To answer your main question, you can find examples showing how to send any desired number of messages through standard CAN Pack / Unpack and Speedgoat IO driver blocks on the Speedgoat website here.
Bear in mind that any CAN bus has a limited bandwidth, and that you cannot send more than a certain amount of messages per second. That number of messages depends on the payload of each CAN message, on the selected baudrate, on the other devices connected to the bus, etc. The "CAN Status" blocks from the Speedgoat I/O Blockset can help you estimate how far away you are from reaching the max. load / capacity of your bus.
I hope this is helpful!
Dimitri
  1 Kommentar
AKHILA
AKHILA vor etwa 3 Stunden
Thanks for the answer.
Yes, i am changing one transmitting parameter and receiving the same in the different channel using loopback model.Observing the receiving signal in data inspector of SLRTExplorer.
After changing the value in SLRT explorer that corresponding chane is not reflected in receiving one immediately. When 1 message is sending it's working properly, when number of messages in standard CAN is more delay is happening.
Can you explain more about CAN status and it's use cases.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte


Version

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by