Inserting variables into topology XML #1234
Unanswered
teddylambert
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't know this is possible in the XML. I believe it is possible in FPP (v3), although I have not tested it. We've also had success using a templating language (jinja2, mustache, etc) to build the topology Ai.xml from a templatized version. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note: We are using fprime v2.0.1 for the project
I am working on a project where, for a variety of reasons, we are using the port number a message on an N-width bus comes in on to tack some header information on to the message. Because of this, I wanted to maintain the port numbers for specific connections in
AcConstants.ini
and use variables in the topology XML so that in the event a port number does change, just the AcConstants file changes instead of digging through the topology files.I know this is possible with component XMLs, as seen with the static memory allocator:
and in
AcConstants.ini
:StaticMemoryAllocations = 4
However, trying to do this in the topology XML, such as:
and in
AcConstants.ini
:comp1RegInputPort = 3
generates the following error:
Is what I want to do possible? And if so, what do I need to do for the variables to be parsed correctly?
Beta Was this translation helpful? Give feedback.
All reactions