Hi Jim.
Your approach with the file is easy to understand and easy to maintain.
You might consider creating a server application for your laser, so any client application that wants to control the laser, must communicate with that laser server application. That laser server might run on one of the both computers or a dedicated one ...
I don't think that your scenario (two stations that deal with one shared resource) justifies the approach of creating a laser server.
Using a shared file as a lock for a shared resource is a good solution as long as performance doesn't matter too much and the number of clients is small.
Regards, Guenter