Search code examples
caplcanoeautomotivecanalyzer

CAPL associative array with message type


I'm trying to make CAPL associative array which could hold e.g. 10 most recent CAN messages for each ID like below:

message[10] messages[long]

Is there possibility to make associative array in CAPL, where key would be some integral type value, and value would be array of messages?


Solution

  • The data type message is an object. Since only "simple data types" are possible, you cannot declare a message variable with associative fields.