File Exchange Pick of the Week

February 21st, 2006

Data Acquisition from Word?

Who’d have thought that you could acquire data from test hardware from directly within a Microsoft Word document? Who’d have thought that anybody would even want to?

Ethan Woodruff did, that’s who. Ethan has long been a fan of the under-utilized MATLAB Notebook feature, that allows you to execute MATLAB commands from within a Word document. He has found that this is great for academic settings, giving a very friendly way for professors to introduce students to the power of MATLAB while starting in a familiar environment.

Ethan just posted a quick tutorial he developed for professors that is an introduction to the Notebook interface, with examples specifically relevant to Test and Measurement applications. Educational Lab Report Data Acquisition Example paints an interesting vision of how Notebook can be used to enhance the experience of working with MATLAB. I hope that it gives you good ideas to go off and try on your own. Thanks, Ethan.

A few notes as you work through Ethan’s examples:

  • When you start Notebook, it will start a separate session of MATLAB as an automation server. Make sure that all of the files he provided are in the path (or current directory) of this new MATLAB session.
  • While you can run some of the demo with just MATLAB, you need the Data Acquisition Toolbox and the Instrument Control Toolbox to run the entire file.
  • Don’t expect the example “simpleIC” to work out of the box, since it is configured for Ethan’s hardware setup. I’d suggest you use TMTOOL (in the Instrument Control Toolbox) to auto-generate an equivalent file that works with your hardware.

One Response to “Data Acquisition from Word?”

  1. Matthew Simoneau replied on :

    Welcome to your new blog location. Now with comments! Keep up the great work.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.