Difference between revisions of "Geopsy: Groups"

From GeopsyWiki
Jump to navigation Jump to search
Line 43: Line 43:
  
 
Groups are manipulated in the same way as files with the [[Geopsy:Signal drag&drop|drag and drop mechanism]].
 
Groups are manipulated in the same way as files with the [[Geopsy:Signal drag&drop|drag and drop mechanism]].
 +
 +
 +
== Organizing groups ==
  
 
=== Renaming a group ===
 
=== Renaming a group ===
Line 51: Line 54:
  
  
== Organizing groups ==
+
=== Group trees ===
 
[[Image:GroupTree.png|thumb|right|400px|Groups tree]]
 
[[Image:GroupTree.png|thumb|right|400px|Groups tree]]
  

Revision as of 14:26, 9 March 2010

This section explains how to create and to use groups of signals. Groups are ordered lists of signals referenced by their unique signal ID. Groups are organized in a tree, hence a group has always one parent ('/' for root groups). A group with children does not own signals on its own, but owns all the signals of its children and and their descendants.

Creating a new group

Dialog box to create groups


First, the Group list must be displayed. If not, go to Windows menu / Tool bars and select Groups, the Group list is now displayed on the left panel.

There must be an active viewer. Select New group from menu Edit. A dialog box lets you enter a name for the group and its parent. All types of names are accepted (blanks, accents, ...). Provide all required information (name and parent folder) and hit OK. The new group is added to the Groups list and appears as follow : GroupList.png.


Note that:

  • Two groups can share the same name and same parent but it is confusing for the user.
  • Saving the database is mandatory to keep the group permanently.



Creating several groups

Creating several groups

It is possible to create several groups automatically. The current viewer is browsed and a new group is created every time the Key value change. A base name containing formulas (see Set Headers) can be specified in the dialog box Name.

The properties of the first signal in the newly created group are taken in account to build the group name. Signal are not sorted before splitting in groups. It is the user responsibility to sort the signals with the correct keys.

A code:

Sensor {fn=right(Name,5);Return=fn;}

Will produce group names:

Sensor WAU01 
Sensor WAU02 
Sensor WAU03
Sensor WAU04 
Sensor WAU05 
Sensor WAU06
Sensor WAU07 
Sensor WAU08


'Return' variable must be defined in the expression between {}.

Viewing groups

Groups are manipulated in the same way as files with the drag and drop mechanism.


Organizing groups

Renaming a group

Select only one group (not the first one "All groups"). Click on the right mouse button. In the context menu select Properties. Type the new name in the dialog box Name top-text and hit OK.

The ".group" file corresponding to the group is directly renamed, but the ".grouplist" file is not affected. Do not forget to save the database to avoid any loss of the ID list belonging to this group. This situation may be repaired by renaming manually the ".group" file to its original name.


Group trees

Groups tree

Groups can be organizing in tree using folders. To create a folder click right in the Group list tool bar and select New Folder. An empty folder called New Folder is created.


Moving a group

Deleting groups

Select one of more groups and choose "Remove" from the context menu (after a right click in the "Groups" list"). ".group" files are directly removed from the database directory, hence this action cannot be cancelled. Saving the database is mandatory if you do not want to pollute the "Groups" list with empty defunct groups.


Modifying a group

Create a viewer (e.g. a table) with the group. Modify its content (sorting, adding new signals, ...). Select "New group" in menu "Edit" and enter the name of the existing group. The original group will be overwritten. Saving the database in this case is not necessary but strongly advised to avoid confusions with the other actions.