grapnel Posted November 21, 2011 Report Posted November 21, 2011 Hi there, This is my first posting on lava. A coworker pointed me here after I told him I had reached my limit trying to debug this hardware issue. I have a PMC device I am trying to test. The test plan calls for putting 2 of the devices on PMC-PCI adapter cards and installing them in a Windows PC, then running tests. When I put just one of the devices in the PC I didn't have a problem. I made a driver using NI's VISA driver wizard. And I was able to read from the PCI configuration and BAR0 address spaces of the device using the VISA test panel in MAX. However, when I plugged in the second DUT I started having a strange issue. I could still read from the configuration spaces from both devices, but one of the two DUTs always returned zero when I read from it's registers in the BAR0 address space, the other worked normally. No errors showed in Windows Device Manager. So far I found a workaround that gets both cards working, but I still haven't figured out the root of the problem. Power up the PC with both cards installed After Windows boots up, switch off the power on one of the PCI-PMC adaptor cards Then in the Windows Device Manager click the "Scan for hardware changes" button and check that one of the cards is gone Switch the carrier card back on "Scan for hardware changes" again and click through Windows' "Found new Hardware" dialogue to re-install the driver After that rigamarole both cards work untill I restart the PC. Does this issue sound familiar to anyone out there? Can you offer some suggestions for steps I should take for diagnosing PCI problems? Quote
asbo Posted November 21, 2011 Report Posted November 21, 2011 On the surface, it doesn't seem like a VISA issue, more like a device driver issue. Are you using the latest driver from the manufacturer? Quote
grapnel Posted November 21, 2011 Author Report Posted November 21, 2011 Hey thanks for replying. I don't have a driver from the manufacturer because they haven't released one yet, instead I used NI's VISA driver wizard to make a default PCI driver for testing purposes. I'm hoping to get some words of wisdom to help me find what is causing the problem. Quote
asbo Posted November 22, 2011 Report Posted November 22, 2011 Unfortunately, I don't have any experience with VISA driver generation. Of course, my first suggestion is to get in touch with NI and ask how to better diagnose this issue and if they've seen it before. A situation where a generated driver is used on multiple identical devices may not be that common and could have some issues. Also, you could use NI's I/O Trace to log everything that's going on with VISA - I don't know if this will catch what the driver is doing, but an I/O trace is usually something that NI requests to troubleshoot hardware-related issues. Additionally, you could check the Windows Event Log to see if there's any information there - again, I don't know if the driver will report there, but it's worth checking. Quote
grapnel Posted November 22, 2011 Author Report Posted November 22, 2011 Those are great suggestions, I'll take a look. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.