A control system for at least one flexible tubular element connected to a cup-shaped member includes a positioning mechanism arranged to hold the cup-shaped member and the tubular element in a parking position in a magazine when the cup-shaped member is not used, and to allow a pull-out motion of the tubular element when the cup-shaped member is moved from the parking position in the magazine to an attaching position on a teat of an animal by a gripping member. The control system further includes a control unit arranged to control the positioning mechanism such that it provides a pull-out motion of the tubular element with a controlled speed when the cup-shaped member is moved from the parking position to the attaching position on a teat of an animal by the gripping member.