Initialising number of samples and aggregate type from EEPROM.