Commit 4f1ec903 authored by Mateus Goto's avatar Mateus Goto

[Tested] Voltage setting

parent a850a97e
...@@ -175,11 +175,9 @@ class NHR9400(): ...@@ -175,11 +175,9 @@ class NHR9400():
################################# Setters and Getters ################################################ ################################# Setters and Getters ################################################
#set limit voltage of all phases #set limit voltage of all phases
def setVoltage(self,voltage): def setVoltage(self,voltage):
msg = "SOUR:VOLT: 110\n" if voltage < 0:
print(msg) return -1
print(self.__s) self.__s.send(("SOUR:VOLT: " + str(voltage) + "\n").encode())
self.__s.send(msg.encode())
print("ok")
#Functions that sets the limits voltage on one phase (A, B or C) #Functions that sets the limits voltage on one phase (A, B or C)
def setVoltageA(self,voltage): def setVoltageA(self,voltage):
if voltage < 0: if voltage < 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment