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: [email protected] [mailto:[email protected]]
Sent: Friday, June 02, 2006 4:39 AM
To: [email protected]
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:[email protected]
Phone #23371230/31/32/33/34 Extn: 2304
Fax: 91 33 3346871
****************************************************