Commit 7902b42e authored by Philipp Oleynik's avatar Philipp Oleynik
Browse files

Agilent pump start and stop

parent 39a4f4d7
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
......
......@@ -100,3 +100,17 @@ class pumpAgilent:
self.status = 1
return self.status
return 0
def pumpStart(self):
stat = self.serWriteAndRecieve(b"\x02\x80\x30\x30\x30\x31\x31\x03\x42\x33")
if stat[2] == 6:
return 1
else:
return 0
def pumpStop(self):
stat = self.serWriteAndRecieve(b"\x02\x80\x30\x30\x30\x31\x30\x03\x42\x32")
if stat[2] == 6:
return 1
else:
return 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment