Computer-controlled titrations