'Initialize variables.
:param status_file: File contain status.
:param mode_diff: If True make a difference of value, else average.
:param data_to_read: List of tuples with data position.
format: [(start_of_line,position in params)]
example:
data:
cpu   324 345 34  5 345
cpu0  34  11  34 34  33
start of line
params 0   1   2  3   4
:param mode_diff: True to subtract old value from new value,
False make average of the values.
:param continuously: Start the monitoring thread using the time_step
as the measurement period.
:param contlogging: Log data in continuous run.
:param separator: Regular expression of separator.
:param time_step: Time period of the monitoring value.'

def __init__(self, status_file, data_to_read, mode_diff, continuously=False, contlogging=False, separator='    +', time_step=0.1):

    self.end_event = Event()
    self.start_time = 0
    self.end_time = 0
    self.test_time = 0
    self.status_file = status_file
    self.separator = separator
    self.data_to_read = data_to_read
    self.num_of_params = len(self.data_to_read)
    self.mode_diff = mode_diff
    self.continuously = continuously
    self.time_step = time_step
    self.value = [0 for i in range(self.num_of_params)]
    self.old_value = [0 for i in range(self.num_of_params)]
    self.log = []
    self.logging = contlogging
    self.started = False
    self.num_of_get_value = 0
    self.monitor = None
