Jump to content

Scripting the Sourcemeter Keithley 2602 with LabView


nicoC

Recommended Posts

Posted

Hi

I am currently trying to control a Sourcemeter Keithley 2602 using a serial link and Labview 7.1, and I have some troubles.

I wish to use a script, as it is the most flexible way to communicate with the 2602. Then, using Keithley TestScript Builder, this script works fine:

smua.reset()

smua.source.limiti = 10e-3

SweepVLinMeasureI(smua, 1, 20, 0.1, 20)

smua.source.output = smua.OUTPUT_ON

waitcomplete()

smua.source.output = smua.OUTPUT_OFF

printbuffer(1, 20, smua.nvbuffer1.readings)

and I get my 20 readings back on the console

Then, I wish to use LabView to control the 2602. Documentation shows (2602 User's Manual, p. 3-15) how to use LabView and script. But it does not work (see my2602_Script.vi). As far as I can tell with NI-Spy, Visa session opened, Command are written to VISA-Resource, but the script is never executed.

Then again, I try to use the sub-Vi's that come with the Keithley 2602 driver (see my2602_Sweep.vi). This time, the sweep is executed, but my Labview code ends before the end of the sweep. I cannot find the sub-vi equivalent to the "waitcomplete()" instruction.

Does anyone have experienced this kind of troubles ?

Thanks in advance

Nicolas

Download File:post-3834-1145546559.vi

Download File:post-3834-1145546571.vi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.