diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-17 18:01:32 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-17 18:02:07 -0400 |
commit | 987ef732065f1296de45b9b83f0dcce9bd41311b (patch) | |
tree | 1a56afeadea98b488f9819d1fd463d00c17da8b7 /rfGen.py | |
parent | 34aa435652c7535fba438d791c4a7413a3a537f7 (diff) | |
download | pyExpControl-987ef732065f1296de45b9b83f0dcce9bd41311b.tar.gz pyExpControl-987ef732065f1296de45b9b83f0dcce9bd41311b.zip |
new flag setToDefaults in rfGenLMX2487v3.1
Diffstat (limited to 'rfGen.py')
-rw-r--r-- | rfGen.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -5,13 +5,15 @@ import time # For sleep, clock, time and perf_counter from datetime import datetime, timedelta class rfGenLMX2487: - def __init__(self, port='/dev/ttyUSB0', speed=115200, timeout=1): + def __init__(self, port='/dev/ttyUSB0', speed=115200, timeout=1, setToDefaults=True): self.port = port self.speed = speed self.timeout = timeout self.connection = serial.Serial( self.port, self.speed, timeout=self.timeout) self.log = [] self.logCapacity = 10 + if setToDefaults: + self.sendSerialCmd("set_lmx2487_board_to_default_state()") def add2log(self, text): self.log.append(text) |