Path: news.mathworks.com!not-for-mail
From: "Prashant Patil" <prashantpatil002@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: real time plotting data from GPIB device
Date: Fri, 16 May 2008 13:18:01 +0000 (UTC)
Organization: IIT Bombay
Lines: 43
Message-ID: <g0k1i9$fpd$1@fred.mathworks.com>
References: <g09fov$lp8$1@fred.mathworks.com> <g09nic$h3h$1@fred.mathworks.com> <g0jsdb$327$1@fred.mathworks.com>
Reply-To: "Prashant Patil" <prashantpatil002@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210943881 16173 172.30.248.37 (16 May 2008 13:18:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 May 2008 13:18:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1381085
Xref: news.mathworks.com comp.soft-sys.matlab:468834


"Prashant Patil" <prashantpatil002@gmail.com> wrote in
message <g0jsdb$327$1@fred.mathworks.com>...
> "Ankit Desai" <adesai.nospam@mathworks.com> wrote in message
> <g09nic$h3h$1@fred.mathworks.com>...
> > "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
> > 
> 
> Thank you very much , It really helped .
> 

Hi Ankit,
              Can you give me sample code for real time
plotting which use rand (random number generator ) inside
for loop .It will be very helpful for me .Thanks again