it is posible to create manually a can message?
2 次查看(过去 30 天)
显示 更早的评论
it is posible to create manually a can message in matlab/simulink?
回答(1 个)
Walter Roberson
2014-3-17
You can create the data bitstream without much difficulty, and you can NRZ encode it to a representation of the voltage bit stream. However, the serial bus for CAN is not compatible with RS232, so you would need a CAN driver chip to drive the bus. Talking to the CAN driver might require you to write some MEX code that would be operating system and hardware dependent, but potentially you might be able to use loadlib() or activex to talk to a pre-written driver.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!