LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wait on active event hangs

Hi,
I have a program that used the wait on activeX event vi.  The program executes, but when it gets to the wait on active x event vi, it hangs.  I tried to change the timeout time, but it did not work.  No matter what value I create for the timeout time, after 10 seconds the vi hangs.  Is there any way possible to tell the vi not to use the timeout command?  I already tried to set the value to -1, but that also did not work.  Might it be possible to create a structure that would tell the wait on activex event vi to run again if the timeout were true and flush the current timeout value?  Since the wait on activex event vi is password protected, I can't see how the timeout value is passed or used. 
0 Kudos
Message 1 of 18
(4,820 Views)
Hi Shivels,

Would it be possible to post the portion of the code that is causing the program to hang. I would like to take a look at exactly what the vi seems to be doing. Thanks!

Best regards,

Steven C
0 Kudos
Message 2 of 18
(4,786 Views)
Ok, here is a segment of code.  It seems that the wait on activex event vi inside the wait for voice event code is always timed out.  I can't seem to change the timeout value to anything.  No matter what I create as a constant, it still times out.  I am just trying to get it not to time out at all.
0 Kudos
Message 3 of 18
(4,787 Views)
Hi Shivels,

When I open the vi, it indicates that I am missing several subvis. Could you please let me know if you are using any particular non-standard package that may contain these vis? Also could you please let me know what version of LabVIEW you are using? Thanks!

Best regards,

Steven
0 Kudos
Message 4 of 18
(4,754 Views)
Here are the sub vi's that I am using.  They are the voice recongnition vi's from ni.com  The porgram will run, but won't recongnize voice commands, unless you install these files:
 
1.  Microsoft Agent core components (395 KB exe)
2.  Microsoft® Speech Recognition Engine (6 MB exe)
 
They can be found at:
 
 
I believe the program will run without the microsoft componets installed.  I am using LabVIEW 8.0.
0 Kudos
Message 5 of 18
(4,754 Views)
I can't attach the sub vi's because they are in a msagent.exe file.  Here is the link to download them from:
 
 
Thanks
0 Kudos
Message 6 of 18
(4,752 Views)
Hi Shivels,

Thanks for the info. Just for your information this type of behavior has been seen before in LabVIEW 8.0. The issue with the Wait for ActiveX Event.vi from this particular link was reported to R&D (#3TSMD6KZ) for further investigation. A possible workaround is instead of using Wait for ActiveX Event.vi use Register for ActiveX Event Callback. This however would require some rewriting of the code. The Attached Event Callback IE.zip file shows the idea but using IE. I hope it helps. Have a nice day!

Best regards,

Steven C
0 Kudos
Message 7 of 18
(4,725 Views)
Thank you very much.  I was trying to thikn of away around it, but was stuck.  Thanks again
0 Kudos
Message 8 of 18
(4,710 Views)
I tried to rewrite the code to accept an MSAgent voice, but I can't seem to get Obtain Notifer to correctly pass to the Wait on ActiveX Event_New.  The original Wait for voice event, used the ActiveX event Q output to pass into Wait on ActiveX event.  Any ideas on what I am doing wrong?
0 Kudos
Message 9 of 18
(4,693 Views)
Hi Shivels

Could you please provide some additional details on the behavior you see when you are not able to get the obtain notifier to pass to the wait on activeX event_new? In other words, will the program run? Does this give you an error code? What is happening in highlight execution mode? Please let me know. Thanks!

Best regards,

Steven C
0 Kudos
Message 10 of 18
(4,677 Views)