01-18-2010 07:32 PM
Hi,
We have developed a control application using PCI6025E board on QNX. The application works fine on the system we worked with. However, when we test the same application with other systems, we got an error “pci_attach_device: No such device.” We have identified that this error has issued when the function "acquireBoard("PXI0::0::INSTR")" is invoked. All systems have the same setup and configuration. Anybody has ideas about what is happening and how to fix this problem?Thanks a lot,Jean-Guy
01-20-2010 02:09 PM
Hi,
Are you able to run lsdaq? What is the output from it? It sounds like your system enumerated your board as something other than "PXI0::0::INSTR". Check on the numbers within that string as it comes from lsdaq to make sure they're both zeros (0). If they are, then this may be a more challenging problem, but my guess is that the computer enumerated the device in a different way (perhaps because it is in a different slot than the other systems, etc.).
Thanks,
Ed
01-20-2010 06:04 PM
01-20-2010 07:04 PM
Hi Jean-Guy,
Rather than trying to coerce your system into enumerating the device to match your program, I would recommend just making your program match your system's configuration. In a word, just change the string that you give to acquireBoard() to match the string you see in the output from lsdaq. Let me know if you still have problems after making this change, and recompiling/testing the program.
Thanks,
Ed
01-20-2010 07:15 PM
Hi Ed,
Actually, I did try to modify the argument in the function acquireBoard() to match the string returned by lsdaq. However, it does work. I will try out again.
Thanks a lot,
Jean-Guy
01-20-2010 07:17 PM
Hi,
Sorry. I mean it does not work. Anyway, I will try out again.
Thanks,
Jean-Guy
01-21-2010 02:57 PM
Thanks a lot for your help,
Jean-Guy