An analytical translation of a criterion of Welters and its relation with the KP hierarchy