Pumps talk very easily, but if you have a lot of problems, then there is a problem that needs to be fixed.
Before worrying about sending commands to the pumps from your programming code, it is recommended that you check whether the pump is ready to connect to the computer.
From years of experience working with these pumps, I can say that broken cables are a common problem when you experience this level of complexity associated with pumps, number 2 connects them to the correct hole on the back of the pump.
I propose to capture a well-known working application from a third party - like my http://www.SyringePumpPro.com , installing it and using it to confirm that your pump will communicate with a known functional part of the software. If all is well with pumps and cables, SyringePumpPro will detect and display your pump's action in seconds. It will not cost you anything, and it will let you know that the pump, serial adapter and cables are working properly.
Your program ...
I will leave aside the question of whether your tty port, etc., is open, however, if you send to the pumps everything that they will answer - usually with a sequence like
00s? for an unknown team.
Looking at your Python code - I am worried that you are repeating commands twice. The pump only needs these commands to be loaded once and will remember them according to the power cycles.
Assuming that your commands hit the pump, none of them started the pump β they load the pumpβs memory with what needs to be done, but they donβt actually do it. You need a RUN command to make the pump run what you load.
Pump commands can be loaded into a single boot, and then RUN. Then all this concerns pump and stimulation synchronization in your python code.
This pumping sequence above can be performed in the PPL or pump program language file and loaded once.
Here's an example of PPL files at the back of the pump manual and an example that might interest you is example 2.
He caused a second hand with suction back.
Be that as it may, I made a video about it, which is on youtube. This can really help explain how pumps work, how the pump programming language works, and how to load pump programs.
Good luck.