The LaMPS module extension for the visualization comes along with a predefined template. However, it is possible to create your own template or you can change the existing one.

Each template consists of different element blocks that depend on the type of layout.

The blocks of existing templates can be found in library in the sub tree NXA:

You can use these existing blocks as template for your own blocks. Just insert them on an empty visualization page, modify them to your needs and create a new template.

Variables used in templates

There are predefined variable names that are replaced automatically when inserting a template. These variable names can be used as block variables and group variables – the values are exchanged for both variable types:

Array template

An array template may consist of the following block:

Create a new template or to use an existing one, select the template assistant from the corresponding category.

Afterwards, the template assistant is started.

If you want to modify an existing template, you can select the template in the drop-down list. If you want to create a new one, just enter a name in the list.

Please keep in mind that the existing templates NETx1, NETx2, … may be overwritten after a server update. If you want to change such a template, create a new one and use the existing elements from the library.

For each block, you can choose the following options:

After selecting all blocks, you can press the Ok button to save the changes. If existing blocks are overwritten, you must confirm that.

Creating a new array template by using a NETx template

As an example, we will create a new device template that is based on the template NETx1. For that create a new visualization page and insert the blocks DEVICES_ARRAY_NETx1_CELL, DEVICES_ARRAY_NETx1_HEADER and DEVICES_ARRAY_NETx1_POPUP into the page. Important is that you always select “Leave variables in block”:

Afterwards, modify your elements that you would like to change. Use the predefined variable names are described above in Variables used in templates.

Then you have to create a new template. Open the template assistant, enter your new template name and set the option “Not used / remove” for the block FOOTER, POPUP2 and POPUP3:

Afterwards, click at the … button in the cell block row. Select the control elements and do a right-click:

Repeat this for the header block and the pop-up block. You will see the number of selected elements in the parenthesis.

Press Ok to save the template and close the template assistant.

Table template

A table template may consist of the following block:

Create a new template or to use an existing one, select the template assistant from the corresponding category.

Afterwards, the template assistant is started.

If you want to modify an existing template, you can select the template in the drop-down list. If you want to create a new one, just enter a name in the list.

Please keep in mind that the existing templates NETx1, NETx2, … may be overwritten after a server update. If you want to change such a template, create a new one and use the existing elements from the library.

For each block, you can choose the following options:

After selecting all blocks, you can press the Ok button to save the changes. If existing blocks are overwritten, you must confirm that.

Creating a new table template by using a NETx template

As an example, we will create a new table template that is based on the template NETx1. For that create a new visualization page and insert the blocks DEVICES_TABLE_NETx1_CELL, DEVICES_TABLE_NETx1_HEADER and DEVICES_TABLE_NETx1_POPUP into the page. Important is that you always select “Leave variables in block”:

Afterwards, modify your elements that you would like to change. Use the predefined variable names are described above in Variables used in templates.

Then you have to create a new template. Open the template assistant, enter your new template name and set the option “Not used / remove” for the block POPUP2 and POPUP3:

Afterwards, click at the … button in the cell block row. Select the control elements and do a right-click:

Repeat this for the header block and the pop-up block. You will see the number of selected elements in the parenthesis.

Press Ok to save the template and close the template assistant.