fixed setting the right state in the analog output software