LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Sorry, but I can't run the "spectrum.prj" example using CVI7.0.

Here is the error information:

spectrum.prj(Debug) - 3 link errors
Undefined symbol '_AIReadAcquisition@24' referenced in "spectrum.c".
Undefined symbol '_AIClearAcquisition@4' referenced in "spectrum.c".
Undefined symbol '_AIStartAcquisition@44' referenced in "spectrum.c".

Thank you!

Marlon
0 Kudos
Message 1 of 8
(3,960 Views)
Hi Marlon
Looks like the C file is not able to communicate with the DAQ card and cannot complete the basic acquisition functions. I need to know what DAQ card you have. I was able to run the project without any error and I am using CVI 7.0. Please let me know what card is it that you are using. Thank you.
Robin
0 Kudos
Message 2 of 8
(3,960 Views)
Hi, Robin:

I use PCI-6110 on a computer with Windows 2000. I have the problem on this one.
However, I don't have any problem on another computer (a laptop with Windows XP) even though I don't have any card on it. I guess the program can use simulation, so I don't need any card to run the program.

I installed CVI 7.0 and NI-DAQ 7.3 for both computer in the same way and tried several times.

Could you please help me?

Thank you!

Marlon
0 Kudos
Message 3 of 8
(3,960 Views)
Hello

Make sure that you have installed CVI support for DAQ. This example uses traditional DAQ, so you would need to install the Traditional DAQ api and the CVI support for it. You can see if this has been installed correctly if you go to CVI , select the LIbrary menu and Traditional DAQ is not disabled. You also need to have the easy I/O library loaded.
What can happen sometimes is that the driver might be copying the files into the folder with the older version of CVI. You can search your machine to see where the easyio.lfp and easyio.lib files might be. Copy them both to the bin folder of the CVI 7 directory. Then if you go to LIbrary >> Customize, you can add the path to the lfp file and try building the example again

Hope this helps


Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 4 of 8
(3,960 Views)
Hi, Bilal:

I tried several times before. I have the Traditional DAQ, but I guess the example use NI-DAQmx.
After I installed CVI 7.0, I tried to install the NI-DAQ 7.3 on a Windows 2000 computer. However, I was told that NI-DAQmx API for CVI could not be installed because I didon't have a CVI 7.0 or higher version on my computer! I tried several times, uninstalled and reinstalled all NI-DAQ 7.3 and CVI 7.0. However, the problem is still there.
I don't have that problem on my Windows XP laptop, though.

Could anybody help me please?

Thank you!

Marlon
0 Kudos
Message 5 of 8
(3,960 Views)
This particular example is not using DAQmx. I am attaching the easy i/o libraries and lfp I have on my machine. You can copy it into the bin folder of CVI 7.0 and add it to the list of libraries.
But if you can post your setup log to jlaneys response, it will help us track why DAQmx wont let you install support for CVI.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 6 of 8
(3,960 Views)
Hi, Bilal:

Actually, when I was told that the easyio.lib, easyio.lfp and cvi.chw files could not be found at the first time, I copied them into the bin folder of CVI 7.0. And that's why you can't find the error messages about the files. However, the problem is still there with the error messages I show you.

Thank you.

Marlon
0 Kudos
Message 7 of 8
(3,960 Views)
Make sure you are loading the lfp in the project. If you go into library >> customize, you can add the lfp file as one of the user libraries.
it seems that is having trouble finding the import library and this usually happens when the instrument is not loaded in the project.

Bilal
Bilal Durrani
NI
0 Kudos
Message 8 of 8
(3,960 Views)