XCP naming for measurements

35 visualizaciones (últimos 30 días)
TuttoAlDoc
TuttoAlDoc el 10 de Nov. de 2025 a las 11:36
Comentada: TuttoAlDoc el 20 de Nov. de 2025 a las 11:27
Hi,
I'm developing a small embedded application running on a Xilnx Zynq. I'm trying to communicate with it via XCP. As far as I understood when I generate the A2L file from the matlab generated executable for "CHARACTERISTIC" the name used contains the name of the block it refers to: if I consider a constant block its "name" in the generated A2L contains the name of the block so "constant1, constant2, .." or what I specified if I did. That's fine.
Now I need to access also to "MEASUREMENT": I have an output going to a "display" block and I would like to read it via XCP. I'm not able to understand how its associated name is built in the A2L database. I tried to change the name of the "display" block or to assign a label to the wire coming in to my "display" block but I'm not able to find any reference of the name I used in the generated A2L file.
thanks for the support
Michele

Respuestas (1)

Satyam
Satyam el 18 de Nov. de 2025 a las 4:38
A2L MEASUREMENT entries come from signals/ports/states you mark for export, not from visualization blocks like Display/Scope. So renaming the Display block won’t change the A2L. You need to configure the signal that feeds the Display (or an Outport, Inport, Data Store, State) as a MEASUREMENT for A2L export.To control the name:
  • Name the signal feeding the Display.
  • In Embedded Coder - Code Mappings, mark that signal as Export and set DisplayIdentifier (this becomes the A2L name).
  • Regenerate the A2L using Generate Calibration Files
I hope it resolves your query.
  1 comentario
TuttoAlDoc
TuttoAlDoc el 20 de Nov. de 2025 a las 11:27
thank you very much,
it works!
Michele

Iniciar sesión para comentar.

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Productos


Versión

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by