Author Topic: SCPI and Keithley 2110  (Read 3573 times)

0 Members and 1 Guest are viewing this topic.

Offline trevwhiteTopic starter

  • Frequent Contributor
  • **
  • Posts: 945
  • Country: gb
SCPI and Keithley 2110
« on: September 29, 2014, 03:25:15 pm »
Hi

I want to execute some SCPI cmd sequences on my 2110 DMM. The KLink software provided seems to enable me to execute one command at a time but not a sequence of commands. Is there better software out there to enable me to run sequences of commands?

Thanks

Trev
 

Offline alex.forencich

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: us
    • Alex Forencich
Re: SCPI and Keithley 2110
« Reply #1 on: September 29, 2014, 08:58:22 pm »
There are several options.  What platform are you on - winows/linux/mac?  What interface are you using - USB or GPIB via some sort of adapter?  If you're on Windows, you can buy the exorbitantly expensive and cumbersome labview software.  You could use the also exorbitantly expensive and cumbersome matlab.  These are not the only options, though.  There are free programs available that should be able to communicate over whatever interface you are using.  If you are using the USB port directly, then you need something that can speak USBTMC.  It is possible to install the NI VISA software in windows and linux and then communicate with that from C directly or from Python with pyvisa.  Another option is the pure python python-usbtmc driver, which should run on anything that libusb runs on (tested on windows, mac, linux, and the raspberry pi).  If you have a GPIB interface of some sort (either USB or PCI), then you're probably going to have to install the NI VISA software and then use C or Python via pyvisa. 

In terms of environments, I would personally recommen Python as it is rather easy to learn and because it is interactive - you can start up the Python interpreter, import the instrument drivers, connect to the instrument, and send it commands without having to write up a whole program and compile it.  If you have ever used Matlab before, it's more or less the same idea, except Python is an actual programming language that's not horribly unpleasent to work with. 
« Last Edit: September 29, 2014, 09:53:41 pm by alex.forencich »
Python-based instrument control: Python IVI, Python VXI-11, Python USBTMC
 

Offline trevwhiteTopic starter

  • Frequent Contributor
  • **
  • Posts: 945
  • Country: gb
Re: SCPI and Keithley 2110
« Reply #2 on: September 30, 2014, 03:28:16 pm »
I originally though PyVISA was going to be a hassle but the examples are great and it does look perfect for my simple requirements.

Big thanks

Trev
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf