Or do you just turn it on without checking?
Is setting a flag a good way to speed up the program and avoid tying up the network with unnecessary communications to I/O?
Or does it just add a lot of extra variables and decision blocks that make debugging and maintenance harder?
A recent OptoForum post answers these questions with best practices depending on your situation.
What do you do? Add your comments and questions to the forum post as well.
And remember, the OptoForum is always open. You can get expert answers to your questions from experienced Opto 22 customers and staff.