LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Support for ni-Daqmx in Labwin/CVI 8.0.1

Hi,
I have a problem compiling my project. On another PC it works fine. The 2 PC are +/- identical. The problem I have are undefined references. All undefined references start with '_DAQmx' . I am indeed using DAQmx functions in my program.

FYI: I'm using LabWindows/CVI 8.0.1 and MAX 4.2.1.3001

I would like to solve those undefined references. While searching for the problem I encountered two things:
1) in Labwindows/CVI under menu 'library' the 'NI-DAQmx' and 'Traditional NI-DAQ' are disabled.
2) in LabWindows/CVI. When clicking 'Tools->Create/Edit DAQmx Task...' I get the following message: 'This feature requires LabWindows/CVi support for NI-DAQmx. Please install LabWindows/CVI support for NI-DAQmx from the NI device driver CD or check your installation.' I have installed all the drivers from those CD's but I still get the same error.

Thank you for helping me.

Kristrio
0 Kudos
Message 1 of 9
(5,332 Views)
Hi Kristrio,

Does the machine that doesn't work fine have multiple version of LabWindows/CVI installed on it? The reason I ask is that the behavior you are describing falls directly into the issue of installing DAQ support for multiple versions of LabWindows/CVI. Check out the
Installing DAQ Support for Multiple Versions of LabWindows/CVI KnowledgeBase for help on this issue.

Let me know if this helps!

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 9
(5,310 Views)
Jonathan,

I don't have any other version of LabWindows/CVI installed on this computer, and I never installed previous version of Labwindows/CVI on this PC. (Is there a way to check this?)

But your link gave me some information. I think there is a installation problem. Following your link, under 'option 1' there is an explanation on how to add the NI-DAQMX instrument to a project. When searching for the file mentionned 'NIDAQmx.lfp' I couldn't find it on this PC. Therefore I was trying to reinstall the DAQMX driver which I found on the first out of three 'Device driver CDs' delivered with labwindows/CVI 8.0.1. I tried to install D:\products\daq\mx\CVIsupport\cviInstaller.msi but I got an error: 'there is an newer version installed and that I should uninstall it before installing this version'.

What can I do?
Thank you for the help.
Kristrio
0 Kudos
Message 3 of 9
(5,281 Views)
Jonathan,
I managed to solv the problem.
From your link, under 'option 3' I did what is written under 'DAQmx'. I copied the files from the other PC I had. When starting labwinCVI I didn't got any linking error, also the DAQmx functionality under tools and library works.

I still don't know what happened.
If you can give me some explanation on what happened it would be nice...
Thanks,
Kristrio
0 Kudos
Message 4 of 9
(5,267 Views)
Hi Kristio,

I find that very odd if you didn't have any versions of CVI or DAQ installed on that new PC and you ran into this problem.  I assume that you CVI first and then tried to install the device drivers? Instead of trying to install directly via the msi, did you try repairing the DAQ installer and making sure to include the "LabWindows/CVI Support" item in the installer feature tree?

The issue you are describing really only makes sense if you had previous versions of CVI and DAQ installed.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 5 of 9
(5,262 Views)

I have the same problem. In CVI ni-daqmx doesn't show up in under libraries. I can find nidaqmx.lib and nidaqmx.h but not nidaqmx.lfp.  When I go to install from the drivers it says a newer version exists. I have never had anything installed on this laptop before. I think the problem might be that I installed LabView first which has the newer version of nidaqmx. Then when I installed LabWindows 9.0 it saw the higher version of nidaqmx and so did not install the lfp file. I am hesitant to uninstall everything and re-install doing CVI first. I think all that I need is the nidaqmx.lfp file but I can't find just that anywhere. I probably have an older version on another machine but I don't know if it would be compatible. Another option is to install CVI as a trial version on a clean machine and copy the lfp file from there when it is done.

0 Kudos
Message 6 of 9
(4,680 Views)

I think the problem in your case is that you installed NI-DAQ before installing CVI. It is the NI-DAQ installer that is supposed to install the CVI support files but, by default, it only selects that component for installation if it detects that CVI is already installed.

 

All you should need to do is to rerun your NI-DAQ installer and make sure that the CVI support feature is selected.

 

Luis

0 Kudos
Message 7 of 9
(4,672 Views)

That was the first thing that I tried and that is when I got the message that there was already a higher version installed so it wouldn't do it. I ended up doing what I proposed and loaded it on another machine as a trial install then copied the .lfp file over and that worked.

0 Kudos
Message 8 of 9
(4,667 Views)

You mean, a newer version of NI-DAQ was already installed, right? Yes, you would have to re-run the installer that corresponds to the highest version of NI-DAQ that you already have installed. So, if you have NI-DAQ 9.3 installed, for example, then you have to re-run the NI-DAQ 9.3 installer.

 

If things are working for you after copying the .lfp manually, then that's okay. But keep in mind that there are other CVI-related components that NI-DAQ installs (for example, the DAQmx IO controls) that might still be missing, without a proper installation.

 

Luis

0 Kudos
Message 9 of 9
(4,665 Views)