LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem accessing CVI via Automation

Environment:
Windows 2000 Pro SP 4 & all the latest updates
LabWindows/CVI 6.0
Visual Basic 6.0

Problem:
I have a VB6 app that accesses CVI via automation and automatically
generates some C code. This app has run fine on my desktop for over a
year.

I am now attempting to run the app on a PC that has had a fresh
install of all of the above software after re-formatting the HD. Now
the VB app can't create the CVI.Application object. In VB, when I
call 'CreateObject("CVI.Application")', I always get an error message
"ActiveX component can't create object".

First I noticed a potential problem in the Registry. In the key
"HKEY_CLASSES_ROOT.CLSID.{5AB151E3-414A-11D0-A62C-0020AF16F78E}" (the
CVI.Application CLSID) the "LocalServer" value
was set to "C:\Program
Files\National Instruments\MeasurementStudio\\cvi\cvi.exe /Automation"
(note the double-slash after MeasurementStudio). This must have
happened during installation. I fixed this but still can't get things
to work.

I've tried uninstalling/reinstalling CVI, but no dice.

Since I set up the machine that works over a year ago, I'm afraid I
forgot to note some trick or tweak necessary to use CVI via
automation. I tend to assume a permissions problem but I get the same
error logged in as Adminstrator.

Can anyone offer any suggestions? Should I be able to use CVI via
automation 'out-of-the-box' with no tweaks?

---
Bob
0 Kudos
Message 1 of 1
(2,510 Views)