We use Labview and Perl for instrument control. For most data reduction we use Matlab and a little bit of Perl. We also use Octave, which is an open source software very similar to Matlab. The plotting routines in Octave are not as well integrated, but it is still an excellent substitute for Matlab (which costs a mint).
This listing is not comprehensive. Over time, we will add more to the list. Our goal is to have all of our '.m' files be compatible with both Matlab and Octave. Here is a sampling of software written for MegaSIMS. Let us know if they are at all useful to you.
We distribute these files (mostly under the GPL version 2) in the hope that they will be of use, but we make no guarantees that they will work right for you. We are first and foremost an ion-microprobe lab, so we may not be able to respond to any requests.
Perl Programs
- cdfread.pl [POD]: A simple port of cdfread to octave. Running "cdfread.pl -octave" will generate the function ocdfread which calls this script from within Octave. (version: 04/04/07 13:27)
- ocdfread.m: Script generated by cdfread.pl.
- reader.plx [POD]: A fairly complex "advanced" program that calls other programs, and logs their output to MegaSIMS CDF. (version: 10/24/08 11:38)
- MegaSIMS Perl Formatting Programs
- sample.plx [POD]: A sample PERL file, showing some of the best practices suggested for programming in the MegaSIMS lab. (version: 09/07/07 11:22)
- publish.plx [POD]: A glorified shell script for making perl programs nice. (version: 08/17/06 20:23)
- fix_head_with_pod.plx [POD]: Makes it so the POD and head comments match. (version: 10/24/08 12:54)
- pod2latex.plx [POD]: Converts Perl's POD to either LaTeX or PDF. (version: 08/18/06 16:51)
- gpib-e100.plx [POD]: Reads and interacts with devices on the GPIB-ENET/100. (version: 10/24/08 12:45)
- omega_tc_v2.plx [POD]: Reads and interacts with Omega Thermocouple. (version: 06/22/07 15:46)
Matlab/Octave Programs
- readcdf.m: Works with both Octave and Matlab! Rejiggers the output of o?cdfread.m so that all the data sits in a single structure. (version: 04/04/07 16:18)
PHP Website Programs
All these .php files are saved as gziped tar archives.
- publications.tar.gz: This set of files creates an editable and searchable list of publications and student theses. Everything is stored in a subset of the BibTeX file format. These are used on our site and on SIMS. Some configuration required. (version: 12/19/08 20:21)
- pod2_html.php.tar.gz [man]: This PHP script, used above like this and on SIMS, scans through a file and takes the POD information and converts it into a HTML or XHTML file. Some configuration required. (version: 12/19/08 17:51)
- latex2_html.php.tar.gz [man (SIMS)]: This PHP script, used internally here and on SIMS like this, takes a latex .tex file and attempts to render it as an HTML or XHTML file. Some configuration required. (version: 12/19/08 19:48)
- collaboration_site.tar.gz: This set of files creates a website that allows users (determined by the .htpasswd file - used in Apache) to determine who can upload files, and tag the files that are uploaded. In order to have full functionality, it expects a copy of phpicalendar to be added to the calendar directory. Used internally on our site, and some configuration is required. (version: 12/19/08 19:32)
Other useful documents:
- MegaSIMS CDF: A description of how we use NASA's Common Data Format to store MegaSIMS data. (version: 04/04/07 13:35)
- BP0871-17a_01: A sample CDF data file.