MATLAB: How to simulate CAN messages without having any external device

canMATLABsimulinkvehicle network tool box

I have a requirement where I need to receive and send CAN messages. I do not have any CAN hardware. How can I simulate CAN messages in model? Or how can I make CAN transmit and Receive Module. Which tool box to use? If I am suppose to use Vehicle Network Tool Box, then for it, it is showing 'No Available CAN Device' after dragging the block to the model.

Best Answer

Install the Vector XL drivers and they should provide you with a virtual CAN channel you can use:
You'll can then select the Vector Virtual channel from the "CAN Configuration" block.
Related Question