# Storing settings to installation file automatically

**URL:** <https://forum.universal-robots.com/t/storing-settings-to-installation-file-automatically/2898>\
**Category:** URCaps SDK\
**Created:** [October 10, 2018, 11:38am UTC](https://forum.universal-robots.com/t/storing-settings-to-installation-file-automatically/2898 "2018-10-10T11:38:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![artiminds](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@artiminds](https://forum.universal-robots.com/u/artiminds)\
**Post date:** [October 10, 2018, 11:38am UTC](https://forum.universal-robots.com/t/storing-settings-to-installation-file-automatically/2898/1 "2018-10-10T11:38:17Z")

</div>

Hello,

I’ve noticed that the DataModel object (e.g. of an InstallationNode) is not written to the installation automatically  
when turning off the robot anymore (compared to PolyScope 3.X on the “old” CB3/3.1 robots with URCap 1.2).  
Instead one has to manually store the installation by hand. So the user always has to remember to save the changes to the installation file when altering some setting in an InstallationNode.

One possibility to “solve” this, would be to read in the installation file within the URCap Java code and write the changes to it from code. But I guess this is not allowed by the URCap guidelines?

Thank you very much

---

<div class="post-metadata">

**Author:** ![jbm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/jbm/32/614_2.png) [@jbm](https://forum.universal-robots.com/u/jbm)\
**Post date:** [October 10, 2018, 11:52am UTC](https://forum.universal-robots.com/t/storing-settings-to-installation-file-automatically/2898/2 "2018-10-10T11:52:39Z")

</div>

The URCap should not try to overwrite the saving of the Installation file.  
The user is responsible for saving the Installation, when the user wishes to do so.

That the Installation is not saved, when the robot shuts down, may be qualified as a bug.  
We will investigate this.

---

<div class="post-metadata">

**Author:** ![artiminds](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@artiminds](https://forum.universal-robots.com/u/artiminds)\
**Post date:** [October 10, 2018, 12:27pm UTC](https://forum.universal-robots.com/t/storing-settings-to-installation-file-automatically/2898/3 "2018-10-10T12:27:10Z")

</div>

As a background, we’ve tested the HelloWorld, UserInput and an URCap from us. They all have in common that the DataModel object is not written to the installation file when powering off the robot. This has been tested on URSim and the real robot (UR5e),  
the content of the installation file has also been checked with a text editor.  
Manually saving the installation file before powering off the robot did help (the DataModel object is written).
