Can't send multiple CAN FD messages with 1 send block on Speedgoat

2 ビュー (過去 30 日間)
Szilard Hegyi
Szilard Hegyi 2023 年 11 月 10 日
コメント済み: Szilard Hegyi 2023 年 11 月 14 日
Hi
I was wondering if it is a limitation, or a bug, that while using the CAN IO602-4 send block for sending CAN FD frames, if I try to send multiple messages joining them in a MUX block, I get an error that a CAN FD bus is type expected , despite using the CAN FD Pack and setting the number of messages to 2-3 or more.
The port is also set to send CAN-FD frames, and it works with a single frame. If I want to send more, I have to use multiple send blocks, , and in the case of like 8-10 messages the Target machine returns an Overload error.
Do you have any idea what the problem might be. It works with standard CAN frames, but with CAN FD I get the issue above.
I'm using Matlab version R2022b UPDATE 6 with Speedgoat blockset 9.7.0.1
Thanks

採用された回答

Dimitri MANKOV
Dimitri MANKOV 2023 年 11 月 14 日
Hi Szilard,
Could you try using a "Vector Concatenate" block instead of a "Mux" block to pass several CAN-FD messages to the "CAN Send" block? This is how the CAN-FD loopback example model from Speedgoat is designed.
I hope this is helpful!
Dimitri
  1 件のコメント
Szilard Hegyi
Szilard Hegyi 2023 年 11 月 14 日
Wow, thanks, that really worked. Temporary workaround I tried was connecting two ports on the same CAN bus, and using one of them for CAN FD, but this solved all our issues

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by