LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get error 2147221164?

Solved!
Go to solution

The app was working, then they moved the lab and the app doesn't work anymore.  My job: fix it. 

 

The local IT Pro has touched the computer, but theoretically didn't do anything that would effect this. I didn't write the code (the author retired) but the basic problem appears to be that it isn't seening the IOTech Personal Daq 3000s.  DaqView, the IOTech app works fine, but nothing in LabView can see them, including numerous example vi's from the daq vendor.  I've tried two things found on the forum

 

  1. delete and replace the Automation Open.vi
  2. unregister then reregister the *.ocx files

but neither of these fixed the problem.  The block diagram where the error occurs:

Automation Open.jpg

This is in one of the vi's provided by IOTech (Acquisition Initialize.vi).  Probes on the wire from the Refnum constant gave a value of zero.  My understanding is that it's only there to provide a type so this may be correct (?).  The constant has DAQCOMLib.IDaqSystem selected in the ActiveX class, which appears to be correct.  The Refnum out from Automation Open was also zero, which I assume is wrong.

No error in, but the error out wire shows the 2147221164 code and "Class not registered...".

 

Again, in theory, nobody has touched this code directly.  I'm pretty much out of ideas.  Suggestions?

 

thx!

John

"Praise the Lord and pass the ammunition."- Lt. (j.g.) Howell Forgy, Sky Pilot, USS New Orleans, 12/7/41
0 Kudos
Message 1 of 11
(6,030 Views)

Hi,

 

I would have some additional questions:

 

1.) Are you using the Report Generation Toolkit for Microsoft Office in your application? Do you acces Microsoft Office over ActiveX?

 

2.) Can you post a screenshot of the error?

 

3.) Which LabVIEW and Windows version are you using?

 

Best regards,

 

Michael

0 Kudos
Message 2 of 11
(6,019 Views)

1)  As far as I know, the Report Generation Toolkit isn't being used.  I'll check with the user when I get to work.

 

2)  A screen shot may be possible, but difficult.  The computer/test set is an isolated setup, but I'll see what I can do.  Is there something in particular you're looking for?

 

3)  Sorry, meant to add this, but it was late....

     Win XP Pro Sp3

     LabView 2009 Pro Dev Sys, Sp1

     LabvView RT 9.0.1

 

thx,

 

John

"Praise the Lord and pass the ammunition."- Lt. (j.g.) Howell Forgy, Sky Pilot, USS New Orleans, 12/7/41
0 Kudos
Message 3 of 11
(6,012 Views)

The Report Generation Toolkit is not being used in the vi.

 

I can't really get a screen shot, but can tell you exactly what the probe and the Error Out indicator say.

The probe on the Error out terminal of Automation Open.vi (which appears on the Block Diagram of Acquisition Initialize.vi):

 

Status: True

Code: 2147221164

Source: Class not registered in Acquistion Initialize.vi -> JM_Test.vi

This error code is undefined.  No one has provided a description for this code, or you might have wired a number that is not an error code input.

 

The Error Out indicator on the Front Panel of Acquisition Initialize.vi says the same thing, except that the last line (This error code is ......) does not appear.

 

It seems odd that Automation Open would provide a Code and Source, and then say it's undefined.

 

I also tried copying the entire Block Diagram of Acquisition Initialize into a new, blank vi and using that version.  Didn't help.

 

thx,

 

John

 

 

John

"Praise the Lord and pass the ammunition."- Lt. (j.g.) Howell Forgy, Sky Pilot, USS New Orleans, 12/7/41
0 Kudos
Message 4 of 11
(5,994 Views)

Hey HK45acp,

 

Do you have Microsoft Word and Excel installed on this computer?  Sometimes not having them can cause this error. 

Is the administrator on the computer trying to run this VI or is it another user?

 

Regards,

Kira T

0 Kudos
Message 5 of 11
(5,990 Views)

Microsoft Office 2007, including Excel and Word, is installed on this machine.

 

The user does not have Admin privileges (never has), and it originally worked for her.  I log in as an Admin since that was required to do the registration.  The failure symptoms are the same either way.

 

thx,

John

"Praise the Lord and pass the ammunition."- Lt. (j.g.) Howell Forgy, Sky Pilot, USS New Orleans, 12/7/41
0 Kudos
Message 6 of 11
(5,988 Views)

@HK45acp wrote:

The Report Generation Toolkit is not being used in the vi.

 

I can't really get a screen shot, but can tell you exactly what the probe and the Error Out indicator say.

The probe on the Error out terminal of Automation Open.vi (which appears on the Block Diagram of Acquisition Initialize.vi):

 

Status: True

Code: 2147221164

Source: Class not registered in Acquistion Initialize.vi -> JM_Test.vi

This error code is undefined.  No one has provided a description for this code, or you might have wired a number that is not an error code input.

 

The Error Out indicator on the Front Panel of Acquisition Initialize.vi says the same thing, except that the last line (This error code is ......) does not appear.

 

It seems odd that Automation Open would provide a Code and Source, and then say it's undefined.

 

thx,

 

John

 


Undefined errors in LV are fairly common.  Most are just general errors and give no information.  This error may have to do with your Active X class.  Is it still pointing to MS Word (Or perhaps your using Excel. I don't recall)?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 7 of 11
(5,983 Views)

The Refnum constant has DAQCOMLib.IDaqSystem selected in the ActiveX class.  As far as I can tell, the application doesn't point to Excel, Word, or any other MS product.  Test data is saved to a generic ASCII file.

John

"Praise the Lord and pass the ammunition."- Lt. (j.g.) Howell Forgy, Sky Pilot, USS New Orleans, 12/7/41
0 Kudos
Message 8 of 11
(5,969 Views)

Yes, I saw that in your original post.  Sorry.Smiley Sad

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 9 of 11
(5,957 Views)

Hey John,

 

This may help to solve your problem.

 

http://digital.ni.com/public.nsf/allkb/9ACB175F6DE483AE86256B2200776B8B?OpenDocument

 

It helps to solve problems that occur when you run your executable while not the administrator. Good luck!

Regards,

Kira T

0 Kudos
Message 10 of 11
(5,949 Views)