send_command.py
Last updated
Was this helpful?
Last updated
Was this helpful?
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
You must
Start the before using send_command.py, otherwise commands will not go through.
In another terminal window, enter into the dpu
virtual environment and navigate to the folder send_command.py is in: /dpu/experiment/
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
send_command.py
python3 send_command.py 5555 pump s,s,s,s,s,s
For example:
python3 send_command.py 5555 pump 0,0,0,0,5,5
python3 send_command.py <port> <parameter> <list_of_values>
For example:
python3 send_command.py 5555 temp 30000,31000
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.