I would like to ask you a question, i am working in analogy interface and I
have used the script* insn_read* which are located in */usr/xenomai/bin*,
to test I/O operations with my DAQ card *NI PCI-6221**. *My NI card is not
connected to any equipment

My problem is when i run the script in terminal linux, for example

*/usr/xenomai/bin/insn_read  -v  -d  analogy0   -s 0   S 10  -c 2 *

to get the values in the sub-device number 0 and chanel number 2. So I get
the values following:


*root@debianrt:/home/giang# '/usr/xenomai/bin/insn_read' -v -d analogy0 -s
0 -S 5 -c 2*

*insn_read: device analogy0 opened (fd=0)*

*insn_read: basic descriptor retrieved*

*                 subdevices count = 14*

*                 read subdevice index = 0*

*                 write subdevice index = 0*

*insn_read: complex descriptor retrieved*

*insn_read: selected subdevice index = 0*

*insn_read: channel width is 16 bits*

*insn_read: global scan size is 10*

*0x0fc4*

*0x0fd2*

*0x0fd8*

*0x0fda*

*0x0fdd*

*insn_read: 10 bytes successfully received*

* *

*root@debianrt:/home/giang# '/usr/xenomai/bin/insn_read' -v -d analogy0 -s
0 -S 5 -c 2*

*insn_read: device analogy0 opened (fd=0)*

*insn_read: basic descriptor retrieved*

*                 subdevices count = 14*

*                 read subdevice index = 0*

*                 write subdevice index = 0*

*insn_read: complex descriptor retrieved*

*insn_read: selected subdevice index = 0*

*insn_read: channel width is 16 bits*

*insn_read: global scan size is 10*

*0x0000*

*0x0000*

*0x0000*

*0x0000*

*0x0000*

*insn_read: 10 bytes successfully received*

* *

*root@debianrt:/home/giang# '/usr/xenomai/bin/insn_read' -v -d analogy0 -s
0 -S 5 -c 2*

*insn_read: device analogy0 opened (fd=0)*

*insn_read: basic descriptor retrieved*

*                 subdevices count = 14*

*                 read subdevice index = 0*

*                 write subdevice index = 0*

*insn_read: complex descriptor retrieved*

*insn_read: selected subdevice index = 0*

*insn_read: channel width is 16 bits*

*insn_read: global scan size is 10*

*0x0000*

*0x0000*

*0x0000*

*0x0000*

*0x0000*

*insn_read: 10 bytes successfully received*

* *

* *

The values of the first acquisition are normal, because it was the noise of
analog signal. But for the next acquisition, I don’t know why the whole
values become zero.


Thanks


my configuration: Debian Squeez 6.0, Xenomai 2.6.0, kernel linux 2.6.38
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to