Computer system and flow cell for automated potentiometric and constant-current stripping analysis