DanielT / a2ltool

A tool to edit, merge and update a2l files
Apache License 2.0
46 stars 15 forks source link

Is it possible to generate array parameter from elf file? #23

Closed xRowe closed 4 months ago

xRowe commented 5 months ago

Hello Developer

Thanks again for the awesome tool, it help me a lot

Is possible to generate an array parameter instead of separate into abc.1 abc.2 from elf file?

Cause there is a 300elements array Measurement parameter to load.

Thanks, Rowe

DanielT commented 5 months ago

At the moment this is not possible. I am currently working on support for complex types, such as structs (using TYPEDEF_STRUCTURE), and also arrays.

xRowe commented 5 months ago

Ahha, Great. Look forward to get this new feature.

Thank you

DanielT commented 4 months ago

I've just implemented this and it should work well enough. Arrays can now be generated if the element type is a plain data type, like integer or boolean. If your array contains structures, then you'll need to use a2l file version 1.7.1, and set --enable-structures, which enables the use of INSTANCES and TYPEDEF_STRUCTUREs.