Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ag34405a Link Error

Hi guys,

 

I have a strange behavior of Agilent 34405a IVI driver under LabWindows/CVI (7.1).  A simple project includes files: agilent34405a_example.c

agilent34405a.h

agilent34405a.c

 

All above files are part of installed IVI driver (downloaded from NI site).  On my PC the project compiles/builds/run OK.

 

But when I transfer (or create) the same project on he test PC (the same configuration and install options) I have a trouble with .exe build step. Environment all time gives "Undefined symbol ..." Linker Error.  If I replace agilent34405a.c with agilent34405a.lib or ag34405a.fp file the build is made with NO error, BUT program do not communicate with the instrument ( USB addres is  the same as from MAX ). Even "Simulate" option doesn't work - all times gives Error. 

 

I've checked all settings (that I know )  of environment  but didn't find any differences with settings of my PC.

 

I suspect there is any trouble ( or trick ) with ag34405a_32.dll file - probably any problem with Win registry file ??? 

 

Thanks in advance 

0 Kudos
Message 1 of 2
(3,547 Views)

The problem you face comes from the fact that the linker is trying to include one of the libraries that was installed on the previous PC and it is missing on the one you try to recompile the code on.

You will need to find the agilent34405a.lib or agilent34405a.dll on the first PC and place them in the linker path when you recompile the code on the new one.

Renaming the files from c to dll or lib is not a good option since the linker will find the file but this file is not the right format.

This lib or dll contains the functionality you are trying to access by calling the library.

 

You could also try reinstalling any libraries or drivers that support agilent 34405a on the test PC.

 

I suggest searching them where they are located on the first PC and then see how you can transfer them on the Test PC.

 

0 Kudos
Message 2 of 2
(3,489 Views)