Version Control for Model Files

Because most configuration management systems work best with text files, Modeler provides a way to convert model files between the binary form used by simulations (.m files) and a text-based XML form. In addition, the model editors can open and save models in both binary and XML form.

Here are typical workflows for version control of model files.

When new models are received:

  1. Convert all models that will be version-controlled from binary (.m) form to XML form.
  2. Check in the XML model files to your configuration management system.

During development:

  1. Check out an XML model file for editing.

  2. Open the model file in a model editor and make the desired changes.

  3. Save the edited model. (The model editor automatically saves the model in both binary and XML forms, with identical timestamps.)

    Note: If you are saving a newly created file, the save_new_model_as_xml preference must be TRUE. If not, the model is saved in binary form only.

  4. Check in the edited XML model file.

If you have two versions of a model file and need to know how they differ, you can compare them with the model comparison feature. For details, see Comparing Models.