def restore(self): """ Loads the settings from memory. Returns 1 if successful, zero otherwise. :rtype: `int` """ response = self.query("resp") return check_cmd(response)
def save(self): """ Stores the parameters in static memory Returns 1 if successful, zero otherwise. :rtype: `int` """ response = self.query("savp") return check_cmd(response)
def save_mode(self): """ Stores output trigger mode and baud rate settings in memory. Returns 1 if successful, zero otherwise. :rtype: `int` """ response = self.query("save") return check_cmd(response)
def default(self): """ Restores instrument to factory settings. Returns 1 if successful, zero otherwise. :rtype: `int` """ response = self.query("default") return check_cmd(response)
def test_mode(self): """ Puts the LCC in test mode - meaning it will increment the output voltage from the minimum value to the maximum value, in increments, waiting for the dwell time Returns 1 if successful, zero otherwise. :rtype: `int` """ response = self.query("test") return check_cmd(response)
def get_settings(self, slot): """ Gets the current settings to memory. Returns 1 if successful, zero otherwise. :param slot: Memory slot to use, valid range `[1,4]` :type slot: `int` :rtype: `int` """ if slot not in range(1, 5): raise ValueError("Cannot set memory out of `[1,4]` range") response = self.query("get={}".format(slot)) return check_cmd(response)