Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Keithley 6485, was: Re: need help
From: Maren Purves <m.purves@jach.hawaii.edu>
To: Eric Norum <norume@aps.anl.gov>
Cc: "Dalesio, Leo `Bob`" <dalesio@slac.stanford.edu>, TECHTALK Tech-Talk <tech-talk@aps.anl.gov>
Date: Fri, 2 Jun 2006 08:12:49 -1000 (HST)
Same here (understood what Eric understood).

This looks like a good case for using a genSub to me - that way you
can put each of the numbers into a different record if you have use for
more than one of them. We had similar cases on tech-talk not too long
ago.

Aloha,

Maren

On Fri, 2 Jun 2006, Eric Norum wrote:

The way I interpreted the original message is that they're interested in only one of the three values in the string returned from the instrument, and so wouldn't need to do anything tricky with custom conversion routines or string calc records.

On Jun 2, 2006, at 7:18 AM, Dalesio, Leo `Bob` wrote:

Two options for this would be:
Write a driver that sends the commands to the Keithly and puts the values in local variables.
Have the device support read the local variables
Have the startup file start the task that continuously reads the Keithley.
Put the task to sleep between reads for whatever rate you are trying to acieve.


Otherwise, use a string Calc record - I am fairly certain that it offers format statements for parsing strings from GPIB devices.

Bob

-----Original Message-----
From: btanu@veccal.ernet.in [mailto:btanu@veccal.ernet.in]
Sent: Friday, June 02, 2006 4:39 AM
To: tech-talk@aps.anl.gov
Subject: need help

Hi!

I am trying to communicate with Keithley 6485 pA to read the current.After sending the command it provides current value and some other value separated by comma.but i am only interested to store the current.
The response is like this:
-1.047791E-13A,+4.055828E+03,+0.000000E+00\r
How it can be done?
will i have to use any convert function?
i am attaching the code here
static struct gpibCmd gpibCmds[] = {
/* Param 0 */
{&DSET_AI,GPIBREAD,IB_Q_LOW,"CONF:CURR""\r""READ?""\r",0,0,20,0,0,0,NULL,NULL,"\r"}
};
Thanks
tanushyam


****************************************************
TANUSHYAM BHATTACHARJEE
SCIENTIFIC OFFICER
VARIABLE ENERGY CYCLOTRON CENTRE
1/AF BIDHANNAGAR ,SALTLAKE ,KOLKATA-64
email:btanu@veccal.ernet.in
Phone #23371230/31/32/33/34 Extn: 2304
Fax: 91 33 3346871
****************************************************




Replies:
RE: Keithley 6485, was: Re: need help Walters, M (Malcolm)
References:
RE: need help Dalesio, Leo `Bob`
Re: need help Eric Norum

Navigate by Date:
Prev: communications with Keithley 6485, was: Re: need help Maren Purves
Next: Re: Motor.h file broken for C Ronald L. Sluiter
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: need help Eric Norum
Next: RE: Keithley 6485, was: Re: need help Walters, M (Malcolm)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·