If you are using VISA to exchange messages with the instrument, when you clear and then close the session, the REM indicator on the 2600B will go out and the auto initiated local mode readings will resume.
import pyvisa
import time
resource_mgr = pyvisa.ResourceManager()
#optional print available VISA resources on this computer
resource_list = resource_mgr.list_resources()
for resource in resource_list:
print(resource)
try:
#get a session/handle for one resource
instrument_resource_string = resource_list[0] #"USB0::0x05E6::0x2602::4484585::INSTR"
#"TCPIP0::192.168.1.50::inst0::INSTR" #
my_instr = resource_mgr.open_resource(instrument_resource_string)
except(visa.VisaIOError):
#did not connect.....
print("Whoops, something went wrong")
my_instr.write("*IDN?\n")
print("*****")
print(my_instr.read())
#put instrument back to local and close connection
my_instr.clear()
my_instr.close()
resource_mgr.close()