- From: Jeremiah Johnson <johns839_at_casews.com>
- Date: Wed, 29 Oct 2003 09:46:44 -0500
If I understand what your trying to get at you could parse through /proc/ioports to figure it out. Do you need the ioports parameter? The driver I'm using doesn't seem to care. With this line in my /etc/modules.conf: post-install ni_pcimio PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH;comedi_config /dev/comedi0 ni_pcimio Anything that uses a device linked to comedi automatically loads drivers. You also run a modprobe from within the program to do a similar thing. Did that answer the question? /Jeremiah ----- Original Message ----- From: "Francisco Garcia-Lagos" <lagos_at_dte.uma.es> To: <comedi_at_comedi.org> Sent: Tuesday, October 28, 2003 12:55 PM Subject: Comedi dynamic configuration > Hello everybody, > > I am using comedi to use several DAQ cards (mainly advantech pcl818, > pcl730, ACL-7225B, ...) successfully (this list help me a lot :)). Well, > now I have the following problem. There are several different PC with > different installed card (DAQ, modems, serial ports, etc) and this is > impossible to use the same IO PORT parameter for each card. Also, some PC's > have several identical (same model) cards installed (p.e. 3 PCL-730 card), > and obviously each one has his IO PORT parameter. > > The question is: is there any way to make the same thing that make the > following commands: > modprobe pcl818 > comedi_config /dev/comedi0 pcl818hd 0x300,7 > > inside a program that use comedilib? (that is , are there api functions > that can load a module and link a particular dev file with a driver, a > ioport and a irq?) > > Any help will be appreciated. > > Thank in advance. > > Francisco Garcia. > . > > > _______________________________________________ > comedi mailing list > comedi_at_comedi.org > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi > > >
Received on 2003-10-29Z14:46:44