- From: Stienen, A.H.A. (CTW) <"Stienen,>
- Date: Wed, 25 Oct 2006 17:24:03 +0200
Hello, I've got two working RTAI/Comedi systems. One of which has got a National Instruments 6703 (AO), a 6602 (Encoder) and a 6034 (AI) card, the other, older one, has only one 6025 (AI/AO). I've been using almost the same startup script for both of them. For the older device, it looks like this: # RLINSMOD - RTAI-Lab Insmod. # # Inserts RTAI-Lab and Comedi modules in kernel and # configures the drivers. # # Version 1.0 - January, 2006 - Arno H.A. Stienen # /sbin/insmod /usr/realtime/modules/rtai_hal.o /sbin/insmod /usr/realtime/modules/rtai_lxrt.o /sbin/insmod /usr/realtime/modules/rtai_fifos.o /sbin/insmod /usr/realtime/modules/rtai_sem.o /sbin/insmod /usr/realtime/modules/rtai_mbx.o /sbin/insmod /usr/realtime/modules/rtai_msg.o /sbin/insmod /usr/realtime/modules/rtai_netrpc.o /sbin/insmod /usr/realtime/modules/rtai_shm.o /sbin/modprobe comedi /sbin/modprobe kcomedilib /sbin/insmod /usr/realtime/modules/rtai_comedi.o /sbin/modprobe ni_pcimio /usr/local/sbin/comedi_config -q /dev/comedi0 ni_pcimio /usr/local/bin/comedi_calibrate -q -f /dev/comedi0 # END RELINSMOD. It loads the required RTAI and Comedi modules, then configures /dev/comedi0 to use the NI 6025 driver and then calibrates it. However, it doesn't remember the calibration values, thus every time I start/reboot the machine, it goes through the ~10 minutes calibration routine. My newer machine with the NI 6034 card (AI) does remember its calibration values and just loads them from file. This is much quicker! As far as I make out from the man-info, the options I'm using for comedi_calibrate, -q -f /dev/comedi0, are correct. The -f option will use the calibration settings if no default calibration for /dev/comediN already exists, and then performs a calibration and saves the results to the default location. So it should use these results the next time, right? Or am I missing something here? Thanks, Arno. -- ____ / |_| <<< IR. ARNO H.A. STIENEN >>> |_ O | Biomechanical Engineering | http://www.bw.ctw.utwente.nl |_|__/ a.h.a.stienen_at_utwente.nl | +31-(0)53-489-4778 UTwente
Received on 2006-10-25Z14:24:03