Used to send arbitrary commands to a server outside of both the GUI and an experiment.
Useful for:
Controlling the
Sending custom commands if you have
Sending pump commands greater than 20 seconds if you are using the slow (~1mL/min) pumps or using
Usage
You must
Start the before using send_command.py, otherwise commands will not go through.
Send a Command
The <port> variable tells the program which eVOLVER to connect to
This is designated in the conf.yml file of the eVOLVER under 'port'
It is arbitrary, but we can choose something like 5555
Commands in the Server Log
When you send a command, you should see it come up in the window you're running the server in. See for more information about the eVOLVER server and commands.
Annotated Server Log as a Command Comes in
Examples
To set a parameter on all vials to one value: python3 send_command.py
To run specific pumps (where s is a number of seconds):
Connected dpu as server # Connection to the send_command.py script
Received COMMAND # Command received the send_command.py script
stiri,0,0,_! # Stir command, each vial is turned off
Disconnected dpu as Server
stire,0,0,end # Response from the min-eVOLVER board. It got the command
stira,,,_! # The server tells the min-eV board it can run the command
For example, to turn stirring ON:
python3 send_command.py 5555 stir 11
Stirring OFF:
python3 send_command.py 5555 stir 0
Temperature OFF:
python3 send_command.py 5555 temp 64000