Closed ginty closed 5 years ago
@ginty thanks for the quick update!
I'll try this out with our application this week and let you know by Monday!
Apologies, I wasn't able to get to this last week. I am currently trying it out on the PGE and will let you know soon. Thanks for being patient!
@priyavadan, any update?
From the documentation that is included in this PR:
Configuring the Capture Storage Location
By default, both
sim_delay
andsim_capture
will save their captured data to Org files (Origen native pattern format) using the following file naming rule:Origen.root/pattern/org/<target name>/<capture ID>.org
.If your application is a top-level application then the default setting should work fine unless you wish to share/re-use captured data between multiple targets.
Another reason to change from the default would be if data is captured at plugin-level and this needs to be referenced later when running within a top-level application. There are potentially two issues in that case:
Origen.root
will point to the top-level application's root instead of the plugin'sIn such cases, the default capture directory can be changed by setting the
OrigenSim.capture_dir
attribute. This can be set anytime before the first call is made tosim_delay
orsim_capture
.For example, a plugin that needs its captured data to work later as part of a top-level application, could set the capture directory in a [startup callback](<%= path "guides/misc/callbacks/#startup(options)" %>), like this: