Posted Mon, 24 Oct 2022 14:12:06 GMT by Pile, Brian
Hello All,

Is there a command that returns the 2602B to the LOCAL mode? At the end of my test program I'd like to return to local mode so that measurements are resumed continuously, and so the user doesn't need to manually press the EXIT button.

Thanks,
Brian
Posted Mon, 24 Oct 2022 14:45:33 GMT by McKinney, Ty
Brian,
Unfortunately, to return the instrument from remote operations mode to local mode, this will require a button press from the front panel.
Posted Sat, 29 Oct 2022 20:11:12 GMT by C, Andrea

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()


 

Posted Wed, 02 Nov 2022 17:34:03 GMT by Hayes, Todd
There is not a command that can be issued from within a running script, but the abort command can be sent to the instrument on any remote command interface to abort any running commands/scripts and will return the instrument to local operation.

You must be signed in to post in this forum.