Skip to contentSkip to conversation

Xenomai-Comedi: How to?

Xenomai-help Nicola Pedrocchi 2 participants 3 messages Dec 15, 2008 – Dec 19, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

let me introduce, I am Nicola Pedrocchi, a researcher from the Institute

Quoted 28 lines

of Industrial Technology and Automation of the National Research Council of Italy.
I have to develop a real-time acquisition from an anologic sensor using a NI board and I wish to use Linux-Xenomai as RTOS and Comedi as driver.

However, I have not very well understood the organization of the project xenomai-comedi (sorry!! I am really new in using Linux-Xenomai :( )

My doubts are:
1) What I need :) ???
...If I have understood correctly, I must use a stable version of Xenomai, download comedi-rdtm-dev from the xenomai repository and compile it, is it correct? (I tried, but I have some problems in building phase concerning undefined reference in the modules linkage...I will post them in a next mail in the case it is the correct road) Or I have to compile the xenomai-trunk where comedi files there are already? Or I have to compile the originary comedi files obtained from www.comedi.org?

2) looking for national instruments drivers, I found them in comedi-rtdm-dev, however I read the threads of the mailing list and in my understanding, they are experimental and not tested yet, is it correct?

Thanks in advance for your help!!!
Have a good time!
bye
nicola

Quoted 12 lines

-------------------------------------------------
Eng. Nicola Pedrocchi, PhD
-------------------------------------------------
phone : +39 02 23699982
mobile: +39 328 9159914
mail : [email protected]
mail : [email protected]
mail : [email protected]
web : http://robotics.ing.unibs.it
Thak you for correcting me!
-------------------------------------------------

-------------------------------------------------
Eng. Nicola Pedrocchi, PhD
-------------------------------------------------
phone : +39 02 23699982
mobile: +39 328 9159914
mail : [email protected]
mail : [email protected]
mail : [email protected]
web : http://robotics.ing.unibs.it
Thak you for correcting me!
-------------------------------------------------

#2 lore raw

Hi,

Quoted 20 lines

let me introduce, I am Nicola Pedrocchi, a researcher from the Institute

Quoted 17 lines

of Industrial Technology and Automation of the National Research Council of Italy.
I have to develop a real-time acquisition from an anologic sensor using a NI board and I wish to use Linux-Xenomai as RTOS and Comedi as driver.

However, I have not very well understood the organization of the project xenomai-comedi (sorry!! I am really new in using Linux-Xenomai :( )

My doubts are:
1) What I need :) ???
...If I have understood correctly, I must use a stable version of Xenomai, download comedi-rdtm-dev from the xenomai repository and compile it, is it correct? (I tried, but I have some problems in building phase concerning undefined reference in the modules linkage...I will post them in a next mail in the case it is the correct road) Or I have to compile the xenomai-trunk where comedi files there are already? Or I have to compile the originary comedi files obtained from www.comedi.org?

You have to compile the xenomai trunk for now.

Quoted 3 lines
Quoted 3 lines

2) looking for national instruments drivers, I found them in comedi-rtdm-dev, however I read the threads of the mailing list and in my understanding, they are experimental and not tested yet, is it correct?

Yes. I have on my TODO list, the delivery of a beta version of the ni_pcimio driver into the xenomai trunk. This driver will match the features range provided by the legacy version (www.comedi.org).

However, you should not use the comedi-rtdm-dev version, that was just a POC for the modified Comedi API.

The trunk version will be available soon.

Best regards.

Alexis.

#3 lore raw

Thak you very much Alexis,

I have compiled the trunk as you say and everithing seems ok.

In order to test comedi I was used to associate a driver to a device with the command

# comedi_config <devicefilenae> <driver>

When I try to execute this command the output is:
"Xenomai: incompatible ABI revision level (neede=1, current = 2)". ... is it correct?

What I have to do to test Comedi?
What are the step I have to do in order to test the NI board I have available?
....I read the API documentation in
http://www.xenomai.org/documentation/trunk/html/api/index.html however I am in lack of the correct logic to write a simple program to test my experimental set-up.

Should you/someone help me posting a very simple "hello world" program to test the basic functionalities of xenomai-comedi?

Thanks in advance!!!
Have a good weekend
best regards,
Nicola

Quoted 50 lines

Hi,

Quoted 18 lines

let me introduce, I am Nicola Pedrocchi, a researcher from the Institute

Quoted 1 line

of Industrial Technology and Automation of the National Research

Council

Quoted 2 lines

of Italy.
I have to develop a real-time acquisition from an anologic sensor

using a

Quoted 3 lines

NI board and I wish to use Linux-Xenomai as RTOS and Comedi as driver.

However, I have not very well understood the organization of the

project

Quoted 6 lines

xenomai-comedi (sorry!! I am really new in using Linux-Xenomai :( )

My doubts are:
1) What I need :) ???
...If I have understood correctly, I must use a stable version of Xenomai, download comedi-rdtm-dev from the xenomai repository and

Quoted 9 lines

compile

Quoted 1 line

it, is it correct? (I tried, but I have some problems in building

phase

Quoted 1 line

concerning undefined reference in the modules linkage...I will post

them

Quoted 1 line

in a next mail in the case it is the correct road) Or I have to

compile

Quoted 2 lines

the xenomai-trunk where comedi files there are already? Or I have to compile the originary comedi files obtained from www.comedi.org?

You have to compile the xenomai trunk for now.

Quoted 5 lines
Quoted 2 lines

2) looking for national instruments drivers, I found them in comedi-rtdm-dev, however I read the threads of the mailing list and in

my

Quoted 1 line

understanding, they are experimental and not tested yet, is it

correct?

Yes. I have on my TODO list, the delivery of a beta version of the ni_pcimio
driver into the xenomai trunk. This driver will match the features range provided by the legacy version (www.comedi.org).

However, you should not use the comedi-rtdm-dev version, that was just a POC
for the modified Comedi API.

The trunk version will be available soon.

Best regards.

Quoted 8 lines

Alexis.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

-------------------------------------------------
Eng. Nicola Pedrocchi, PhD
-------------------------------------------------
phone : +39 02 23699978
mobile: +39 328 9159914
mail : [email protected]
mail : [email protected]
mail : [email protected]
web : http://robotics.ing.unibs.it
Thak you for correcting me!
-------------------------------------------------