DAS08/JR - Comedi
26-6-2015
Sometimes it is necessary to have a look in my basement for spare parts.
This is what I found!
Complete, but dusty and dirty, hidden in the bottom of a paper box....
A das08-jr. Incl. educational board.
Based on ISA. It must be around 15 years old.
On my Ubuntu 14.04 Laptop:
$ cd /lib/modules
$ find . -name *das08*
Yep...
Back to the basement..... I think I have some where an old Dell with a Pentium Pro processor with maybe an ISA slot.....
cio-das08-jr.pdf cio-LAB8-Term.pdfNot sure yet if I want to spent time on this.
Let's say it's for sale as well.
Drop me a mail......
27-6-2015
Got him!
A Dell Optiplex GX PRO. What I can remember it was (is?) a very good machine.
I couple of days ago I have build deb-files for Proview 5.2.1-2 for Debian 8.
pwr, pwrtt and pwrsev....
- What happened the last 20 years?
- How is Proview (5.2.1-2) running on this old hardware as Operator/Process system?
- The Pentium Pro was an unique Processor.....
edit: 6-7-2015
Lets try a Proview Process station, with Debian 8 before I even consider to get the das08 I/O card working.
Starting with a small Debian 8 net-install.
- If Debian 8 is going to be disappoint, I will give Arch Linux a try
Let's go....
6-7-2015
Nope...., I changed my mind....
Found this comedi based device just like the das08.
To be honest I completely forgot the comedi DAQ possibilities. This can be very interested for Proview. After a kernel update all comedi supported I/O-systems drivers doesn't need to become compiled again. For example the motioncontrol USB/IO which is supported in Proview, needs a 2.6 kernel to compile. Today a 3.x kernel took over. There has been a lot of changes ain linux 3.x comparing to 2.6 . So, compiling a kernel module from 2.6 to 3.x has issues.... Not with "comedi" which is supported "inside" the kernel as modules.
This means, theoretically, this list of devices should be able to work with Proview.
Be aware the are general limitations with Comedi drivers.
$ sudo apt-get install libcomedi-dev
Add the user pwrp to the "iocard" group
In the directory /usr/share/doc/libcomedi-dev/demo/ is example code.
$ ./board_info gives:
overall info:
version code: 0x00074c
driver name: usbdux
board name: usbdux
number of subdevices: 5
subdevice 0:
type: 1 (analog input)
flags: 0x00119000
number of channels: 8
max data value: 4095
ranges:
all chans: [-4.096,4.096] [-2.048,2.048] [0,4.096] [0,2.048]
command:
start: now|int
scan_begin: timer
convert: now
scan_end: count
stop: none|count
command fast 1chan:
start: now 0
scan_begin: timer 125000
convert: now 0
scan_end: count 1
stop: count 2
subdevice 1:
type: 2 (analog output)
flags: 0x00125000
number of channels: 4
max data value: 4095
ranges:
all chans: [-4.096,4.096] [0,4.096]
command:
start: now|int
scan_begin: timer
convert: now
scan_end: count
stop: none|count
command fast 1chan:
start: now 0
scan_begin: timer 1000000
convert: now 0
scan_end: count 1
stop: count 2
subdevice 2:
type: 5 (digital I/O)
flags: 0x00030000
number of channels: 8
max data value: 1
ranges:
all chans: [0,5]
command:
not supported
subdevice 3:
type: 6 (counter)
flags: 0x00030000
number of channels: 4
max data value: 65535
ranges:
all chans: [0,1]
command:
not supported
subdevice 4:
type: 12 (pwm)
flags: 0x00020100
number of channels: 8
max data value: 512
ranges:
all chans: [0,1]
command:
not supported
And in /dev/
ls -l comedi*
crw-rw---- 1 root iocard 98, 0 Jul 6 13:23 comedi0
crw-rw---- 1 root iocard 98, 48 Jul 6 13:23 comedi0_subd0
crw-rw---- 1 root iocard 98, 49 Jul 6 13:23 comedi0_subd1
Let's try to create a project in Proview named "comedi" and try to attach the I/O system to this project. In first case I want only to read analogue value 0 from subdevice 0.
- value = comedi_data_read(it, 0, 0, 0, AREF_GROUND, &data);
I am using a default Ubuntu 14.04 with the standard pwr52_5.2.1-2_i386.deb file and set the environment in a terminal with:
$ source /usr/pwrp/adm/db/pwr_setup.sh
I have created a class volume and the next step is to write code for the methods.