Simulink & COMEDI_DIO_READ issues

Hello people,

I want to use the COMEDI_DIO_READ block in Simulink to read the encoder
values from a NI 6602.
Everything up and running ( RTAI blocks in simulink, generating the
test-model and running it in RTAI).
Also I've used the encoder-card in "normal" rtai programs, which is
configured during "run-time" of those
applications.  When using a model created in Simulink, I assume I have to do
this same configuration
when running
 > comedi_config /dev/comediX <driver>
.. ?

If I run the model without any specific configuration, I get an error saying
that Comedi lock subdevice fails
(error -38).

Question is, how to configure the card for encoding by calling
comedi_config?

Also, one important thing.  When the model opens the device, the name is
garbage, as in:
/dev/comedi0 opened <#$%#$%#$>,  is this okay?


regards,
Camino

Received on 2006-04-05Z12:35:57