When Was The Polygraph Invented?

When was the polygraph first used?

.