Orocos OCL with Comedi

Hi all. I am a student of the Polytechnic University of Valencia and I am doing a project with Orocos. I've created some simple components to learn the basics of this library.

Well, I have Advantech PCI1720 card (card D / A). I've installed Comedi (is supported) and I created a C program to check its operation.

When I try to create a component that uses this card Comedi (following The Orocos Comedi interface), when I compile I get error " undefined_reference in function comedi_data_read" I think that I'm doing something wrong in the "include" sentencies. I put the class ComediDevice.cpp. hpp on the same path on my component and I get this error.

What path I have to put Comedi*.cpp and. hpp class?

When compiling, I build the Makefile with cmake and ccmake, do I nedd to put a specific flag to compile?

Can anyone help me? Thank you very much.

Jose Ign. Cazalilla

Orocos OCL with Comedi

Hey Jose,

2011/1/14 jocamo5 [..] ... <jocamo5 [..] ...>:
> Hi all.
> I am a student of the Polytechnic University of Valencia and I am doing a project with Orocos. I've created some simple components to learn the basics of this library.
>
> Well, I have Advantech PCI1720 card (card D / A). I've installed Comedi (is supported) and I created a C program to check its operation.
>
> When I try to create a component that uses this card Comedi (following The Orocos Comedi interface), when I compile I get error " undefined_reference in function comedi_data_read" I think that I'm doing something wrong in the "include" sentencies. I put the class ComediDevice.cpp. hpp on the same path on my component and I get this error.
>
> What path I have to put Comedi*.cpp and. hpp class?
>
> When compiling, I build the Makefile with cmake and ccmake, do I nedd to put a specific flag to compile?

Yes, the COMEDI_INSTALL macro must point to your comedi installation directory

As for the coding, below are parts of a component I succesfully used
some time ago:

HPP file:

// includes
#include <rtt/dev/AnalogOutput.hpp>
#include <ocl/dev/ComediDevice.hpp>
#include <ocl/dev/ComediSubDeviceAOut.hpp>

// PCI card declarations
ComediDevice* comediDevAOut;
ComediSubDeviceAOut* comediSubdevAOut;
AnalogOutput* signaal1;
AnalogOutput* signaal2;
AnalogOutput* signaal3;
AnalogOutput* signaal4;

-------------
CPP file:
// make a new ComediDevice (= ni6713 card in my case)
comediDevAOut = new ComediDevice(0);
// subdevice 1 is analog out
comediSubdevAOut = new ComediSubDeviceAOut(comediDevAOut,"ni6713",1);
signaal1 = new AnalogOutput(comediSubdevAOut,0);
signaal2 = new AnalogOutput(comediSubdevAOut,1);
signaal3 = new AnalogOutput(comediSubdevAOut,2);
signaal4 = new AnalogOutput(comediSubdevAOut,3);

//send values e.g.
signaal1->value(someValue);

AFAIK, this comedi support is only available in the Orocos 1.x versions however!

regards,

Steven

>
> Can anyone help me?
> Thank you very much.
>
> Jose Ign. Cazalilla
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

Orocos OCL with Comedi

Thanks for your reply, Steven.
I did not know about the macro "COMEDI_INSTALL"but the problem now is that I have installed Orocos-toolchain-v2.2.0 (latest) and has no support for comedi ...
I have also seen a new version of OCL (OCL 1.12.1 released) and that has support for comedi.
As currently I have installed the toolchain, could I install RTT & OCL 1.12.1 released over installation the toolchain (same path) to work with Comedi?

Thanks a lot.

Jose

Orocos OCL with Comedi

A Dilluns, 17 de gener de 2011, Steven Bellens va escriure:
[.......]

> AFAIK, this comedi support is only available in the Orocos 1.x versions
> however!

there's some plan to put it in 2.X?

or there's some "important" reason to can not use the OCL comedi classes in
2.X?

Regards,

Leo

Orocos OCL with Comedi

On Jan 17, 2011, at 06:49 , Leopold Palomo-Avellaneda wrote:

> A Dilluns, 17 de gener de 2011, Steven Bellens va escriure:
> [.......]
>
>> AFAIK, this comedi support is only available in the Orocos 1.x versions
>> however!
>
> there's some plan to put it in 2.X?
>
> or there's some "important" reason to can not use the OCL comedi classes in
> 2.X?

A lot of the OCL v1.x functionality was not ported to v2.x due to a lack of maintainers. This does _not_ say anything about the quality or usefulness of the code - it is all a mixed bag.
S

Orocos OCL with Comedi

snrkiwi wrote:
On Jan 17, 2011, at 06:49 , Leopold Palomo-Avellaneda wrote:

A Dilluns, 17 de gener de 2011, Steven Bellens va escriure:
[.......]

>> AFAIK, this comedi support is only available in the Orocos 1.x versions however!

> there's some plan to put it in 2.X? or there's some "important" reason to can not use the OCL comedi classes in > 2.X?

