Commit 55e4ca5e authored by Mateus Goto's avatar Mateus Goto

[FIXED] Watchdog interval

parent 738cb9d3
......@@ -147,10 +147,9 @@ class NHR9400():
#Command specifies the interval (Seconds) in which a command must be received. Query returns the programmed watchdog interval (Seconds).
def systWatchdogInterval(self, interval):
if interval < 0: return -1
self.__s.send(("SYST:WATC:SERV\n").encode())
self.__s.send(("SYST:WATC:INT " + str(interval) +"\n").encode())
self.__s.send(("SYST:WATC:SERV\n").encode())
print(self.checkErrors())
self.__s.send(("*RST\n").encode())
self.__s.send("SYST:RWL\n".encode())
#Command determines the type communication required to reset the watchdog timer. Query returns the type of communication required to reset the watchdog timer.
def systWatchdogRobust(self, bool):
......
......@@ -20,19 +20,18 @@ def main():
for elem in nhr10:
print("nhr10 ip: ",elem.getIp())
print("nhr10 max current: ", elem.instrumentCapCurrent())
print("nhr10 current range: ", elem.instrumentCapCurrentRange())
print("nhr10 freq range: ", elem.instrumentCapFreqRange())
print("nhr10 power range: ", elem.instrumentCapPowerMax())
print("nhr10 voltage range: ", elem.instrumentCapVoltageMaxMin())
print("nhr10 watch dog interval: ", elem.systWatchdogInterval(5))
print("nhr10 watch dog interval: ", elem.systWatchdogInterval(5))
print("nhr10 ip: ",elem.getIp())
print("nhr10 max current: ", elem.instrumentCapCurrent())
print("nhr10 current range: ", elem.instrumentCapCurrentRange())
print("nhr10 freq range: ", elem.instrumentCapFreqRange())
print("nhr10 power range: ", elem.instrumentCapPowerMax())
print("nhr10 voltage range: ", elem.instrumentCapVoltageMaxMin())
for elem in nhr30:
print("nhr30 ip: ",elem.getIp())
print("nhr10 watch dog interval: ", elem.systWatchdogInterval(5))
print("nhr30 max current: ", elem.instrumentCapCurrent())
print("nhr30 current range: ", elem.instrumentCapCurrentRange())
print("nhr30 freq range: ", elem.instrumentCapFreqRange())
......
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