Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section shows how to add information on the DEMO_SERVICE object to intellectpsim.ddi by using the ddi.exe tool.

To add information on the DEMO_DEVICE object, do the following:

  1. Open intellectpsim.ddi file in one of the following ways:
    1. Go to the IntellectAxxon PSIM\Tools folder and run ddi.exe.
      1. In the program window, select the DDI tab.
      2. In the File menu, select Open. The Open dialog box appears.
      3. Go to the IntellectAxxon PSIM\Languages\en folder and select intellectpsim.ddi. The window of ddi.exe shows a list of objects.
    2. Open the IntellectAxxon PSIM\Tools folder in Windows Explorer or any other file manager, then double-click the intellectpsim.ddi file.
  2. Add the object by selecting Add in the list's context menu or by pressing the Insert key.
  3. A dialog box opens. In the ID field, enter an object name (used for identification) and click OK.

    The DEMO_DEVICE object is now shown in the list of objects.

  4. In the Names tab, enter an object name.

  5. In the relevant tabs, add information on the DEMO_DEVICE object.
    1.  In the Events tab, add the ON and OFF events.
      Image Modified
    2. In the Reactions tab, add the ON and OFF actions.
      Image Modified
    3.  In the Icons tab, enter a BMP file name (the part that serves as an image ID). Image IDs allow you to use multiple BMP files to show objects of the same type on the Map.
      Image Modified
    4. In the States tab, add the ON and OFF states.   To show an object state on the Map, enter a BMP file name (the part that serves as an ID of the state).
      Image Modified

      Info
      titleNote.
      The names of the BMP files in the IntellectAxxon PSIM\Bmp folder must have the following format:
      <Image ID>_<State ID>
      If an image ID is not set, the BMP file name must be the following:
      <Object ID>_<State ID>


      Info
      titleNote.
       The Map may show objects using lines (that is, without using BMP files). In this case, when an object changes its state, the line color changes.   For a state, the color (RGB) is set as follows:
       <State>$R:G:B


    5. In the Transition Rules tab, set a rule for transitioning from one state to another after a certain event.
      Image Modified

      Info
      titleNote.

      If the Transition from state field is left blank, the rule will apply to all starting states.


  6. To save changes, in the File menu, select Save.

...

Note
titleAttention!
After making changes to the DDI file, you must update the database structure by using idb.exe (see Steps 4–7 in Section Adding Objects to Axxon PSIMpsim.dbi).