Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: real time plotting data from GPIB device

Subject: real time plotting data from GPIB device

From: Prashant Patil

Date: 12 May, 2008 13:13:03

Message: 1 of 4

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.

Subject: real time plotting data from GPIB device

From: Ankit Desai

Date: 12 May, 2008 15:26:04

Message: 2 of 4

"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

Subject: real time plotting data from GPIB device

From: Prashant Patil

Date: 16 May, 2008 11:50:03

Message: 3 of 4

"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 .

Subject: real time plotting data from GPIB device

From: Prashant Patil

Date: 16 May, 2008 13:18:01

Message: 4 of 4

"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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
gpib Ankit Desai 12 May, 2008 11:31:09
real time plot Ankit Desai 12 May, 2008 11:31:09
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics