Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error on PCI attach device

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

 

0 Kudos
Message 1 of 7
(8,641 Views)

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 

0 Kudos
Message 2 of 7
(8,618 Views)
Dear Ed, Thank you very much for your reply. Yes, we can run lsdaq on all the systems. I am going check the massage. Do you suggest that if the numbers do not match, we should reinstall the board in a different slot? Thanks, Jean-Guy
0 Kudos
Message 3 of 7
(8,612 Views)

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

Message 4 of 7
(8,610 Views)

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

 

0 Kudos
Message 5 of 7
(8,606 Views)

Hi,

 

Sorry. I mean it does not work. Anyway, I will try out again.

 

Thanks,

 

Jean-Guy

 

0 Kudos
Message 6 of 7
(8,605 Views)
Hi Ed, The problem has been fixed. The reason is that in the function acquireBoard() (I am using) the bus number and the device number were both hard coded.

 

Thanks a lot for your help,

 

Jean-Guy

 
0 Kudos
Message 7 of 7
(8,583 Views)