Rank: 249 based on 375 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.


 

Watch this Author's files

 

Files Posted by Ankit Desai 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 52 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 138 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 185 8
  • 4.0
4.0 | 6 ratings
Comments and Ratings by Ankit Desai 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 Desai's Files View all
Updated File Comment by Comments Rating
22 Oct 2014 Collect and plot data from an instrument in real time Real time data collection & plotting using query based instrument interactions. Author: Ankit Desai Henri A

Can anyone kindly take a look at look my following errors. What should I do to get this to work please?

>> real_time_data_plot
Index exceeds matrix dimensions.

Error in real_time_data_plot (line 34)
serialObject = serial(serialPort);

29 Sep 2014 Collect and plot data from an instrument in real time Real time data collection & plotting using query based instrument interactions. Author: Ankit Desai aa Socola

Thanks a lot.
I test your code, and it's okay.
with condition i change:
voltage(count) = fscanf(serialObject,'%f',1); %#ok<SAGROW>

I don't now why? but result is good.

Thank a again.

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 John Booker

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

Contact us