Path: news.mathworks.com!not-for-mail
From: "Ankit Desai" <adesai.nospam@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: real time plotting data from GPIB device
Date: Mon, 12 May 2008 15:26:04 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 26
Message-ID: <g09nic$h3h$1@fred.mathworks.com>
References: <g09fov$lp8$1@fred.mathworks.com>
Reply-To: "Ankit Desai" <adesai.nospam@mathworks.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210605964 17521 172.30.248.35 (12 May 2008 15:26:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 12 May 2008 15:26:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 143898
Xref: news.mathworks.com comp.soft-sys.matlab:467924


"Prashant Patil" <prashantpatil002@gmail.com> wrote in
message <g09fov$lp8$1@fred.mathworks.com>...
> I have a model 6487 picoammeter (Keithley ) connected to my
> PC through GPIB interface . I have to find V-I
> characteristic of a sample and real time data plotting of
> the data taken from the device .I am new to matlab and need
> serious help. 

Hi Prashant,

Assuming that you are getting data regularly from your GPIB
device (probably using a loop)you can plot it in real time
by plot once before the loop. If you provide an output
argument to plot command, it returns you a handle to the
plot window.

Using this handle you can now update the XData and YData
properties inside your loop. You will have to however call
'drawnow' command to refresh your plot window to reflect the
changes made to XData and YData.

The following link might be useful:
http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/creating_plots/f10-1460.html&http://www.google.com/reader/view/

-Ankit