Controlling a TENs machine

Anyone have any ideas?