Rank: 231 based on 354 downloads (last 30 days) and 3 files submitted
photo

Ankit Desai

E-mail
Lat/Long
42.300102, -71.35042

Personal Profile:

Senior Software Quality Engineer,
MATLAB Hardware Team.

Professional Interests:
Microcontrollers (Arduino, Beaglebone, Raspi etc.) 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
05 Jun 2014 Screenshot Serial Monitor (Debugger) MATLAB substitute for Arduino's Serial Monitor (Debugger). Author: Ankit Desai serial, arduino, zumo, processing 49 0
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 tcpip, real time, real time plot, publish, report, instrument 121 14
  • 5.0
5.0 | 5 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 agilent, 34401a, agilent 34401a, serial, rs232, real time 184 6
  • 4.0
4.0 | 6 ratings
Comments and Ratings by Ankit View all
Updated File Comments Rating
10 Feb 2012 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

Hi Abhishek,

You might have to replace the "~" with a variable name. The "~" is used to denote a variable that is never used in the code.

The callback function always takes in parent object and event as the first two arguments. However, since I am not using the event variable in the callback function, I replaced it with "~". Once you put a variable name in it's place, it should work fine.

Hope this helps,
-Ankit

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
16 May 2014 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 Booker, John

14 Apr 2014 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 Fan

02 Apr 2014 Collect and plot data from an instrument in real time Real time data collection & plotting using query based instrument interactions. Author: Ankit Desai Stuart

Great code, nice and neat. Just wondering if you know whether you can run this concurrently with other processes, say, in a GUI? I want to have this logging every few seconds and in between, pass control back to allow other processes to run.
Great work

10 Feb 2014 Collect and plot data from an instrument in real time Real time data collection & plotting using query based instrument interactions. Author: Ankit Desai Nguyen, An

02 Jan 2014 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 Nguyen, Chau

Contact us