A lot of the OCL v1.x functionality was not ported to v2.x due to a lack of maintainers. This does _not_ say anything about the quality or usefulness of the code - it is all a mixed bag.
S

Ok, but... currently, which is the solution to use Orocos with Comedi? Should I expect a new version of the toolchain where is Comedi supported ?

Any ideas?

Thanks for your help.

Re: Orocos OCL with Comedi

snrkiwi wrote:
On Jan 17, 2011, at 06:49 , Leopold Palomo-Avellaneda wrote:

 A Dilluns, 17 de gener de 2011, Steven Bellens va escriure:
 [.......]
 
>> AFAIK, this comedi support is only available in the Orocos 1.x versions however!

> there's some plan to put it in 2.X? or there's some "important" reason to can not use the OCL comedi classes in > 2.X?

A lot of the OCL v1.x functionality was not ported to v2.x due to a lack of maintainers. This does _not_ say anything about the quality or usefulness of the code - it is all a mixed bag. S

Ok, but... currently, which is the solution to use Orocos with Comedi? Should I expect a new version of the toolchain where is Comedi supported ?

Any ideas?

Thanks for your help.

Orocos OCL with Comedi

On Tue, 18 Jan 2011, jocamo5 [..] ... wrote:

>

snrkiwi wrote:
On Jan 17, 2011, at 06:49 , Leopold Palomo-Avellaneda wrote:
>
> A Dilluns, 17 de gener de 2011, Steven Bellens va escriure:
> [.......]
>
>>> AFAIK, this comedi support is only available in the Orocos 1.x versions however!
>
>> there's some plan to put it in 2.X? or there's some "important" reason to can not use the OCL comedi classes in > 2.X?
>
> A lot of the OCL v1.x functionality was not ported to v2.x due to a lack of maintainers. This does _not_ say anything about the quality or usefulness of the code - it is all a mixed bag.
> S
>
>

>
> Ok, but... currently, which is the solution to use Orocos with Comedi?
> Should I expect a new version of the toolchain where is Comedi supported
> ?
>
> Any ideas?

The real idea is that the developers who need the Comedi support most
urgently will start the effort of porting it from 1.x to 2.x. That the
essence of FOSS projects :-)

Herman

Orocos OCL with Comedi

You're right. Then... I'll have to wait for Peter&Company need to port from 1.x to 2.x
urgently and they apply de changes to the next version for toolchain ...
Thanks for your reply, and sorry for my English!

Orocos OCL with Comedi

You're right. Then... I'll have to wait for Peter&Company need to port from 1.x to 2.x urgently and they apply de changes to the next version for toolchain ... Thanks for your reply, and sorry for my English!

Orocos OCL with Comedi

On Wed, 19 Jan 2011, jocamo5 [..] ... wrote:

> You're right. Then... I'll have to wait for Peter&Company need to port from 1.x to 2.x
> urgently and they apply de changes to the next version for toolchain ...

Well, waiting for someone else to solve your problem is not necessary the
optimal, appropriate way of becoming part of an open source project...

> Thanks for your reply, and sorry for my English!

Herman

Orocos OCL with Comedi

2011/1/19 jocamo5 [..] ... <jocamo5 [..] ...>:
> You're right. Then... I'll have to wait for Peter&Company need to port from 1.x to 2.x
> urgently and they apply de changes to the next version for toolchain ...
> Thanks for your reply, and sorry for my English!

Don't expect that to happen any time soon!
If you want to use the Comedi support with the 1.x version, you can
just install it beside your 2.x installation (at a _different_
location however).

regards,

Steven

> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

Orocos OCL with Comedi

Thanks for your reply, Steven. I did not know about the macro "COMEDI_INSTALL"but the problem now is that I have installed Orocos-toolchain-v2.2.0 (latest) and has no support for comedi ... I have also seen a new version of OCL (OCL 1.12.1 released) and that has support for comedi. As currently I have installed the toolchain, could I install RTT & OCL 1.12.1 released over installation the toolchain (same path) to work with Comedi?

Thanks a lot.

Jose

Orocos OCL with Comedi

Hi all.
I am a student of the Polytechnic University of Valencia and I am doing a project with Orocos. I've created some simple components to learn the basics of this library.

Well, I have Advantech PCI1720 card (card D / A). I've installed Comedi (is supported) and I created a C program to check its operation.

When I try to create a component that uses this card Comedi (following The Orocos Comedi interface), when I compile I get error " undefined_reference in function comedi_data_read" I think that I'm doing something wrong in the "include" sentencies. I put the class ComediDevice.cpp. hpp on the same path on my component and I get this error.

What path I have to put Comedi*.cpp and. hpp class?

When compiling, I build the Makefile with cmake and ccmake, do I nedd to put a specific flag to compile?

Can anyone help me?
Thank you very much.

Jose Ign. Cazalilla