I need a suggestion from LCNC developers point of view.
I like to read ADC values, transform that values into Temperature values and
make that values available on a hal pin.
ADC values I get from a user-space file inside the device tree.
Since there is a lot of Thermometers who can be connected to the ADC and most
of them are not linear, I need a Look Up Table (LUT) provided by the integrator
who's setting up LCNC.
Idea is, providing the LUT in a .csv file in config directory.
I know, there are several way's, like python script, external c programm, .comp
to do that.
I like to write a component using the comp compiler, (also to get familiar with
it)
Now the question: Is there any draw back doing that using a component?
I ask, because
1. I'm not totally clear right now about the LCNC internals but try to
understand it.
2. I didn't see a component in the source code that uses user space file-I/O.
My idea is:
-Create a component that can have several instances (one for each ADC channel
for example)
-on loading the component parameters are channel number and a LUTxx.csv for
each instance
-each instance read it's LUT at load-time once and keeps it in memory
-conversion and output happens on a signal on an update pin.
I'm open for pros and contras.
Ju
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers