def read_global_register(self, name, overwrite_config=False):
self.register_utils.send_commands(self.register.get_commands("<STR_LIT>"))<EOL>with self.readout(fill_buffer=True, callback=None, errback=None):<EOL><INDENT>commands = []<EOL>commands.extend(self.register.get_commands("<STR_LIT>", name=name))<EOL>self.register_utils.send_commands(commands)<EOL><DEDENT>data = self.read_data()<EOL>register_object = self.register.get_global_register_objects(name=[name])[<NUM_LIT:0>]<EOL>value = BitLogic(register_object['<STR_LIT>'] * <NUM_LIT:16>)<EOL>index = <NUM_LIT:0><EOL>vr_count = <NUM_LIT:0><EOL>for word in np.nditer(data):<EOL><INDENT>fei4_data_word = FEI4Record(word, self.register.chip_flavor)<EOL>if fei4_data_word == '<STR_LIT>':<EOL><INDENT>address_value = fei4_data_word['<STR_LIT:address>']<EOL>if address_value != register_object['<STR_LIT:address>'] + index:<EOL><INDENT>raise Exception('<STR_LIT>' % (address_value, register_object['<STR_LIT:address>'] + index))<EOL><DEDENT><DEDENT>elif fei4_data_word == '<STR_LIT>':<EOL><INDENT>vr_count += <NUM_LIT:1><EOL>if vr_count >= <NUM_LIT:2>:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>read_value = BitLogic.from_value(fei4_data_word['<STR_LIT:value>'], size=<NUM_LIT:16>)<EOL>if register_object['<STR_LIT>']:<EOL><INDENT>read_value.reverse()<EOL><DEDENT>value[index * <NUM_LIT:16> + <NUM_LIT:15>:index * <NUM_LIT:16>] = read_value<EOL>index += <NUM_LIT:1><EOL><DEDENT><DEDENT>value = value[register_object['<STR_LIT>'] + register_object['<STR_LIT>'] - <NUM_LIT:1>:register_object['<STR_LIT>']]<EOL>if register_object['<STR_LIT>']:<EOL><INDENT>value.reverse()<EOL><DEDENT>value = value.tovalue()<EOL>if overwrite_config:<EOL><INDENT>self.register.set_global_register(name, value)<EOL><DEDENT>return value<EOL>
The function reads the global register, interprets the data and returns the register value.

    Parameters
    ----------
    name : register name
    overwrite_config : bool
        The read values overwrite the config in RAM if true.

    Returns
    -------
    register value