Filling or emptying of cuvettes