LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

media player activex control black screen on second run

Hi

 

I am calling a subvi that contains 2 media player controls that are sync'd together, one playing video and one playing audio as the audio is stored in a separate file. The first time the main vi calls the subvi, the video plays with no problem. The second time the main vi calls the subvi, the video plays but with a black screen (still plays through the length of the file just cant see anything).

 

After the main VI is closed and re-run, it can then call the subvi once correctly, then once again the next time the subvi is run, the screen is black .. and so on.

 

When just running the subvi on its own (not called by another VI), this problem does not occur. I am closing the references to the players and using the request deallocation function in the subvi, but still no joy.

 

any ideas?

0 Kudos
Message 1 of 4
(3,667 Views)

well, the first idea that pops up is that your question seems related to LabView and not CVI. Is it correct?

 

Wolfgang

0 Kudos
Message 2 of 4
(3,659 Views)
Yes that is correct. It was late in the afternoon when i posted this question, my apologies.
0 Kudos
Message 3 of 4
(3,653 Views)

Hi Mark,

 

Can you post the VIs so that we can see how you have it programmed?  Does writing a smaller main and sub vi that only plays the video and audio show the same problem?

0 Kudos
Message 4 of 4
(3,640 Views)