Cannot receive CANBUS messages (Vehicle Network Toolbox), but am able to send
2 views (last 30 days)
Show older comments
Hi,
I can send messages from Simulink onto the CAN Bus, but I cannot receive them. I can see that the CAN Recieve block creates function calls and thus gets the messages, but the CAN Unpack block does not give anything on the output ports (all zeros).
I've set it to accept all identifiers.
I have also tried using "The Vehicle CAN Bus Monitor" / canTool() and code examples.
F.x.
rxCh = canChannel("PEAK-System","PCAN_USBBUS1");
start(rxCh);
pause(0.5);
rxMsgs1 = receive(rxCh, Inf, 'OutputFormat', 'timetable')
stop(rxCh);
Or the "demoVNT_BasicCAN.m" example with my channel as receiving.
I can receive the messages on Busmaster or PCAN-View, but not any of Matworks software.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!