Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keithley 2634b #214

Merged
merged 4 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 80 additions & 3 deletions basil/HL/keithley_2634b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,99 @@ identifier : Keithley Instruments Inc., Model 2634B
channel 1:
on : smua.source.output = 1
off : smua.source.output = 0
get_on : print(smua.source.output)
get_current : print(smua.measure.i())
set_voltage : smua.source.levelv =
set_current : smua.source.leveli =
get_source_current : print(smua.source.leveli)
get_voltage : print(smua.measure.v())
set_voltage : smua.source.levelv =
get_source_voltage : print(smua.source.levelv)
set_current_limit : smua.source.limiti =
get_current_limit : print(smua.source.limiti)
set_voltage_limit : smua.source.limitv =
get_voltage_limit : print(smua.source.limitv)
source_volt : smua.source.func = smua.OUTPUT_DCVOLTS
source_current : smua.source.func = smua.OUTPUT_DCAMPS
get_source_mode : print(smua.source.func)
set_voltage_range: smua.source.rangev =
get_voltage_range: print(smua.source.rangev)
set_voltage_autorange_on: smua.source.autorangev = smua.AUTORANGE_ON
set_voltage_autorange_off: smua.source.autorangev = smua.AUTORANGE_OFF
set_current_range: smua.source.rangei =
get_current_range: print(smua.source.rangei)
set_current_autorange_on: smua.source.autorangei = smua.AUTORANGE_ON
set_current_autorange_off: smua.source.autorangei = smua.AUTORANGE_OFF
four_wire_on: smua.sense = smua.SENSE_REMOTE
four_wire_off: smua.sense = smua.SENSE_LOCAL
set_current_sense_range: smua.measure.rangei =
get_current_sense_range: print(smua.measure.rangei)
set_voltage_sense_range: smua.measure.rangev =
get_voltage_sense_range: print(smua.measure.rangev)
set_mode_measure_current : display.smua.measure.func = display.MEASURE_DCAMPS

channel 2:
on : smub.source.output = 1
off : smub.source.output = 0
get_on : print(smub.source.output)
get_current : print(smub.measure.i())
set_voltage : smub.source.levelv =
set_current : smub.source.leveli =
get_source_current : print(smub.source.leveli)
get_voltage : print(smub.measure.v())
set_voltage : smub.source.levelv =
get_source_voltage : print(smub.source.levelv)
set_current_limit : smub.source.limiti =
get_current_limit : print(smub.source.limiti)
set_voltage_limit : smub.source.limitv =
get_voltage_limit : print(smub.source.limitv)
source_volt : smub.source.func = smub.OUTPUT_DCVOLTS
source_current : smub.source.func = smub.OUTPUT_DCAMPS
get_source_mode : print(smub.source.func)
set_voltage_range: smub.source.rangev =
get_voltage_range: print(smub.source.rangev)
set_voltage_autorange_on: smub.source.autorangev = smub.AUTORANGE_ON
set_voltage_autorange_off: smub.source.autorangev = smub.AUTORANGE_OFF
set_current_range: smub.source.rangei =
get_current_range: print(smub.source.rangei)
set_current_autorange_on: smub.source.autorangei = smub.AUTORANGE_ON
set_current_autorange_off: smub.source.autorangei = smub.AUTORANGE_OFF
four_wire_on: smub.sense = smub.SENSE_REMOTE
four_wire_off: smub.sense = smub.SENSE_LOCAL
set_current_sense_range: smub.measure.rangei =
get_current_sense_range: print(smub.measure.rangei)
set_voltage_sense_range: smub.measure.rangev =
get_voltage_sense_range: print(smub.measure.rangev)
set_mode_measure_current : display.smub.measure.func = display.MEASURE_DCAMPS


on : smua.source.output = 1
off : smua.source.output = 0
get_on : print(smua.source.output)
get_current : print(smua.measure.i())
set_voltage : smua.source.levelv =
set_current : smua.source.leveli =
get_source_current : print(smua.source.leveli)
get_voltage : print(smua.measure.v())
set_voltage : smua.source.levelv =
get_source_voltage : print(smua.source.levelv)
set_current_limit : smua.source.limiti =
get_current_limit : print(smua.source.limiti)
set_voltage_limit : smua.source.limitv =
get_voltage_limit : print(smua.source.limitv)
source_volt : smua.source.func = smua.OUTPUT_DCVOLTS
source_current : smua.source.func = smua.OUTPUT_DCAMPS
get_source_mode : print(smua.source.func)
set_voltage_range: smua.source.rangev =
get_voltage_range: print(smua.source.rangev)
set_voltage_autorange_on: smua.source.autorangev = smua.AUTORANGE_ON
set_voltage_autorange_off: smua.source.autorangev = smua.AUTORANGE_OFF
set_current_range: smua.source.rangei =
get_current_range: print(smua.source.rangei)
set_current_autorange_on: smua.source.autorangei = smua.AUTORANGE_ON
set_current_autorange_off: smua.source.autorangei = smua.AUTORANGE_OFF
four_wire_on: smua.sense = smua.SENSE_REMOTE
four_wire_off: smua.sense = smua.SENSE_LOCAL
set_current_sense_range: smua.measure.rangei =
get_current_sense_range: print(smua.measure.rangei)
set_voltage_sense_range: smua.measure.rangev =
get_voltage_sense_range: print(smua.measure.rangev)
set_mode_measure_current : display.smua.measure.func = display.MEASURE_DCAMPS

15 changes: 15 additions & 0 deletions examples/lab_devices/keithley2634b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
transfer_layer:
- name: Serial
type: Serial
init:
port: /dev/ttyUSB5
read_termination: "\r\n"
baudrate: 19200
timeout: 5

hw_drivers:
- name: Sourcemeter1
type: scpi
interface: Serial
init:
device: Keithley 2634B
Loading