Commit 7e08c5da authored by Camras Demo (local)'s avatar Camras Demo (local)
Browse files

tested during clubday on mercurius

parent b5d46700
......@@ -63,7 +63,7 @@ class Measurements():
Note: in the stub dumpwide I added /bin/bash, otherwise you get an Exec format error.
'''
try:
self.measurement = subprocess.Popen(self.tool, self.integrationTime, stdout=subprocess.PIPE)
self.measurement = subprocess.Popen([self.tool, str(self.centralFrequency), str(self.integrationTime)], stdout=subprocess.PIPE)
#self.measurement = subprocess.Popen(self.tool +" "+ str(self.centralFrequency) +" "+ str(self.integrationTime), shell=True, stdout=subprocess.PIPE)
measResults = self.measurement.stdout
except OSError as e:
......@@ -83,6 +83,7 @@ if __name__ == '__main__':
for tool in myMeas.getTools():
logging.info('Defined tools in ini file are: {}'.format(tool))
myMeas.startMeasurement(tool, 1420, 120, measFile)
# myMeas.startMeasurement(tool, 1420, 120, measFile)
myMeas.startMeasurement('dumpwide', 1420, 10, measFile)
measFile.close()
[Tools]
dumpwide: /home/marc/bin/dumpwide
int32bin: /usr/bin/int32bin
pulsarrecord: /usr/bin/pulsarrecord
rawrecord: /usr/bin/rawrecord
\ No newline at end of file
dumpwide: /usr/local/bin/dump-wide
dump32: /usr/local/bin/dump32
int32bit: /usr/local/bin/int32bit
pulsarrecord: /usr/local/bin/pulsar_record
rawrecord: /usr/local/bin/raw_record
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