LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Suggestion for the cause of error 1189

Hello,
 
   Does anyone know of a possible cause of error 1189. So far I am aware that 1189 is a Windows connectivity error. My application invloved calling numerous sub-vi's and using the various nodes etc for application control to make sure the front panels are visible and close them when the vi ends.
 
Regards,
 
Kaspar
Regards,


Kaspar
0 Kudos
Message 1 of 7
(3,509 Views)

Hello Kaspar,

I found the error code 1189 in the online version of LabVIEW 8.5 Help by searching ni.com/support.  Maybe you have found this already, but here is the link that gives the full error message:

http://zone.ni.com/reference/en-XX/help/371361D-01/lverror/activex_error_codes/

Sarah
Applications Engineering
National Instruments

Sarah JS

Applications Engineering

National Instruments
Message 2 of 7
(3,488 Views)

Hello,

  Here is the explanation for 1189

1189 You cannot register the same event on an object multiple times.

  I am able to consistently reproduce the error, the second time thru the error appears. I have looked thru the event structures, etc and I do not see any duplicates. I ideas on how to find the object and/or event that causes the error?

 

Regards,

 

Kaspar

Regards,


Kaspar
0 Kudos
Message 3 of 7
(3,470 Views)
Hello Kaspar,

Since the error occurs only after you run the VI a second time, it is likely that there are some references that weren't properly closed before the VI finishes execution. Please ensure that you unregister any events using the Unregister For Event VI (in the Functions Palette->Connectivity->.NET->Unregister For Event) before the VI finishes execution. Please also ensure that any related object references (connected as inputs to the Register Event Callback VI) are properly closed using the Close Reference VI (Functions Palette->Programming->Application Control->Close Reference) before the VI finishes execution. To make sure that you find all of the Register Event Callback functions in your application, you can use LabVIEW's Find and Replace tool to find any instances of a given function.

To use the Find and Replace tool go to Edit->Find & Replace. Then select the object that you would like to find in your application. You can do this by clicking on the box next to "Select Object", selecting Functions, and then choosing the function you want to search for (for Register Event Callback, select Connectivity->.NET->Register Event Callback). Click Find. All instances of the function being searched for in your application should be listed. You can double-click an item in the list and it will show you where that specific instance is located.

I hope that helps!
Brock
Applications Engineering
National Instruments
Message 4 of 7
(3,454 Views)

Hi,

For me also same problem existing. I tried whatever u told, but  it's not working for all the time, can u tell me how to solve.

 

Regards 

Vishnu 

0 Kudos
Message 5 of 7
(3,057 Views)

Hello Vishnu,

 

This thread is over 4 years old so the original authors are probably no longer monitoring it. Please feel free to make a new forum post with your question.

 

Best Regards,

Ian K.
Software Developer
Data Ahead AG
Message 6 of 7
(3,041 Views)

Hello,

I have tried to open HTML page by using VI, if I open same page for every 5 sec in while loop it will throw an error, once if u press continue then it will open, otherwise it will wait for user response. I need to open same page for every 5 sec with out user interaction.

 

Regards

Vishnu 

0 Kudos
Message 7 of 7
(3,034 Views)