Skip to content

Commit

Permalink
add method to get voltage
Browse files Browse the repository at this point in the history
  • Loading branch information
adeshazer123 committed Jul 10, 2024
1 parent 1279b1f commit 68d526e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pymeasure/instruments/thorlabs/thorlabskpz101.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def max_voltage(self):
max_voltage = self.device.GetMaxOutputVoltage()
return max_voltage

def get_voltage(self):
voltage = self.device.GetOutputVoltage()
return voltage

def set_voltage(self,voltage):
voltage = Decimal(voltage)

Expand Down

0 comments on commit 68d526e

Please sign in to comment.