Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Software

Open Source Software For Experimental Physics? 250

jmizrahi writes "I've recently started working in experimental physics. Quite a few programs are used in the lab for assorted purposes — Labview, Igor, Inventor, Eagle, to name just a few. They are all proprietary. This seems to be standard practice, which surprised me. Does anybody know of any open source software intended for scientific research? Does anybody work in a lab that makes an effort to use open source software?"
This discussion has been archived. No new comments can be posted.

Open Source Software For Experimental Physics?

Comments Filter:
  • Fermilab... (Score:3, Funny)

    by samriel ( 1456543 ) on Friday January 30, 2009 @02:24PM (#26669173)
    has its own Linux distribution. Let's hope to god that it's stable enough to not crash the LHC.

    https://fermilinux.fnal.gov/
    • Re:Fermilab... (Score:5, Informative)

      by MoellerPlesset2 ( 1419023 ) on Friday January 30, 2009 @02:36PM (#26669363)

      Actually Fermi's Linux is their build of Scientific Linux, which is a distro they have in collaboration with CERN and others.

      It's originally based off Redhat/Fedora IIRC. Or department uses it.

      • It's basically a customization of Red Hat Enterprise Linux.

      • Re: (Score:3, Informative)

        FermiLinux was what they used before switching to Scientific Linux. The original FermiLinux was about 1-2 years out of date because they took about a year to certify the corresponding version of RedHat (pre-Fedora). We never used it on the Desktop Linux cluster I designed and used to manage because of that although now they use Scientific Linux things are a lot better.
    • by tenco ( 773732 )
      The LHC isn't located at Fermilab but at CERN.
    • Fortunately Fermilab does not run the LHC, CERN does.
  • Does anybody know of any open source software intended for scientific research? Does anybody work in a lab that makes an effort to use open source software?

    We discussed [slashdot.org] R [r-project.org] which describes itself as:

    R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues. R can be considered as a different implementation of S. There are some important differences, but much code written for S runs unaltered under R.

    R provides a wide variety of statistical (linear and nonlinear modeling, classical statistical tests, time-series analysis, classification, clustering, ...) and graphical techniques, and is highly extensible. The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity.

    One of R's strengths is the ease with which well-designed publication-quality plots can be produced, including mathematical symbols and formulae where needed. Great care has been taken over the defaults for the minor design choices in graphics, but the user retains full control.

    While it's not geared specifically towards experimental physics, that's probably going to be your most fruitful endeavor.

    Then there's the Matlab knock-off [slashdot.org] of Octave [gnu.org] which describes itself as:

    GNU Octave is a high-level language, primarily intended for numerical computations. It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. It may also be used as a batch-oriented language.

    Octave has extensive tools for solving common numerical linear algebra problems, finding the roots of nonlinear equations, integrating ordinary functions, manipulating polynomials, and integrating ordinary differential and differential-algebraic equations. It is easily extensible and customizable via user-defined functions written in Octave's own language, or using dynamically loaded modules written in C++, C, Fortran, or other languages.

    I'm surprised you're surprised that you only find proprietary software in the highly specialized realm of "experimental physics." I mean, you have to be like a PhD in physics with a good deal of programming knowledge to make something accurate & useful (and there's probably gotta be like 50 failed projects before you get a good successful one).

    You're probably wondering why there's not a project of Firefox or OO.o quality for experimental physics but I'll tell you why: it's too specialized and your user base is ridiculously small. You're not going to find a company that is going to benefit greatly (or at all maybe) by releasing their product into the wild for a community to grow. There's probably not a community for it to grow in.

    You should tell us what specifically you are looking for something to do ... I have no idea what Labview, Igor, Inventor, or Eagle do. Ask yourself why these programs are standards and then maybe add to Octave's wish list or contribute to it even! Unfortunately, this isn't easy--I myself started to implement proper handling of sparse matrices in Octave but gave up as I was trying to form low level requirements ... You probably already know though that this is going to have to be done in C or another very low level, very quick language.

    If you're looking for something specific or outline some high level

    • Re: (Score:2, Interesting)

      Agreed. I've know people who work in experimental physics labs. Some of them code. And the use of open source software is quite a bit more than one might think. Check out this guy's blog [phacker.org]. He regularly hacks together interesting scripts in Python, for instance.

    • by Hatta ( 162192 ) on Friday January 30, 2009 @02:39PM (#26669415) Journal

      I'm surprised you're surprised that you only find proprietary software in the highly specialized realm of "experimental physics." I mean, you have to be like a PhD in physics with a good deal of programming knowledge to make something accurate & useful (and there's probably gotta be like 50 failed projects before you get a good successful one).

      To me, that makes it all the more important that ones work is distributed as widely as possible so that others may build upon it.

      • To me, that makes it all the more important that ones work is distributed as widely as possible so that others may build upon it.

        Hey man, my heart is behind you 100% in this respect. Unfortunately, ideals/maxims/truth are not what create change/progress in today's world. Money/greed/market have replaced them. He was a great leader but Gandhi would not be a CEO today. I don't think it's a bad thing. Sure is unfortunate in some respects. But modern day people operating on the former usually get laughed at/written off. Look at Stallman!

        So I unfortunately have to point out that if you approach your boss (or one of these compa

        • by Hatta ( 162192 )

          So I unfortunately have to point out that if you approach your boss (or one of these companies) with a business proposal yielding a net gain of karma or helping society without a tax write off ... you might be written off from that point on.

          Nope. As long as we get a good paper out of it, giving it away is no problem. In fact, the more people who use the results of our work, the better off we are. Science only works if we can build on each others results. And this is why there is a lot of very high quali

        • "He was a great leader but Gandhi would not be a CEO today."

          But he would still be a great leader. The real question is, do great leaders make great CEOs? If not, then whats wrong with business?

          "But modern day people operating on the former usually get laughed at/written off."

          You mean principles? Did you know that to maintain accreditation MBA programs have had to introduce a fixed percentage of ethics lecturing for *every* class? Looks like scandal and profound dismal failure in that culture are try
    • by goombah99 ( 560566 ) on Friday January 30, 2009 @02:42PM (#26669449)

      The programs he names:
      labview, igor, matlab, are not simply data analysis tools but also have hardware control modules. You can run your data acquisition from Igor, and matlab and of course Lab view.

      things like R or octave or scipy dont' have control and acquisition modules that I know of.

      That said, it seems to me that since scipy is in python that any python DAQ system would fit the bill of a scientific software system.

      So the real question is, what DAQ's are available for python.

      and the answer is going to be, that daq softwares tend to get written to drive specific hardware systems. e.g. labview makes a whole suite of DAQ boards. there's oscilloscopes and so forth.

      As a scientist you don't want to get bogged down building a custom daq. SO the real bottom line is what commercial DAQs are open in design.

      The only system I know that might possibly be in the open is the OASIS daq's developed for flow cytometry. these are mass produced and were developed at the National Labs. But I don't know how it is lic.

      of course, one can always use an oscilloscope or DAQ made to be controlled by GPIB or simmilar common language. In that case it's pretty easy to write your own as long as you can find a suitable open source GPIB output driver.

      • by PitaBred ( 632671 ) <slashdot&pitabred,dyndns,org> on Friday January 30, 2009 @03:26PM (#26670103) Homepage
        For those of us (like me) who were confused when the DAQ acronym started being peppered in the parent post, it means "Data AcQuisition".
      • The real tragedy about this is that there is already a vast library of Physics computational tools, but few new students are using it because it's all written in Fortran. Computing has moved forward (python vs. Fortran), but the libraries don't move forward with it.

        I once heard a story about a CS professor who every year assigned the translation of a Fortran library function into C to his students. I cry thinking about it, since C is rapidly being left behind as well.

        • Fortran isn't dead yet, and it executes faster than Python.

        • f2py (Score:5, Interesting)

          by goombah99 ( 560566 ) on Friday January 30, 2009 @05:46PM (#26671787)

          Python has mad fortran all the mor valuable. the combination of fortran and python is a match made in heaven.

          fortran is a wonderfully good algorithmic language but it is terrible at everything else. python is great at everything else, but slow as a dog.

          one of fortrans strengths when combined with python is oddly enough it's simplicity and lack of sophistication. unlike c++ It compiles so fast that you can feasibly have python write fortran on the fly optimized for the algorithm and compile it, all during run time.

          Fortran is good for non-computer scientist in part because it is quite hard for a typo to be a logic error. (e.g. = instead of ==) as a result it's comparatively easy to debug compared to C.

          but it can't do all the fun memory management tricks, introspection, or objects that advanced languages do.

          But with f2py you can push all of that into python and then just have it call short simple fortran routines for speed.

          • Re:f2py (Score:4, Informative)

            by Bill_the_Engineer ( 772575 ) on Friday January 30, 2009 @07:25PM (#26672981)

            Agree. However, Fortran still evolves and Fortran 2003 (and 2008) is suppose to add some OO capabilities beyond encapsulation in modules.

            I will point out that I've seen more Perl than Python in scientific computing. But most of my scientist coworkers tend to be older..

      • by civilizedINTENSITY ( 45686 ) on Friday January 30, 2009 @06:50PM (#26672531)
        Every lab I've worked in used GPIB controlled instruments. Python "import gpib" makes this trivial.
        If you want an environment like MatLab or LabView, there is Scilab:

        The scilab serial port interface provides direct access to peripheral devices such as modems, printers, and scientific instruments that you connect to your computer's serial port. This interface is established through a serial port object.
        If you want to communicate with PC-compatible data acquisition hardware such as multifunction I/O boards, you need the Data Acquisition Toolbox. If you want to communicate with GPIB- or VISA-compatible instruments, you need the Instrument Control Toolbox. Note that this toolbox also includes additional serial I/O utility functions that facilitate object creation and configuration, instrument communication, and so on.

        There are many such toolboxes: DATA ACQUISITION AND REAL-TIME [scilab.org]

      • He may also have meant "Experimental Physics" versus "Theoretical Physics". I have practitioners of both where I work...
    • by Anonymous Coward on Friday January 30, 2009 @03:11PM (#26669889)

      It also depends on what is meant by "experimental physics". CERN has released one hell of a lot of physics software over time. That which is maintained and comes in a tarball is largely listed on Freshmeat, but there's also plenty of unmaintained but useful code, along with code only released via CVS. The same is true of many US experimental physics labs and NASA.

      Your question simply isn't specific enough for me to identify whether you want OpenAtom, MultiBody Dynamics, Geant3, Geant4, Electron Gamma Shower, MIT Photonic Bands, a statistical language like R, visualizing software like DX4, the Interactive Spectral Interpretation System or GGobi, plotting software like Octave, general acquisition/control software such as COMEDI, data acquisition software over VMS such as MIDAS, or just a driver like the Cogent CIF Driver for Fieldbus. Maybe those aren't your cup of tea and you're more into CFD, in which case OpenFoam and NASA's FUN3D might be more what you want, along perhaps with the CFD General Notation System. Or maybe something in geophysics will help, like Seismic Unix.

      Or maybe you've jury-rigged something Professor Heinz Wolff-style out of spare parts from an HVAC and need the BACNet package. Of course, data manipulation/storage then becomes useful and you'd need something like PETSc, the Vector Signal Imaging Processing Library, the Stanford Exploration Project Library or HDF5. Then, perhaps, the system you're controlling uses a modern high-speed, low-latency network, in which case perhaps DAPL would be of use. You could even use SensorWeb for general-purpose sensor monitoring.

      Yes, this post is saturated with names. Deliberately so. (It could hardly be accidental.) This is not to overwhelm you, as much as it is to emphasize that Open Source science is very well established - so much so that a highly general question cannot be meaningfully answered. Maybe what you want is in the list above, maybe it isn't, but Slashdot would run out of disk space before I ran out of packages out there. Since nobody wants that, it is far more practical to give you the general idea and some pointers on where to look.

    • You're probably wondering why there's not a project of Firefox or OO.o quality for experimental physics but I'll tell you why: it's too specialized and your user base is ridiculously small. You're not going to find a company that is going to benefit greatly (or at all maybe) by releasing their product into the wild for a community to grow.

      That raises another question: Why isn't there, then, a Linux or Apache of experimental physics software? Not ever open source project was born in the belly of a corporate beast which later got the Free Software Religion.

      I would also say that this is exactly the case where having source code available should be a requirement. Even if it stays a commercial program, and even if you have to pay to see the source, this is exactly the kind of specialized niche which is only likely to get more specialized, where c

    • Perl Data Language [perl.org] is my personal favorite for data acquisition and manipulation - it is an extension to Perl that gives you the usual data analysis and plotting goodies, plus a nice mix of access to C code (via XS), access to the huge CPAN trove of modules (via, er, CPAN), GUI-isms (via PerlTK), and serial port / USB port access for instrument control and data acquisition.

      It's based on Perl, which can either be a huge plus or a huge minus depending on whether you like Perl.

      If you want bondage-and-disciplin

    • Too specific? I'd say no where near specific enough. I'm an experimental physicist, an experimental particle physicist and we use almost nothing but Open Source software. Mind you that is mainly because things like MatLab, LabView etc. cannot cope with what we need them to do. Hence most of the time we write our own software using Open Source tools and use the Linux OS both for massive clusters as well as embedded processors using in the detector's electronic frontends.

      There is one tool, root [root.cern.ch], that we us
  • by swaltman ( 1442309 ) on Friday January 30, 2009 @02:30PM (#26669269)
    .. but the specialized libraries aren't as mature. http://www.scilab.org/ [scilab.org]
  • by Anonymous Coward

    There are tons of opensource software tools used in scientific research. One widely used language for building and extending these tools is Python.

    Try a google search for +Python +physics to get started, but also try +Python Labview, +Python Igor, and so on. You will find that lots of people have built Python tools to extend the proprietary ones, or do preprocessing or postprovcessing of data.

  • by hankwang ( 413283 ) * on Friday January 30, 2009 @02:33PM (#26669313) Homepage
    I have some experience with Labview and Igor.

    Labview has the advantage of being easy to learn for non-computer-savvy people that want to control and read special hardware (electrical monitoring equipment, servo motors, etc.). Unfortunately, it rather terrible for complex programs that do not naturally fit in LabVIEW's paradigm of deterministic data flow paths from user input to screen or file output. For example, storing things in persistent variables that are not visible to the end user are a horrible kludge. Reusing VIs (program modules) in other projects require you to endlessly draw wires on your screen rather than simply copy/paste something in an editor. Data processing that involves anything else than applying a standard library function (such as searching arrays for special conditions) that would have been 20 lines of straightforward C code will take you half an hour in LabVIEW, even if you use the "C formula node" that has no debugging facilities whatsoever. You will find yourself spending most of your time moving lines on your screen because there is no free space left on the flow diagram for that extra feature that you need to implement. Stay away from Labview if you can. Even Labview representatives will tell you that more experienced programmers tend to not like Labview so much.

    I haven't used Igor myself, but I have watched over other people's shoulders. You can do quite a bit with it, but the syntax of the language is quite inconsistent; the central paradigm is that variables are either scalar or "wave", which is an array that implicitly represents a row of (x,y) values with fixed steps in x. Wave variables always have global scope, which makes functions that deal with wave variables unpleasant, especially if there is recursion.

    Myself, I have been a happy Gnuplot (FOSS) user since 1996. Gnuplot is quite limited in terms of data analysis and dealing with higher-dimensional datasets, and also has a very inconsistent syntax due to historical reasons, but the latter doesn't bother since I have used it as it evolved. For serious (CPU-intensive) data analysis, I have always written C/C++ programs (with gcc, of course), using Gnuplot only for plotting.

    I have played a bit with R (FOSS) for data analysis and visualisation, which I liked, but which I have never used apart from making a few drawings. Octave can be useful if you need to collaborate with Matlab people.

    For hardware control, I also prefer C/C++. Unfortunately you will likely have to do that under Windows unless you want to write your own lowlevel drivers for Linux (I tried once and gave up when I had to read a 200 page document describing the PCI bridge controller to figure out how to do a DMA transfer).

    (I'm out of the academic world now, working at a high-tech company where I have to work with Microsoft Office most of the time and god I do hate that...)

    • by goombah99 ( 560566 ) on Friday January 30, 2009 @03:00PM (#26669735)

      Your knowledge of Labview and Igor seems limited and out of date. Labview is far more sophisticated now that the primitive description you use. (for example, you can bundle all the wires into a single "object" wire) so there's no "endless" drawing of connections like you describe. It becomes more like drawing UML, except when you are done making the vi, it actually runs.

      Igor is a very nice fast system. the command line syntax is a little archane but not terrible hard. But it has complete gui controls so you can use it before you memorize all the commands. It's not worse than GNU plot or matlab or perl data language or scipy or R in terms of having syntax oddities. it seems like all grpahics packages try to compromise between powerful short commands and completeness. (sort of the perl ethos out of neccessity to make it interactive rather than a structured program)

      but it's not as good a general programming language as say Scipy. But it is more user freindly.

      Labview can be frustrating because sometimes it is faster to write code. But here is one big advantage labview has over everything I have used for data acquisition. It's the only code I'm willing to modify during an experiment. it's not possible to make a syntax error, it is very hard to make big errors when simply moving or split, and you don't have to worry about the thread g wires in an existing program, and most importantly for DAQ since you dont' explicitly program the thread syncronization you cant screw it up with changes. So it's not too scarey to change a working program in the lab to do something a little extra right in the middle of some expensive instrument time.

      Labview is a extremely crappy language for data analysis. It's designed for live instruments and real time work not off line anaylis.

      right now I'm a big fan of scipy but it too has it's frustrations. it's wildley incomplete, undocumented, and they just changed all the 3d graphics to a much better but way too complicated system and the old programs can't be maintained with the new releases.

      • Your knowledge of Labview and Igor seems limited and out of date. Labview is far more sophisticated now that the primitive description you use.

        I don't know. I use LabVIEW pretty routinely and the GP's experiences reflect my own. There's no question that LabVIEW can make setting up a new data acquisition system very fast. The tie-in with DAQ cards and many instrument control systems is fantastic. But the actual programming paradigm is terrible (at least for anyone acquainted with the power and flexibility of traditional text-code programming). Even with the various enhancements they've put (like bundling wires and all that), it takes a long time to

      • Re: (Score:3, Informative)

        by novakyu ( 636495 )

        for example, you can bundle all the wires into a single "object" wire

        Oh, yes you can bundle them, but that just means you have fewer visible wires; the underlying scheme hasn't changed at all.

        For example, suppose you write a sub-VI and later on, you want to modify it to take more inputs. In real programming languages like Python, that would be as simple as dealing with keyword argument lists. You don't have to mess with the function definition; you just pass the information to the function and write something within the function to do something with that input (i.e. you don'

        • Re: (Score:3, Informative)

          by goombah99 ( 560566 )

          Try doing that in LabVIEW. When the smallest property of those bundles change (i.e. more number of wires in the bundle, or a different data type for one wire), you have to change a number of things to make the things connecting to that bundle work again.

          Sounds like someone has not learned you can index bundles by name, not just by position in the struct. You are treating them like an array but you can also treat them like hash's.

          But agreed it's not as simple in some cases as writing code.

          On the other hand if you were writing the syncronization of multiple threads by hand your head can explode but in labview you don't even think about it most of the time.

          it's a terrible generla purpose programming language. it's a great data aquiristion language and RAD g

    • Thanks, nicely said.

      I fight all the time with Labview weenies. It does have a place but for complex jobs interfacing with other programs or systems it becomes cumbersome. One old timer senior scientist where I work refers to Labview as programming for kindergartners.
         

    • by kabocox ( 199019 )

      Labview has the advantage of being easy to learn for non-computer-savvy people that want to control and read special hardware (electrical monitoring equipment, servo motors, etc.). Unfortunately, it rather terrible for complex programs that do not naturally fit in LabVIEW's paradigm of deterministic data flow paths from user input to screen or file output. For example, storing things in persistent variables that are not visible to the end user are a horrible kludge. Reusing VIs (program modules) in other pr

    • by t35t0r ( 751958 )
      i built a fairly complex gui in labview but had to use the matlab code plugin to do the majority of the number crunching
    • Coming from a more traditional programming background (I was a computational physicist before I was an experimental physicist), I had many of the same problems you have with Labview. There are very few people in academia (and no classes) which I feel properly use labview, but I was lucky to have someone recently back from industry to show me examples of what Labview should do. Everyone is caught up in hooking up hardware and learning the basic program design that most academics learn horrible, horrible pr

  • Qtiplot & root (Score:5, Informative)

    by denominateur ( 194939 ) on Friday January 30, 2009 @02:34PM (#26669331) Homepage

    For simple tasks, even with big data sets, I've had good results with qtiplot http://soft.proindependent.com/qtiplot.html [proindependent.com]. For really complex stuff, there's root from CERN http://root.cern.ch/ [root.cern.ch]

  • Geist3D (Score:2, Interesting)

    by dedazo ( 737510 )

    I know of this one [geist3d.org], if only because it's written in Python and I ran into it looking for some unrelated 3D tools. It does do physics simulations, AFAIK.

  • If you've ever wanted something FORTRAN-ish, but with matrices, see GDL [sourceforge.net].

    They're trying to make an open source interpreter that can take IDL scripts directly. Unfortunately, I don't know if it can open up IDL save files, due to various threats from lawyers.

    There's also PDL [perl.org], which deals with large data cubes in Perl.

    • Not to attack the great work that the GDL folks have been doing, but friends don't let friends learn IDL. It's too evil and bletcherous, and stunts the mind away from producing beautiful, generalizable code toward a twisty maze of special cases, all slightly different.

  • EPICS (Score:5, Informative)

    by ilbrec ( 170056 ) on Friday January 30, 2009 @02:41PM (#26669433)
    Many larger places in the world use EPICS (Experimental Physics and Industrial Control System). An experiment I am a (small) part of use EPICS for control.
    It is an open source control systems frequently used for particle accelerator control and observatory telescope control. We use it slightly differently, but for what we need to do, it works very well. It is maintained primary by Advanced Photon Source at Argonne National Laboratory. You can read more at the following URL:
    http://www.aps.anl.gov/epics/ [anl.gov]
    In case you are wondering, no, they don't use EPICS for LHC. They use a commercial SCADA program called PVSS (for the most part anyway).
  • EPICS and RTEMS (Score:5, Informative)

    by joelsherrill ( 132624 ) on Friday January 30, 2009 @02:42PM (#26669455) Homepage

    Since you said experimental physics... :)

    The Experimental Physics and Industrial Control System (EPICS [anl.gov]) is a set of Open Source software tools, libraries and applications developed collaboratively and used worldwide to create distributed soft real-time control systems for scientific instruments such as a particle accelerators, telescopes and other large scientific experiments.

    EPICS is often used with the free real-time operating system RTEMS [rtems.org] to build custom control systems.

    Users of EPICS+RTEMS include Stanford Linear Accelerator Center (SLAC), Argonne National Labs, Brookhaven National Labs, and Canadian Light Source.

  • The Experimental Physics and Industrial Control System is open source. Many accelerators (APS, SLAC, SNS, LANCSE) and telescopes (KECK, SDSS) are using this system.
  • RHIC and LHC (Score:3, Informative)

    by Rubedo ( 868298 ) on Friday January 30, 2009 @02:58PM (#26669699)
    Here at the Relativistic Heavy Ion Collider at Brookhaven Lab, for large-scale data analysis at plotting we use the open-source C++ framework ROOT (root.cern.ch). ROOT is also used at the LHC. For hardware related tasks the needs of experimental physicists are very specific to the task at hand, and we must hand-write most of the code we need. Only for very small-scale projects can software like LabView (yuck) be useful, and there just isn't any open-source equivalent of Labview that I'm aware of.
  • Labview (Score:4, Insightful)

    by Brit_in_the_USA ( 936704 ) on Friday January 30, 2009 @03:00PM (#26669717)
    I find labview very very good for experimental work. There are educational licenses and site licenses, and with the compiler you can distribute your programs for free.

    At the end of the day I could always justify the expense of the software when the equipment it is controlling is orders of magnitude more expensive and some of the automation I was able to roll out saved weeks if not months of time.

    The is also a great community of labview users who freely share (source) code they have developed - many under specific open source licenses.

    At the end of the day I wouldn't get to hung up about open source when you are dealing with equipment and budgets where the software is 1% of the cost - just use the best tool to meet the requirement or risk project overrun and funding issues.
    • Re:Labview (Score:4, Informative)

      by j_cavera ( 758777 ) on Friday January 30, 2009 @03:21PM (#26670043)

      I've been a LabVIEW developer for 20 years now (since v2 came out in '89) and a C-coder for about almost as long and I can say this with about 99% certainty: LabVIEW is not for everything, but what it is good at, there is no good replacement (open source or otherwise). LabVIEW is second to none for data acquisition, control, (some) analysis, (some) simulation and (some) SCADA. On the flip side, unless you've a lot of experience with LabVIEW and/or a lot of time to kill, don't try anything with recursion, distributed computing or high-end visualization. I guess I'm not really sure what the problem is here: For less than $2k, you can pick up a copy of LabVIEW and save your boss hundreds of hours of your time. For about $5k, you can get the whole dev package and compile things to .exe's for deployment all over the company.

      Just my $0.02...

    • Re:Labview (Score:4, Insightful)

      by JustinOpinion ( 1246824 ) on Friday January 30, 2009 @03:26PM (#26670107)

      At the end of the day I could always justify the expense of the software when the equipment it is controlling is orders of magnitude more expensive and some of the automation I was able to roll out saved weeks if not months of time.

      Depends very much on the application. I once had a LabVIEW system that was getting camera input. I needed to do some simple image processing (and I mean really simple), but the only way I could do that in LabVIEW was to buy a gigantic add-on package that was very expensive. So in the end I coded it myself, but what should have been a 5-minute coding exercise (just modify one of the LabVIEW VIs to export some data) ended up being quite a bit more complicated because LabVIEW is closed-source (so I couldn't just go into a VI and make the simple change I needed).

      This is just one example where LabVIEW's closed-source nature slowed me down. On the other hand, the community is quite good and there are many useful VIs being freely offered on the forums.

      At the end of the day I wouldn't get to hung up about open source when you are dealing with equipment and budgets where the software is 1% of the cost - just use the best tool to meet the requirement or risk project overrun and funding issues.

      Open-source isn't just about money. The ability to modify the code can frequently be very helpful, especially when you're trying to do something non-traditional (which seems like all the time in experimental physics!). In science there is also the issue of "knowing what's going on" inside the software if you're ever going to trust the data that comes out of it. And we shouldn't ignore the educational benefit (and all-around fun) of being able to get into code and modify it. Science is about learning (in particular for students; but tinkering is also crucial for established scientists!).

      • Re: (Score:2, Informative)

        by diddleydoo ( 1465399 )
        You know that you can bind external DLLs relatively easily in LabVIEW don't you?

        There's nothing stopping you from using a DLL from an open-source program for the image processing.

        Shane.

      • Re: (Score:3, Informative)

        when you're trying to do something non-traditional (which should be all the time in experimental physics!).

        There fixed it for you.

        My experience with LabView (used it once for a little undergrad acoustics experiment) was that it didn't do things quite the way I expected from its presentation. The whole block diagram data flow model thing made me think that everything was going to run in parallel. In reality, it did not, so real-time processing just wasn't quite the same thing as building a circuit that did what it looked like LabView was going to do. Of course, this isn't a very strong complaint, and somebod

    • by Compuser ( 14899 )

      Labview is horrible for memory management and very inefficient. So if you want something that pushes your hardware to the max (e.g. controls register allocation or defines custom communication protocol to minimize waste bits being sent over) then Labview is just not usable.
      The other problem with Labview is that they every so often release new versions which happen to be incompatible with previous ones. So if you developed stuff for, say, Labview 5, then by now you have probably recoded your stuff several ti

  • by Fishbulb ( 32296 )

    Try NCL - NCAR-Graphics Command Language.

    http://www.ncl.ucar.edu/ [ucar.edu]

  • astronomy (Score:2, Informative)

    A lot of astronomers use IDL but NASA projects in general must put their software in the public domain, so it is not surprising to find packages like the Astronomical Image Processing System (AIPS), the C Flexible Image Transport System (FITS) I/O (CFITSIO) libraries and many other packages and interfaces in SciPy.
  • This [ornl.gov] is a big suite of software used for nuclear physics experiments (gamma-ray spectroscopy). It was open-source before the term "open-source" was invented. I believe all the acquisition software for big gamma-ray detector arrays is also open-source stuff written mostly at Berkeley.
  • from ubuntu 8.04, im sure debain has more than this

    apt-cache search physics | grep -v game
    cernlib - CERNLIB data analysis suite - general use metapackage
    cernlib-base - CERNLIB data analysis suite - common files
    cernlib-base-dev - CERNLIB data analysis suite - dependencies checking script
    cernlib-core - CERNLIB data analysis suite - main libraries and programs
    cernlib-core-dev - CERNLIB data analysis suite - core development files
    cernlib-extras - CERNLIB data analysis suite - extra programs
    cernlib-montecarlo -

    • by habig ( 12787 )

      The vast majority of this list are packages in the old, fortran-based CERNLIB [web.cern.ch]. Still around bug in legacy code mode. The modern replacement is Root [root.cern.ch].

      Aimed squarely at high energy experimentalists, and used for data analysis and simulation. In that field, DAQ code is nearly universally highly custom since the electronics it is interfacing with is also custom. Usually built with FOSS tools, though, such as gcc.

  • Transitioned from matlab to numpy/scipy/pylab/PIL/VTK and I'm much happier, much cleaner and easier to use. I handle interaction w/ pygame. Presently (like at this moment) working on two major network controlled interferometer data collection and analysis systems in python.

  • Although not targeted to research and more towards learning, I though it would be good to give props to the people at http://www.andestutor.org/

    Especially since my brother is one of the main contributors on the project ;)

  • Labview, Igor, Inventor, Eagle

    For some applications, like Labview and igor, there are alternatives if you want to code. These applications, and those like it, are tightly intergrated packages that allowed automated workflow in the lab with minimal understading of the processes actually being used. For control this is not neccearily a big deal. For data aq and analysis, I think the researcher should know what is actually happening to convert raw data(for instance a voltage) to the pretty picture.

    It is

  • It's a tad less polished and maybe a bit more buggy than Eagle, but FreePCB ( here [freepcb.com] ) is FOSS Windows software. It works sufficiently well for me to be very productive. I've used it to make all of the circuitry for the Stanford Solar Car Project ( here [stanford.edu] ).

    It's much easier to use than Eagle and does make you go through as much bigma to get a board made.

  • In addition to Kicad (already mentioned) there's also gEDA and PCB (http://www.geda.seul.org/), which run on Linux, Unix, MacOSX, and Windows. There are even some geda-designed boards in space :-)

  • by Falstius ( 963333 ) on Friday January 30, 2009 @03:35PM (#26670243)

    I wrote the DAQ I use for my research using the GnuRadio framework (which is written in python and c++). It is relatively easy to write custom C++ modules for high speed computation. There is also a graphical programming utility called GRC for simple LabView style "programming". Unfortunately, the code still isn't very mature, but it is under very active development. It is difficult to argue with the simplicity of labview for a quick interface to NI hardware, but once you leave the academic world where licenses and hardware cost real money, the appeal is quickly lost.

    When I get time, I'll play with comedi and the comedi module for gnuradio for working with NI DAQ cards.

  • GRACE (Score:4, Informative)

    by digitalderbs ( 718388 ) on Friday January 30, 2009 @04:00PM (#26670537)
    I use all of the tools listed by other commentators. But one of the most useful tools not yet listed is GRACE (or xmgrace). It produces publication quality figures, includes many useful features like linear and non-linear regression, statistical analysis, convolutions, interpolations, Fourier transforms and it supports complicated multi-graph overlays well.
  • by BishopBerkeley ( 734647 ) on Friday January 30, 2009 @04:03PM (#26670583) Journal
    In the interest of full disclosure, I've been an IGOR user for about a decade, and I have worked for the company as a consultant.

    IGOR is a fantastic tool. Will it do everything? Just about. Its programmability makes it nearly infinitely flexible.

    But, for me, the two features that make me shudder at the thought of dispensing with IGOR are the support and OS interoperability.

    IGOR Pro is perhaps the best supported and best documented piece of software on the planet. (Yes, I have contributed a minor amount to said documentation.) The company stands behind the program completely, and the user community usually offers solutions to anyone's problem within minutes. And, the documentation is simply phenomenal: the comprehensive and highly linked pdf version of the manual ships with the software is also installed as a searchable, highly organized database that can be navigated many ways.

    Then, of course, is the bonus that everyone gets with their purchase of IGOR: you get Mac and Windows versions as part of your purchase. (I've been told the Windows version runs well on Linux under Crossover.)

    And, oh yeah, the cost is a fraction of Matlab's or LabView's.
  • I have used a lot of different stuff in my time as a physicist. Personally, the program that I prefer is not free. It is Igor Pro, which the parent post mentioned. While it is not free, a "student" license is only 90 bucks from Wavemetrics, its vendor. The student license gives you a full working copy of Igor for eternity. You are allowed to install it at work, at home, and on your laptop. It is a "makes sense" license, unlike other programs. If I had more time I would go into the details of why I li
  • by b4upoo ( 166390 ) on Friday January 30, 2009 @04:34PM (#26670963)

    Scientific Linux OS is written by the scientists and engineers at CERN!
          Its base is from Red Hat.
          It is a jewel of an OS and is exactly what you need.
          Distrowatch.com probably has it listed and a path to downloading it. It is free.
          Good luck and do something good that helps people!

  • What are you asking? (Score:5, Informative)

    by DoctorNathaniel ( 459436 ) <nathaniel...tagg@@@gmail...com> on Friday January 30, 2009 @04:42PM (#26671053) Homepage

    Professional experimental physicist here.

    There are two main types of software physicists have to deal with: hardware interface, and data analysis.

    Hardware interface is often the the tougher one: slow controls, data aquistion, environmental monitoring - these all need to interface to hardware through various drivers. LabView is an obvious candidate for table-top experiments, since it is possible to set up working control and readout systems more or less out of the box. There is really no good open-source solution for this for the same reason that open-source drivers took a long time coming to Linux: the user base is just too small to write the code.

    My own experience is that it's far better to write your own code, using whatever drivers you can scrounge - it's far more efficient at getting what YOU want done as quickly as possible once it's running. However, the time to write and debug this code is extensive. It's particularly bad since often students will write this code and then disappear, leaving you with badly-documented half-working code.

    However, this is basically true of many LabView installations as well.

    On the data analysis side, there are many good packages that serve as starting points. ROOT (http://root.cern.ch) is an excellent package for doing event-based data analysis in nuclear and high-energy physics, including efficient ntuple storage and histogramming. It's really a toolkit, not a program, so it allows you to do your own analysis by writing your own code.

    I'm not familiar with other big packages, but I know that I frequently use raw C, C++, gnuplot, perl, and python to do little jobs.

    There are other tasks as well. Blogging software can be good for logbooks. Wikis are good for in-house documentation.

    It really depends on specifics. But basically it depends on where your project falls on the quick-and-dirty vs long-life vs high-performance judgements.

  • Sage (Score:5, Informative)

    by hoytak ( 1148181 ) on Friday January 30, 2009 @04:47PM (#26671119) Homepage
    http://www.sagemath.org/ [sagemath.org]. Sage rocks. It's python based, brings together many of the useful libraries already mentioned (numpy, scipy, matplotlib, etc.), and has a very active mailing list. Can't recommend it enough.
  • Perl Data Language (Score:3, Informative)

    by Dr. Zowie ( 109983 ) <slashdotNO@SPAMdeforest.org> on Friday January 30, 2009 @05:19PM (#26671477)

    Perl Data Language [perl.org] is quite nice -- it has all the blended hackish glue-code goodness of Perl (which could be a plus or a minus depending on your personal style). CPAN (the big Perl repository) has a lot of free stuff for access to serial, parallel, and USB ports so you can control your equipment and acquire data. PerlXS (built into Perl) gives you nice access to C libraries, and PP (a meta-language that comes with PDL) helps you sidestep a lot of cruft if you have to use a C module to import large volumes of data.

    PDL has built-in commands for plotting 2-D stuff via PGPLOT or PLPLOT, and 3-D stuff via GL. I use it for all my publications.

    Some prefer NumPy or SciPy, the Python equivalents of PDL, but (IMAO) Python isn't as expressive as Perl, and the external libraries, while extensive, cannot compete with CPAN for completeness or hugeness.

  • my researcher friends routinely use Octave, perl, I know of R being used... Not sure about data recording programs though, perhaps that is more specialised (or I just never needed them in my field). LaTeX, as auxiliary software, is pretty standard for writing up papers.

    Of course, since it's Turing-complete you could just use emacs for everything... or vi... :-)

  • Whatever software you need to use, just make sure it will supported for a long time. Sometimes you use software that uses specific hardware, and thus specific drivers. Some other times, APIs change, so programs do not tend to behave in case of an upgrade. Although this problem is usually not that important for major applications (LabView, Matlab), it is a huge issue in case you go for an in house solution, or you used highly customized software. I can tell you this by experience since I had to rewrite a maj
  • I use both open and proprietary software in neuroscience, including more generalized signal analysis and statistics including some far left field non-linear non-integer stuff. Proprietary is far more likely to have the advantage of having a history of validation. If you can address validity yourself, use OSS. If you haven't approached calculation validity yet, look into it before you decide whether to attempt it. Statisticians and experimental mathematicians (yes, there are such beasts) relish arguing about

  • Things i have tried. (Score:3, Informative)

    by drolli ( 522659 ) on Friday January 30, 2009 @08:22PM (#26673523) Journal

    My different generations of meas and evaluation software stacks

    Measurement software:

    0) C
    1) C/perl/java evaluation
    2) C/java/jython evaluation:matlab
    3) matlab/labview (connected by http+xml+xslt)
    4) matlab with DAQ+instrument control toolbox
    5) C/tcl evaluation:matlab; real time plotting: gnuplot

    C was only used to bind non-preexisting daq functions. I dont write GUIs in C. For GUIs i prefer java, and the best free combinations i used were 2) and 5) would i be free to choose i would use 2), however in the environment i am currently working some co-workers write in tcl, so i found in more productive to learn tcl. (Not because of my productivity, but learn fast. However, one more conflict in the group could have killed the group. This selection was purely driven by social purpose - i gave to say: sucessfully.).

    Otherwise the general idea would be that to use java and implement the GUI in java and the scripting languange in one of the many languages existing on the top of java. If you use a standalon scriptiong language for performance reasosn (i tested that once, but i could affot to go without it): python is a great choice for semi-numerical (and numerical) programs.

    For evaluation i used and

    1) perl
    2) python
    3) octave
    4) matlab

    1-3) each plotting with gnuplot. I know there are other solutions around, but when i tested them, gnuplot was always the rock-stable, feature-rich workhorse (think: LaTeX friendly output: epslatex - great in combination wit a makefile for you figures in a thesis!), with the only disadvantage of some things beeing historically grown.

    4) is great, but do yourself the favor and alway try to keep the core functionality working in octave. I mean matlab is a great product, but you may prefer not to tie yourself to a package which costs than much money (think about what will happen after you leave your current univerity? do you still want to access you old data?). My current strategy is to keep the functions loading experimental data/evaluating it working in octave, and gui functions in matlab (only exception: i use the statistical toolbox moderatly. I could rewrite the function i use, but it would take a week. I am working in a reasearch company, and here it is more reasonable to buy the toolbox.

    Oh. and by the way from time to time i am misfortunate enough to work in labview. it is a PITA. My personal experience say: rewriting the program in another language usually saved time.

  • The answer you accept depends on whether you want something that does what you want without having to think, or if it allows you to ask the question. CERN has their own version of Scientific Linux, but us proles can't download it. If anybody at CERN [linuxsoft.cern.ch] would allow me a copy, I would gladly mirror it for the rest of us.

    (You can only get a floppy boot image, for a network install AFAICS, and to install on the network, you need a login)
  • by Bentronathon ( 815200 ) on Friday January 30, 2009 @09:29PM (#26673941)
    Does anyone remember that category where you could submit questions to /. and then get responses from the community? I wonder what happened to that...
  • Python(x,y) (Score:3, Informative)

    by artor3 ( 1344997 ) on Friday January 30, 2009 @10:13PM (#26674253)

    I'm sure this will be lost among the sea of comments, but I'll throw it out there anyway. As a former LabVIEW/Matlab user, I have had tremendous success with the Python(x,y) [pythonxy.com] package.

    All the development is done in Eclipse. You have a WYSIWYG editor built into Eclipse, with which to design Qt GUIs. The signal/slot methodology in Qt is similar to LabVIEW, but easier to work with once you've learned it, since you can make connections in text or the drag and drop interface, whichever is easier.

    You can use the generic Qt widgets to display Matplotlib graphs, which use similar syntax to Matlab.

    You have numpy/scipy, which are fantastic for processing data.

    You have pyvisa/serial/parallel, which will control any instrument you have, or even ones you make/program yourself, such as FPGAs or MCUs.

    You can use Python's pickling to store your data in rapidly-accessible modes (I've opened hundred million datapoint sets in seconds), or CSV/Excelerator to store smaller chunks of data in more human-readable modes. Python also provides a fairly simple database system if you need one, and you can always use Zope or Django if you want a web interface (though that will be harder to learn).

    On top of all that, there are many more field-specific modules available in Python than in LabVIEW.

    I've been using it for months now (I should emphasize that I had never even heard of Qt or numpy or any of those things before that), and I cannot wait to drop LabVIEW. If you think Perl is bad, try to debug a 5 year old LabVIEW program, developed by ten different people, each of whom was using LabVIEW because they don't know how to program properly. One of our old VIs, which only sends a string of commands over a serial port and then reads a DMM, weighed in at over 350 MB. No one can even figure out how it works any more. The same system, done with Python(x,y), came out to under 200 lines of code.

Suggest you just sit there and wait till life gets easier.

Working...