Skip to content

Commit

Permalink
Provide SocketCommunicator object as filelike argument to GPIBCommuni…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Stark committed Apr 11, 2022
1 parent 278543a commit d76c4f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/instruments/abstract_instruments/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ def open_gpibethernet(cls, host, port, gpib_address, model="pl"):
"""
conn = socket.socket()
conn.connect((host, port))
return cls(GPIBCommunicator(conn, gpib_address, model))
comm = SocketCommunicator(conn)
return cls(GPIBCommunicator(comm, gpib_address, model))

@classmethod
def open_visa(cls, resource_name):
Expand Down

0 comments on commit d76c4f9

Please sign in to comment.