Mostrando las entradas con la etiqueta Science. Mostrar todas las entradas
Mostrando las entradas con la etiqueta Science. Mostrar todas las entradas

jueves, 2 de junio de 2016

Installation of MathGL 2.3.5 In Debian

Installation of MathGL 2.3.5 In Debian

Motivation

Despite that MathGL is included in the official Debian repositories, It is not the latest version, and the installed, library includes a lot of wrappers and features I'm unlikely to use.

What is MathGL?

As the official website states, MathGL is,

  • a library for making high-quality scientific graphics under Linux and Windows.
  • a library for the fast data plotting and data processing of large data arrays.
  • a library for working in window and console modes and for easy embedding into other programs.
  • a library with large and growing set of graphics.

Here you can see a gallery with MathGL graphics

I've used this library several times from long time ago (like in this project of Hodgking-Huxley action potential) and I think is a very nice library to generate graphics from your final binaries. For example, I've used it when my code is up and running and I want it to generate graphic output directly (png,pdf,...)


Installation

First of all, download the latest source from here, and then proceed to get the required prerequisistes.

Prerequisites

The list of prerequisites depends a lot on what you'd like to do with MathGL. I wanted to be able to work with Qt5 widgets, pdf output,gsl support (GNU Scientifical library),OpenMP, MPI, HDF5, and wxWidget support. I've installed the required libraries as root by,


To see the complete list of supported features you can read the CMakeLists.txt and look for every line containing option(enable-XYZ) so you add -D enable-XYZ when you call cmake.

Building MathGL

Once you've installed the prerequisites, you can build MathGL at the root directory of the source or simply a build directory. I like more the build approach since keeps the source directory clean.


Any errors during the cmake phase can be related to the lack of any prerequisite so keep an eye on the errors, they often say what needs to get installed or fixed.

If everything goes fine, you finally install MathGL as root by,

make install

And that's it.

Resources


martes, 31 de marzo de 2015

A JDM Mod Serial PIC programmer with VCC control

Since I'm kind an electronics hobbyst, I've been wanting to learn how to program Microchip PIC microcontrollers for a long time. I got some experience by using the MPLAB X IDE by Microchip with other tools that simulate PICs, and since I have an intermediate C language programming level, the learning curve was kinda smooth but sloppy. But, programming real-life PICs is a little more complicated than simulating them and it is better to have a programmer for a complete programming experience. That's why I've just started a project on building my very own JDM serial PIC programmer. To that end I'm using the hackaday platform to record all the relevant information of the process. The link to the whole project is


I hope it's useful to someone else.

viernes, 26 de abril de 2013

At the beginning: we were boring physicists - A Science Instrumentation Project

Recently, a Friend (a colleage) and Me are engaging a science intrumentation project as part of our formation as Physicist.


Basically, will make an experimental approach to the building of a Bioreactor system for the culture of microalgae. Our main goal is design a method to measure the microalgae concentration inside the bioreactor without opening it, which avoids the risk of contamine the microalgae culture. We detected this as an unsolved problem (at least locally) and that was highly motivating for us, so bad that we made a blog about it: 
http://bioarduino.blogspot.com/


The interesting part is, that we will be using a Arduino Uno32 chipkit to automate stuff, (measurements basically) and a RaspberryPi to monitor and control all the processes, of course this involves circuit designing and building, also lots of programming, so we will be releasing code and maybe designs (licensed under GPL V3) in order to contribute to the community of free software and hardware.