Skip to content

Commit

Permalink
add multi drive command
Browse files Browse the repository at this point in the history
  • Loading branch information
nxi committed Sep 18, 2024
1 parent b0391cf commit 30449a0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,15 @@ def multiDrive(entries):
wait_until_idle()
handleInterrupt()

def multi_drive(entries, timeout = 900):
cmd = "drive "
for key in entries.keys():
cmd += key + " " + str(entries[key])
# run_command_timeout(cmd)
res = run_command_timeout(cmd, True, timeout)
if not res is None and res.find('Full Stop') >= 0:
raise Exception, res

def runbmonscan(scan_variable, scan_start, scan_increment, NP, mode, preset, channel):
runscan('bmonscan', scan_variable, scan_start, scan_increment, NP, mode, preset, channel)

Expand Down

0 comments on commit 30449a0

Please sign in to comment.