XCP naming for measurements

35 visualizzazioni (ultimi 30 giorni)
TuttoAlDoc
TuttoAlDoc il 10 Nov 2025 alle 11:36
Commentato: TuttoAlDoc il 20 Nov 2025 alle 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

Risposte (1)

Satyam
Satyam il 18 Nov 2025 alle 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 Commento
TuttoAlDoc
TuttoAlDoc il 20 Nov 2025 alle 11:27
thank you very much,
it works!
Michele

Accedi per commentare.

Categorie

Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange

Prodotti


Release

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by