Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

pci 6221 inicialization and comedi_config command

Hello,

 

I'm developing a RT application with Linux+Rtai and NI pci 6221 card with comedi driver ni_pcimio to control two mirrors to deflect a laser beam.

 

Everything is working fine, except the inicializacion of the 6221 card: the first time I issue the command comedi_config /dev/comedi0 ni_pcimio to attach the device with the driver I get -10 volts in the analog outputs.

 

After that, when I run in my application comedi_open("/dev/comedi0") the analog outputs go back to 0V. Subsequent comedi_config (removing with -r and using the original comedi_config command after) never produce -10V again.

 

This is a serious problem because the -10V can break the mirrors at the start of the system any time.

 

I don think this is -at least only- a comedi issue, because anytime I reboot the PC ( init 6 command) the system starts OK, and I never see the -10V again. Only when I do a hard reboot - init 0 and then switching off and on the power supply- the problem arises again in the first start of the system. That's why I think there is something in the card hardware that gets initialized the first time, and keeps there until the power supply goes down.

 

Any ideas to why this is happen and how can I fix it?

 

Thanks in advance

Antonio López

 

 

0 Kudos
Message 1 of 2
(3,351 Views)

I have the same problem with the PCI-6229. Maybe you can add a relay between your output and your mirror and switch the relay with the digital output of your card?

0 Kudos
Message 2 of 2
(2,939 Views)