aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/hardware')
-rw-r--r--qolab/hardware/basic.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py
index fa2ccb5..bbc369e 100644
--- a/qolab/hardware/basic.py
+++ b/qolab/hardware/basic.py
@@ -1,4 +1,5 @@
import yaml
+from qolab.file_utils import get_next_data_file
class BasicInstrument:
def __init__(self):
@@ -30,4 +31,8 @@ class BasicInstrument:
header = yaml.dump(self.getConfig(), default_flow_style=False, sort_keys=False)
header = header.split('\n')
return header
+
+ def getNextDataFile(self, extention='dat'):
+ fname = get_next_data_file(self.config['FnamePrefix'], self.config['SavePath'], extention=extention)
+ return fname