04-30-2009 12:05 AM
hi there
This is a VI i set up for viewing 4 video simultaneously and doing other small manipulation.i tried running it but the systtem hangs up and goes to restart mode after playing the videos for sometime.i am just a normal labview user so the code is not optimized at all.Please find a solution for it and give me suggestions to optimise it too..
PS: i have used a Movie player pro active X component.
regards
sankar
06-24-2009 12:06 PM
You have inserted the Active X objects into the front panel; however, you do not make an Automation Open Call to the Active X object.
Also, I do not see an Automation Close Call upon stopping the VI. If you do not properly open and close the Active X components, LabVIEW will try and maintain handles to the objects. This can sometimes result in the LabVIEW application "hanging." Also, you should try using shift registers to pass the refnums through the while loop and into the respective states.
I have attached a small example to show you what I mean.
06-24-2009 01:20 PM
CCornish wrote:You have inserted the Active X objects into the front panel; however, you do not make an Automation Open Call to the Active X object.
Also, I do not see an Automation Close Call upon stopping the VI. If you do not properly open and close the Active X components, LabVIEW will try and maintain handles to the objects. This can sometimes result in the LabVIEW application "hanging." Also, you should try using shift registers to pass the refnums through the while loop and into the respective states.
I have attached a small example to show you what I mean.
Wrong! When you place an ActiveX control on the front panel there is no need to do an Automation Open nor Automation Close. Automation Open and Close are needed for ActiveX objects that cannot be placed on the front panel but can be created dynamically. Look through the NI examples: compare "ActiveX Event Callback for IE.vi" with "ActiveX Event Callback for Excel.vi" in the example finder to see the difference.