This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyvisa | |
import time | |
import matplotlib.pyplot as plt | |
from random import randrange | |
import csv | |
# Initialize the Keithley and create some useful variables | |
multimeter = pyvisa.ResourceManager().open_resource('GPIB0::1::INSTR')# Connect to the Keithley and set it to a variable named multimeter. | |
multimeter.write(":ROUTe:CLOSe (@101)") # Set the Keithley to measure channel 1 of card 1 | |
multimeter.write(":SENSe:FUNCtion 'RESistance'") # Set the Keithley to measure temperature. |