Skip to content

Commit

Permalink
Rohde&Schwarz NGx driver -> comment in set_channel added
Browse files Browse the repository at this point in the history
  • Loading branch information
afischer-sweepme committed Nov 11, 2024
1 parent 25fd7f3 commit ceef9df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SMU-Rohde&Schwarz_NGx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ def set_channel(self, channel):
Returns:
None
"""

# set channel is often used in the driver to change the activated driver before further commands are sent.
# This is why the model is checked here, because the NGU model does not seem to understand the INST:OUT command.
if self.model != "NGU":
self.port.write("INST:OUT%i" % int(channel))

Expand Down

0 comments on commit ceef9df

Please sign in to comment.