Rank: 252 based on 251 downloads (last 30 days) and 2 files submitted
Personal Profile:

Software Quality Engineer,
Test and Measurement Team.

Professional Interests:
Instrument control, GPIB, Serial (RS232), VISA, TCP/IP, UDP, IVI, LXI, PXI, VXI

 

Watch this Author's files

 

Files Posted by Ankit View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Apr 2010 Screenshot Collect and plot data from a TCPIP server in real time Obtain real time data from a TCPIP object using Instrument Control Toolbox and visualize it live. Author: Ankit Desai instrument, report, real time plot, publish, real time, tcpip 107 7
  • 5.0
5.0 | 1 rating
07 Oct 2009 Screenshot Collect and plot data from an instrument in real time Real time data collection & plotting using query based instrument interactions. Author: Ankit Desai real time plot, instrument, agilent 34401a, 34401a, agilent, real time 144 2
  • 5.0
5.0 | 1 rating
Comments and Ratings by Ankit View all
Updated File Comments Rating
24 Jan 2011 Collect and plot data from a TCPIP server in real time Obtain real time data from a TCPIP object using Instrument Control Toolbox and visualize it live. Author: Ankit Desai

Ghani, the error might be due to corrupted path. Try to reset MATLAB path and see if that works.

It might also give you this error if you have created your own plot function which takes different number of inputs. Hope this helps.

08 Oct 2010 Collect and plot data from an instrument in real time Real time data collection & plotting using query based instrument interactions. Author: Ankit Desai

You are getting that error since the fscanf on the serial object did not return any data. You might want to put in a check to make sure you are getting data in each iteration. Hope this helps.

08 Oct 2010 Collect and plot data from a TCPIP server in real time Obtain real time data from a TCPIP object using Instrument Control Toolbox and visualize it live. Author: Ankit Desai

You might also have to update the TCPIP object's InputBufferSize and OutputBufferSize properties along with bytesToRead variable in the program to the desired number. Hope this helps.

Comments and Ratings on Ankit's Files View all
Updated File Comment by Comments Rating
31 Aug 2011 Collect and plot data from a TCPIP server in real time Obtain real time data from a TCPIP object using Instrument Control Toolbox and visualize it live. Author: Ankit Desai Almiron, Rubens

Hello Ankit,
Can I use this program in Matlab version 2007b?
Thanks,
Eduardo

11 Apr 2011 Collect and plot data from a TCPIP server in real time Obtain real time data from a TCPIP object using Instrument Control Toolbox and visualize it live. Author: Ankit Desai Mohammad

Hi Ankit,

Thanks for your useful script. I got it work; however I still do not know how to get the data which are being read by the TCPIP server.
In other words, using your file, I can stream and plot all those data, but I need to demonstrate more results, so I require the data at each instant. I am wondering how I can access those data?

Cheers,
Moe

24 Jan 2011 Collect and plot data from a TCPIP server in real time Obtain real time data from a TCPIP object using Instrument Control Toolbox and visualize it live. Author: Ankit Desai Desai, Ankit

Ghani, the error might be due to corrupted path. Try to reset MATLAB path and see if that works.

It might also give you this error if you have created your own plot function which takes different number of inputs. Hope this helps.

06 Jan 2011 Collect and plot data from a TCPIP server in real time Obtain real time data from a TCPIP object using Instrument Control Toolbox and visualize it live. Author: Ankit Desai Amna, Ghani

Hi... I also ran this code,but it's showing error.

??? Error using ==> plot
Too many input arguments.

Error in ==> real_time_data_stream_plotting at 51
plotHandle = plot(axesHandle,0,'-y','LineWidth',1);
Any Help...?

12 Oct 2010 Collect and plot data from a TCPIP server in real time Obtain real time data from a TCPIP object using Instrument Control Toolbox and visualize it live. Author: Ankit Desai Luthar, John

That worked great!

I ran into another problem I can't figure out.
The tcpip object has a communication state that shows closed/open.

I'm currently using Matlab as a client connected to a server. If the server goes down, the communication state (connection.status) doesn't change from open -> closed.

Once it connects, the status doesn't seem to change again. How would I check if the connection ever went down?

Top Tags Applied by Ankit
instrument drivers, scpi, instrument, oscilloscope, publish
Files Tagged by Ankit View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Apr 2010 Screenshot Collect and plot data from a TCPIP server in real time Obtain real time data from a TCPIP object using Instrument Control Toolbox and visualize it live. Author: Ankit Desai instrument, report, real time plot, publish, real time, tcpip 107 7
  • 5.0
5.0 | 1 rating
02 Mar 2010 LeCroy Oscilloscopes - MATLAB Instrument Driver MATLAB instrument driver for LeCroy oscilloscopes such as SDA, WaveMaster, WavePro, and WaveRunner Author: The Instrument Control Team instrument drivers, sda, instrument driver, wavepro, waverunner, wavemaster 28 10
  • 2.875
2.9 | 8 ratings
07 Oct 2009 Screenshot Collect and plot data from an instrument in real time Real time data collection & plotting using query based instrument interactions. Author: Ankit Desai real time plot, instrument, agilent 34401a, 34401a, agilent, real time 144 2
  • 5.0
5.0 | 1 rating
08 May 2008 Screenshot Agilent MSO6014A Mixed Signal Oscilloscope Agilent MSO6014A MATLAB instrument driver Author: The Instrument Control Team instrument drivers, agilent matlab oscill..., agilent 6104 2 0
15 Feb 2008 Tektronix MSO4034 Oscilloscope Tektronix MSO4034 MATLAB Instrument Driver Author: The Instrument Control Team instrument drivers, 4034, mso4034, tektronix, oscilloscope, mso 1 0
  • 1.0
1.0 | 1 rating

Contact us at files@mathworks.com