Skip to content

Commit b00067f

Browse files
hardcoded address replaced
1 parent e40e25e commit b00067f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pica/keithley/k2400/Instrument_Control/IV_K2400_Loop_Instrument_Control.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ def main():
3838
parser.add_argument("--path", help="Path to save the data file. Defaults to a 'data' folder.")
3939
parser.add_argument("--range", type=float, required=True, help="Highest value of Current (in micro A).")
4040
parser.add_argument("--step", type=float, required=True, help="The step size (in micro A).")
41+
parser.add_argument("--gpib-address", default="GPIB::4", help="GPIB address of the instrument.")
4142
args = parser.parse_args()
4243

4344
# object creation ----------------------------------
44-
keithley_2400 = Keithley2400("GPIB::4")
45+
keithley_2400 = Keithley2400(args.gpib_address)
4546
keithley_2400.disable_buffer()
4647
sleep(2)
4748

0 commit comments

Comments
 (0)