comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.sandberg@sandat.dyndns.org>
Subject: Re: from LabView to Ada? HowTo?
Date: Sat, 12 Jan 2013 21:28:34 +0100
Date: 2013-01-12T21:28:34+01:00	[thread overview]
Message-ID: <20130112212834.7fdce61f@lufsen.sandat.dyndns.org> (raw)
In-Reply-To: kcqcen$5ce$1@speranza.aioe.org

Well given a few prerequisites:
* The card manufacturer:
  - has provided a driver
  - has provided a header file to be used to interface their product in
    the language C and are providing some interface in an  .so-
    or .dll- file.

* You are using a fairly modern GCC/GNAT.

I would use the "-fdump-ada-spec" option to gcc to get specs
representing the manufacturers API.
And with those specs you will be able to do what ever you want.
You might have a look on https://github.com/persan/zeromq-Ada to get
some ideas.
/P

On Sat, 12 Jan 2013 00:57:59 +0000 (UTC)
Mutek <mutek@inventati.org> wrote:

> Hello,
> 
> I wuold like to investigate if is possible to migrate or just restart 
> over from an actual LabView Windows environment to a multiplatform
> Ada/ Gnu/Linux based solution.
> 
> I use LabView to do very simple datalogging with a lot transducers: 
> analog hight pressure transducers, thermocouple/temperature
> transducers, LVDT analog and PWM/digital datalogging and so on.
> I'm just using some very expensive NI boards but I would like to stay 
> away from them.
> 
> Is there a way to use Analog/Digital IO boards with GNU/Linux and
> program direct with Ada?
> Do you know if it's possible and how? (pointing me to some working 
> reference)
> 
> I mean something very closed to Arduino hardware but more
> professional in terms of measurement precision.
> Arduino needs to load the firmware via Processing so it's a bit far
> from what I mean (using Ada to metacompile Processing and then inject
> into the board)...I mean something closed to what you can do in C
> when vendors give you the drivers and the .h to develop direct your
> solution... So how can I do this in Ada?
> 
> Thank you in advance for your feedback,
> 
> m





  parent reply	other threads:[~2013-01-12 20:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-12  0:57 from LabView to Ada? HowTo? Mutek
2013-01-12  2:00 ` Patrick
2013-01-12  9:33 ` Dmitry A. Kazakov
2013-01-12 11:07 ` Brian Drummond
2013-01-12 20:28 ` Per Sandberg [this message]
2013-01-14  9:15 ` Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox