The data in CAN FD protocol doesn’t sent correctly in SLDRT for PCI Express Peak card

17 vues (au cours des 30 derniers jours)
mojtaba gheibi
mojtaba gheibi il y a environ 23 heures
I want to buy CAN FD cards that work well in Simulink Desktop Real-Time (SLDRT). I barrowed a PCAN-PCI Express card from Peak Company.
I tested CAN and CAN FD protocol with 2 ports in SLDRT with MATLAB version R2020b & R2024a in Windows 10.
I connected port1 to port2 with 120-ohm resistance termination in both ends.
When the settings in SLDRT for two ports are CAN protocol, sending & receiving data with packet input & packet output blocks are ok.
But when the settings in SLDRT for two ports are CAN FD protocol, the packet input block doesn’t receive any data.
I checked each packet input & packet output blocks separately with other applications such as PCAN-View from PEAK Company and CAN FD Explorer APP in MATLAB.
With the use of both applications for sending data, packet input block receives CAN FD protocol data correctly.
But when the packet output block sends CAN FD protocol data, both applications in the receiving data section shows CAN protocol instead of CAN FD & length of data is limited to 8 bytes when the length of data is more than 8 bytes.
I think that it may be a bug of SLDRT for CAN FD in packet output block for cards of PEAK Company.
I hope someone help me to resolve this challenging problem for this card.
On the other hand, if someone has successful related with CAN FD cars from Kvaser or Vector company in SLDRT, please tell me the part number of card.
Best regards

Réponses (0)

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by