Analogy - Digital input change detection on falling or rising edge (NI PCI6229)
Hello to all,
I am using NI m-series DAQ card (PCI 6229), and I would like to use digital input channel to detect a change on falling or rising edge.I need to detect the edge and trigger it to log the exact time.I tried to configure the digital channel using instruction as the following, but I received -22 error code.
insn.type = A4L_INSN_CONFIG;insn.idx_subd = SUBD_DIO;insn.chan_desc = 0;insn.data_size = sizeof(data[0])*3;data[0] = A4L_INSN_CONFIG_CHANGE_NOTIFY;data[1]=0x01;data[2]=0x01;insn.data = data;
The DAQ card datasheet states that such functionality is supported, but I read couple of posts on Comedi forum that it is not supported for ni_pcimio in Comedi.Is it really impossible to use the digital input channel as an interrupt on Analogy driver?
If anyone has tried it, could you give me some tips on configuring it?I appreciate any help that I receive.
Best,Rosali
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 3 lines · Rosali Pyun
Hello to all,
I am using NI m-series DAQ card (PCI 6229), and I would like to use digital input channel to detect a change on falling or rising edge.I need to detect the edge and trigger it to log the exact time.I tried to configure the digital channel using instruction as the following, but I received -22 error code.
insn.type = A4L_INSN_CONFIG;insn.idx_subd = SUBD_DIO;insn.chan_desc = 0;insn.data_size = sizeof(data[0])*3;data[0] = A4L_INSN_CONFIG_CHANGE_NOTIFY;data[1]=0x01;data[2]=0x01;insn.data = data;
could you send a code snippet and details about the xenomai version that you are running?
Quoted 8 lines
The DAQ card datasheet states that such functionality is supported, but I read couple of posts on Comedi forum that it is not supported for
ni_pcimioin Comedi.Is it really impossible to use the digital input channel as an interrupt on Analogy driver? If anyone has tried it, could you give me some tips on configuring it?I appreciate any help that I receive.
Best,Rosali
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
- --
jro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJUtpIfAAoJECDcy2IJkagRlp4H/ipgRb62sKzJeVmf1EOOkyYG l1VBtvNr+jcLCS5J0BvMj8AvwWICJzEqp76tNgmflFCKEB/jMLaLqXrHsbolN5wv OJhgcyBmwr19ODkETjRcBA+KKDMsBDiQ3OahkKZozQTysR46eDTH0sd3LcCRVNxA C7ty/BGL/6PlrV3TaHDZgDNHrMKcI6MpsVqt5+evczDGxONGWCFiKMAaPu+y6nc2 q+ljz1OefqGUIDtcORWb5RPi6xCq+4+iNwc2osywSgWu/UwABqRqSXQ5QgE3n17f EUjhs8+ygaZl8fNxj2aN1DkpKABiYmoEC/x78qwrkG+u2jccMLJ2KKvrd30nVDc= =DaqH
-----END PGP SIGNATURE-----