Currently, src/server.py only listens for incoming commands, performs them, and then waits for new commands. For this software to actually be useable on an instrument, the listening socket needs to send information back to the socket which sent the command.
It would probably be good to send confirmation that a command was received immediately, and then send a message after the requested action has been performed communicating if the action has been completed, or if problems/errors have occurred. If there are problems/errors, it would be good to send the contents of the error registers of the effected devices.
Currently,
src/server.pyonly listens for incoming commands, performs them, and then waits for new commands. For this software to actually be useable on an instrument, the listening socket needs to send information back to the socket which sent the command.It would probably be good to send confirmation that a command was received immediately, and then send a message after the requested action has been performed communicating if the action has been completed, or if problems/errors have occurred. If there are problems/errors, it would be good to send the contents of the error registers of the effected devices.