Hello,
I've recently switched from GUI GMAT to using the Python API for it (3.12) and
have been struggling a bit with creating a report file in it. After some trial
and error based on loading a mission script that worked with the GUI, I've
constructed the variables I need for the report file using gmat.Construct, e.g.
elSVar = gmat.Construct(''ElapsedSecs, 'satName.ElapsedSecs'). Continuing the
example of ElapsedSecs, I then set the reference to the satellite object with
elSVar.SetReference(satName) and add the parameters to the list using
repFile.AddParameter('satName.ElapsedSecs', 0). However, when doing
gmat.Initialize() I get the following error:
APIException: Subscriber Exception: Subscriber::SetActualWrapperReference()
"repFile" failed to set reference for object named "satName.ElapsedSecs." The
wrapper is NULL.
Could any of you please shed some light on how exactly this process should be
done? As I said, I've mostly been basing myself on reverse engineering the
configuration after loading a mission script, so I must've made mistakes
somewhere. An additional question is whether the same process applies for the
variables that have intermediary fields for coordinate systems or central
bodies (e.g. satName.EarthMJ2000Eq.RAAN or satName.Earth.SMA)?
Thank you very much,
Anthonius Daoud-Moraru
_______________________________________________
GMAT-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmat-users