📄 rtic_comedi_doc.html
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"><html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mozilla/4.51 [en] (X11; I; Linux 2.2.13-rtl2.0 i686) [Netscape]"></head><body> <br><b><font color="#000000"><font size=+1>RTiC_Lab and COMEDI</font></font></b><h1><b><font size=+0>Introduction</font></b></h1><font size=-1> This document describes the interfacebetween <a href="http://RTiC-Lab.SourceForge.Net">RTiC_Lab</a>and <a href="http://stm.lbl.gov/comedi/">COMEDI</a> device drivers. Themain idea is to support more data acquisition cards in RTiC_Lab. SinceCOMEDI has a good number of device drivers, the solution is to create aninterface to be able to use the COMEDI device drivers in RTiC_Lab applications.</font><p><b>RTiC_Lab and COMEDI device drivers</b><p><font size=-1> <font face="Times New Roman,Times">In order to use the RTiC_Lab-COMEDI the first thing you need to do is toread about <a href="http://stm.lbl.gov/comedi/documentation.html">COMEDI</a>and <a href="http://RTiC-Lab.SourceForge.net/index.html#Manuals">RTiC_Lab</a>.COMEDI offers device drivers and a library of function to access thosedevice drivers. Every device driver is implemented as a module. There isa module (comedi.o) that has general support for the device drivers.</font></font><p><font face="Times New Roman,Times"><font size=-1> The first thing you have to do is install comedi.o, then install the themodule for the devide driver you want to use. Finally, configure the devicedriver with comedi_config. Here is an example for the National InstrumentsAT-MIO-16E-10 data acquisition card. This card has to be configure withthe Linux isapnp tools. COMEDI describes how to use the ispnp tools <a href="http://stm.lbl.gov/comedi/doc/comedilib-2.html#ss2.3">here</a>.</font></font><p><b><font face="Times New Roman,Times"><font size=-1>insmod comedi.o</font></font></b><br><b><font face="Times New Roman,Times"><font size=-1>insmod ni_atmio.o</font></font></b><br><b><font face="Times New Roman,Times"><font size=-1>comedi_config /dev/comedi0atmio-E 0x260,3</font></font></b><p><font size=-1>comedi_config assigns basic information to the devicedriver. This is the information:</font><br><font size=-1>* base address (0x260)</font><br><font size=-1>* interrupt number (3)</font><br><font size=-1>* minor number for this subdevice (0). COMEDI has a devicemajor number for /dev/comediX (98). Every data acquisition card is considereda subdevice and has a unique minor number. The minor number is the "X"in /dev/comediX.</font><p><font size=-1> You must let know COMEDI_AD.c and COMEDI_DA.cwhat minor number you are using. That is done with the following definitions:</font><p><font size=-1>#define RTiC_COMEDI_MINOR_ADC 0 /* In COMEDI_AD.c */</font><br><font size=-1>#define RTiC_COMEDI_MINOR_DAC 0 /* In COMEDI_DA.c */</font><p><font size=-1> This figure is a representation ofthe RTiC_Lab-COMEDI interface.</font><br> <p><img SRC="rtic-lab.jpg" HSPACE=1 VSPACE=1 NOSAVE BORDER=1 height=480 width=640><p>Note: <font size=-1>So far the RTiC_Lab-COMEDI interface has been testedfor the NI_ATMIO_16E-10 data acquisition card. The nice thing about COMEDIis the general structure all the way to device drivers. This helps theRTiC_Lab-COMEDI interace to be almost completely hardware independent.The result is a simple interface for all the device drivers from COMEDI.Information about RTLinux from Victor Yodaiken is <a href="http://www.rtlinux.org/rtlinux.new/index.html">here</a>.</font><p><font size=-1> These document was written for RTiC_Labversion 0.6.1 and COMEDI comedi-0.7.44 and comedilib-0.7.8. If there issomething not clear about the RTiC_Lab-COMEDI interface, read the commentsin COMEDI_AD.c and COMEDI_DA.c or send me and email at jguilber@nmt.edu.</font><br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -