Skip to content

Commit

Permalink
Added support for Rohde and Schwarz Device via Passport
Browse files Browse the repository at this point in the history
See #115
  • Loading branch information
hgrecco committed Jan 27, 2015
1 parent 117cf59 commit d5b5913
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyvisa/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,9 @@ class InterfaceType(enum.IntEnum):
#: Firewire device.
firewire = VI_INTF_FIREWIRE

#: Rohde and Schwarz Device via Passport
rsnrp = 33024


class AddressState(enum.IntEnum):

Expand Down
4 changes: 4 additions & 0 deletions pyvisa/resources/messagebased.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,3 +509,7 @@ def read_termination_context(self, new_termination):
self.set_visa_attribute(constants.VI_ATTR_TERMCHAR, ord(new_termination[-1]))
yield
self.set_visa_attribute(constants.VI_ATTR_TERMCHAR, term)


# Rohde and Schwarz Device via Passport. Not sure which Resource should be.
MessageBasedResource.register(constants.InterfaceType.rsnrp, 'INSTR')(MessageBasedResource)

0 comments on commit d5b5913

Please sign in to comment.