XCP naming for measurements

35 views (last 30 days)
TuttoAlDoc
TuttoAlDoc on 10 Nov 2025 at 11:36
Commented: TuttoAlDoc on 20 Nov 2025 at 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

Answers (1)

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

Sign in to comment.

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products


Release

R2025b

Community Treasure Hunt

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

Start Hunting!