Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为 CAPL 中的每个 CAN 消息使用一个事件。我的意思是对于发送的每条 CAN 消息都有相同的事件。是否可以使用“on message”结构来做到这一点?
只需使用星号:
/* event handler for all received messages */ on message * { output(this); }
或者
/* event handler for all messages received on CAN1 */ on message CAN1.* { // ... }