# Units

Updated by Ólafur Haukur Pétursson

Units are split into different Unit Types, select the appropriate Type and then select the Unit, press Select when done.

Units are given to variables so users have better overview of their data. They also determine which calculations are presented in the db.data.browser. A Unit belongs to a certain Type.

To access the Edit Unit panel db.robot.c > Edit > Edit Unit.

#### New Type

To create a new Type press the New button from the Type panel.

Enter a name for the new Type and press Ok.

#### Edit Type

To change the name of a Type select the Type and press edit from the Type Panel.

NOTE: You cannot change the names of the Default Types

Enter a new name for the Type and press Ok.

#### Delete Type

To Delete a Type select the Type you wish to Delete and press Delete from the Type Panel.

NOTE: You cannot delete the Default Types

Press Yes to confirm the Delete.

#### New Unit

While db.robot.c incorporates a wide variety of units, there is always need to add specific units. Users can easily add new units and specify associated calculations. The calculations are displayed when viewing the corresponding data in the db.data.browser or db.web.browser.

To create a new Unit press the New button from the Unit panel.

Enter a name for the new Unit, select the calculations you wish to accompany the new unit. When finished press Ok.

#### Edit Unit

To edit an existing Unit press Edit from the Unit panel.

Change the Unit name and/or select new Calculations. When done editing the Unit press Ok. (You cannot Edit the Default Units)

#### Delete Unit

To Delete a Unit select the Unit you wish to Delete and press the Delete button from the Unit panel.

Press Yes to confirm the Delete. (You cannot Delete the Default Units)

#### Calculations:

The calculations are performed in the db.data.browser and db.web.browser, for data displayed in graphs each time. As an example, if one day of data is displayed, then all calculations are preformed on that one day of data.

During set-up of user-defined units, the user can specify which calculations are associated with the unit. The following calculations are built-in:

##### Average:

All values on display are added and then the sum is divided with the number of variables.

##### Example:

Sum of 96 values is 7006. Average is 7006/96 = 72.979.

##### Load Factor %:

All values on display are added and the sum is divided with the number of variables, and then the sum is divided with the maximum value and multiplied by 100.

Example: Sum of 96 values is 7006 and maximum value is 212. Load Factor is (7006*100)/(96*212) = 34.42%. Load factor have the range 0% to 100%.

##### Max:

Maximum value of all values on display.

##### Median:

Median of all values on display.

##### Min:

Minimum value of all values on display.

##### S. Deviation:

Standard Deviation of all values on display.

##### Sum:

Sum of all values on display.

##### Sum/p:

Sum of all values on display divided with the number of values in each hour.

Example: Sum of 96 values is 4800. There is a value every 15 minutes and therefore, there are 4 values for each hour. There are 96/4=24 hours. Sum/p is 1200.

Note: Sum/p is useful, if value on display is power and not energy. Example: The original value is kWh and the sum of kWh is stored every 15 minutes. However, it would be more useful to display kW every 15 minutes, as it reflects the power load. So, instead of storing kWh every 15min in the data logger, the kWh are multiplied by 4 and stored as kW. When displaying the data, the load is displayed in kW which is more informative to the user. However, the sum of kW is meaningless but sum/p would return kWh for data on display, and that is meaningful.