LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't run application from within CVI IDE

Hello,

 

I observe a quite strange behaviour of CVI IDE I've installed (CVI 7.1):

  - Open "DigPulseTrain-Cont" example

  - Compile and Build are OK

  - Run --> Start --> an Error appears (attached screenshots) - DAQmx lib crashes ????

  - If I run the same program BUT from .exe file (*_dbg.exe or .exe - never mind) - all is OK.

 

I've reinstalled a full NI package (CVI, DaqMx driver....)  a couple of time (by MsiBlast) - but it doesn't help. I've replaced NIDAQ card by another one - the same result.

 

I'm using CVI from a long time but I've never seen the problem like this one.

 

Any suggestions .... ?????

 

Thanks in advance

 

Petko G.

Download All
0 Kudos
Message 1 of 22
(4,713 Views)

Dear Petko,

 

When you were reinstalling the NI software, what versions of DAQmx did you use? And what model of DAQ card are you using?

Could you also tell me, if the card actually generates the pulse train when you run the exe or you just don't see the error?

Please create a report from Measurement and Automation Explorer (File->Create Report...) and attach it here.

 

 

Regards,

0 Kudos
Message 2 of 22
(4,629 Views)

Hello Mateusz,

 

Please find attached MAX report.

 

About DAQmx:

I use rev. 8.1 with PCI6221. I've installed it a year ago and it has worked well. A week ago I updated DAQmx with rev.9.0.2 after what I faced two problems:

  - MAX DAQ Test panel didn't start;

  - All programs, required some hardware didn't run from within CVI IDE. If run the same program from .exe files - all is OK ( I checked that by pulse train example and own CAN communication program).

 

I came back to rev. 8.1 and MAX rev.4.5.1 (supplied with NICAN 2.6.2 ) . After what I've succeded to fix the first problem ( manuly deleting nidmfpan.exe  - MsiBlast doesn't remove it ) but the second one is still present.

 

I suppose there are some garbage files from DAQmx 9.0.2 distribution but not removed by MsiBlast.

 

Petko G.

0 Kudos
Message 3 of 22
(4,622 Views)

Dear Petko,

 

From http://ftp.ni.com/support/softlib/multifunction_daq/nidaqmx/9.0.2/readme.html#OS it seems, that there should be no conflict of drivers even if you were using DAQmx 9.0.2. The only problem could be LabVIEW, which should be at least 8.2.x. This might have caused some installation errors. The simplest solution would be to install everything from the scratch on a clean system.

But first, please try to just suppress the Runtime Fatal-Error dialog by navigating to Run>>Break On menu and deselecting "library errors" and see if it works.

You could also try the "repair" option of DAQmx installation.

 

 

Regards,

0 Kudos
Message 4 of 22
(4,563 Views)

Hello Mateusz,

 

Of course the new install on formated drive will fix the problem but I want to avoid this.

 

Run>>Debug>>Library Errors OFF doesn't suppress the error.  The error appears each time NI hardware is used - it doesn't relate only to DAQ card.

 

I've reinstalled all NI parts 3 times (using MsiBlast). Even more - I've manually deleted all ni*.dll and cvi*.* files  - but this doesn't help.

 

Is there any files (.dll, .lib, sys ... ) common to all installed NI hardware under CVI ??? 


Is it possible Windows Installer to generate the problem ? ( I use WI rev.4.5). 

 

By the way, "DigPulseTrain-Cont" works fine under LabView installed on my PC. So the problem relates only to CVI.

 

Regards

0 Kudos
Message 5 of 22
(4,558 Views)

Dear Petko,

 

I don't think Windows Installer can be generating the problem but you can try running the Windows Installer Cleanup Utility. The same applies to shared files installed for NI hardware - if you delete all NI software they should all be gone.


When you were using MSIBlast and unistalling NI Software did you also delete all registry keys connected to NI?

 

If not, try this procedure:
1) Uninstall all NI Software
2) Unplug all hardware and reboot
3) Empty all temporary folders, delete all NI related folders from Program Files
4) Open up your registry (Start >> Run and type "regedit")
5) Export your current registry settings by selecting File >> Export and selecting ALL for the Export range.
6) Then remove the following registry components from the Windows Registry:
        HKEY_CURRENT_USER\Software\National Instruments Delete the entire tree!
        HKEY_LOCAL_MACHINE\Software\National Instruments Delete the entire tree!
7) Run Windows Installer Cleanup Utility (google for MSCIUU2.EXE)
😎 Reboot
9) Reinstall NI Software

 

Remember also to do all of it WITHOUT any NI hardware connected.

 

Regards,

0 Kudos
Message 6 of 22
(4,520 Views)

Dear Petko,

 

did you try the above procedure? Did it help?

 

 

Regards,

0 Kudos
Message 7 of 22
(4,419 Views)

Hello Mateusz,

 

Yes, I've tried it but the result is the same.

 

Even more - on other two PC, where a real test programs are running we observe  the same problem. The first installation of CVI works well, but after some period of time - only .exe is able to run. We've checked for viruses - no one. The next presumption is to check if any other application on PC is in collision with CVI ? 

 

Regards 

 

P.S.. Happy New Year. My best wishes for healthy and lucky 2011.  

0 Kudos
Message 8 of 22
(4,408 Views)

Dear Petko,

you say that the problem appears after some time. Could specify what do you mean by that? What changes during that time? Windows Updates, driver updates etc.? How long does it actually work?

Are you running the applications in Debug or Release mode? Does the problem remain if you switch from one to another?


Happy New Year!

 

Regards,

0 Kudos
Message 9 of 22
(4,365 Views)

Hello Mateusz,

 

Till now we have 3 PCs with the same problem - after a few months (1...5) application run through CVI IDE crashes. The common one for PCs are CPU + motherboard + WinXP SP3 (see attached SysytemInfo).

 

The problem rerlates to PCI or USB Hardware runing through CVI IDE (NI-DAQ4220 - see attached ErrorNIDAQ, Agilent34405a - see attached ErrorAg34405a). On the both PCs with PCI-NIDAQ installed - the same fault address is pointed 001B:7C90E4DF(I think this is an address ?). Can this help us to find root cause ?

 

I've checked COM ports - they works well even through CVI IDE.

 

The problem appears for both debug and release modes. But .exe are running well (I mean Ctrl+F5 run).

 

Regards

 

 

 

Download All
0 Kudos
Message 10 of 22
(4,326 Views)