01-06-2009 10:16 AM
I have tried to instal Total Phase's Aardvark I2C USB driver for LabVIEW on two computers and two versions of LV (8.5 and 7.1) without success. The Windows driver seems to be working fine as their command center gui terminal-esque program works without a hitch, but the LV DLL doesn't seem to work.
Attached is the very simple vi to find connected Aardvark USB devices (aa_find_devices). It always returns the same error code, 8002, which resolves to:
AA_UNABLE_TO_LOAD_DRIVER |
-2 |
unable to load USB driver |
From their documentation: http://www.totalphase.com/docs/aardvark_datasheet/sect005/#s5.9
This looks like perhaps the LabVIEW DL, "aardvark.dll" maybe having a versioning issue. So my question is this: Using LabVIEW, how does one debug dll dependencies and resolve issues like this? Do I need the source code for the lib?
Cheers,
Joe Gorse
Solved! Go to Solution.
01-06-2009 10:33 AM
We've used an Aardvark unit in our lab here and not run into issues with the LabVIEW VIs. What makes you think it's a DLL version issue?
01-06-2009 11:24 AM
01-06-2009 11:54 AM
That doesn't sound like a DLL version problem. Do you by any chance have the Control Center running at the same time?
I'll have to see if I can dig up the Aardvark unit that we do have. It's around here somewhere, but we've stopped using it since we started using the Diolan U2C-12 boards.
01-06-2009 02:40 PM
It was the "aardvark.dll".
I took a quick peak into the dll packaged with the LabVIEW and the one packaged with the Control center with IDA, saw the same entry points but that the files were different. So I figured that since the Control center worked and the LabVIEW didn't, perhaps the Control center dll would work for LabVIEW. After the swap it worked like a charm.
Thanks for the suggestions!
Joe
01-06-2009 02:55 PM
01-19-2009 02:55 PM
01-20-2009 09:15 AM
Etai,
Not a problem. Thanks for the informational post!
I'm pretty used to DLL versioning hell so I unit tested everything I needed (I2C Master) and it worked so I went with it. Good to know the caveats to the approach. It sounds like a downgraded USB driver with the packaged LabVIEW driver is The Right Way to go for the time being. When the new LabVIEW drivers are released I'll be sure to grab them.
Cheers,
Joe
01-30-2009 03:36 PM