How to use CAN Pack in Simulink with NXP MBDT ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use CAN Pack in Simulink with NXP MBDT ?

1,306 Views
june_android
Contributor I

我也有相同的问题,并想到了一个解决办法。不知道你是否已经解决。微信截图_20190626164810.png微信截图_20190626164758.png

0 Kudos
2 Replies

1,111 Views
constantinrazva
NXP Employee
NXP Employee

Hello june_android@163.com‌,

I'm not sure I understand what the problem is. If you are trying to send data over CAN using our toolbox, you can just send the data directly, and the rest will be handled inside the generated code - there is no need to make the entire CAN frame.

For example, using those 3 Constant blocks from your example, just put them inside a Bus Creator (with 3 inputs) and send the output of this block to the FCAN_Send block. All you have to do is add the length (another Constant block with value 3). Now this data will be put inside a CAN frame and sent over the network.

pastedImage_1.png

Let me know if you have further questions.

Kind regards,

Razvan.

0 Kudos

1,111 Views
hfji
Contributor I

花了4个小时终于搞定了。

Canpack(Cehicle network toolbox)+Busselector+FCAN_SEND(MBDtoolbox)

1 Set the Canpack ---  output as bus。

2.Set the busselector -- 7outputs。SET the lastoutput as the CAN_SEND's in1[data].

finished!

0 Kudos