Hello,
I am trying to remotely configure and remotely control (via RS232) a triggered sweep using a Keithley 2182 and a Keithley 2400. The configuration seems to work fine (though a few items I am configuring with button pushes). I can provide the commands if warranted...
To start a triggered sweep by hand, I must first take both devices out of remote mode (press LOCAL), then turn on the output (press ON), and finally press TRIG followed by SWEEP. I would like to do this through RS232 commands.
I have tried simulated button presses:
sourcemeter.write(":SYSTEM:KEY 24") # press the on/off output button
sourcemeter.write(":SYSTEM:KEY 20") # press the trigger button
sourcemeter.write(":SYSTEM:KEY 27") # press the sweep key button
sourcemeter.write(":SYSTEM:KEY 24") # press the on/off output button
but this does not start the triggered sweep and the 2400 no longer responds to remote commands.
If you switch the order:
sourcemeter.write(":SYSTEM:KEY 24") # press the on/off output button
sourcemeter.write(":SYSTEM:KEY 27") # press the sweep key button
sourcemeter.write(":SYSTEM:KEY 20") # press the trigger button
sourcemeter.write(":SYSTEM:KEY 24") # press the on/off output button
then the 2400 no longer responds to manual button presses and requires a reboot.
I have also tried the following commands:
sourcemeter.write(":OUTP:STAT ON") # turn on the output (press the on/off output button)
sourcemeter.write(":INIT")
sourcemeter.write(":SYSTEM:KEY 27") # press the sweep key button
sourcemeter.write(":OUTP:STAT OFF") # turn off the output (press the on/off output button)
Turning on and off the output works as expected.
If I send an INIT command between ON and OFF then the device seems to longer respond to remote commands.
If I send a SWEEP button press then the system locks up as before.
Is there a way to initiate a triggered sweep from remote commands?
Thanks.