Skip to content

Commit

Permalink
Add queue clear for SCIPY
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed May 15, 2024
1 parent 5a01959 commit 4e6bbdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bench/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def _find_dev_ind(self, rm):
self.address = res
self._instr = rm.open_resource(self.address)
self._instr.timeout = 15000
self._instr.write("*CLS")
return True

return False
Expand Down
1 change: 1 addition & 0 deletions bench/keysight/e36233a.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def __init__(self, address: str = None) -> None:
self.address = address
self._instr = pyvisa.ResourceManager().open_resource(self.address)
self._instr.timeout = 15000
self._instr.write("*CLS")
q_id = self._instr.query("*IDN?")
if self.id not in q_id:
raise Exception(
Expand Down

0 comments on commit 4e6bbdb

Please sign in to comment.