Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
marc
measurements
Commits
7e08c5da
Commit
7e08c5da
authored
Nov 05, 2017
by
Camras Demo (local)
Browse files
tested during clubday on mercurius
parent
b5d46700
Changes
3
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
7e08c5da
...
...
@@ -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
()
__pycache__/__init__.cpython-34.pyc
0 → 100644
View file @
7e08c5da
File added
measurements.ini
View file @
7e08c5da
[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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment