取消
显示结果 
搜索替代 
您的意思是: 

Can't reopen a activex player I a popup.

已解决!
转到解答

Hi

 

I have a popup that plays a video file. First time I open it works, but not the second time.

I keep the refrerence in a shift register.

 

If I never close the popup I don't get the problem. I think labview is messing with the reference when the window is closed.

0 项奖励
1 条消息(共 6 条)
3,521 次查看

VideoPopup.jpg

0 项奖励
2 条消息(共 6 条)
3,511 次查看

Run state and init are shifted in the picture

0 项奖励
3 条消息(共 6 条)
3,509 次查看
解答
已被主题作者 magnuslilliehook 接受

Hi Magnus

 

The behavior I get is that the video plays fine the first run, in subsequent runs it still plays, but no image is shown. I think this is because as you call the VI as a subVI it is loaded in memory at loadtime and doesn't leave memory until the main VI is closed and this somehow messes up the Media Player control. I rewrote your example to call the VI dynamically and that worked like you want it to run. I'm attaching my example. I wrote it so it would function like your example, there are some  things I would do differently, chief among those is to change the "Wait until Done" setting on the Run method to false so you don't lock the front panel of the main VI while the clip is running.

 

Best Regards

 

David

NISW

 

PS. The VIs are in version 2010, let me know if you need them in another version

0 项奖励
4 条消息(共 6 条)
3,474 次查看

 

Your solution works perfectly.

Thanks for your help=)

0 项奖励
5 条消息(共 6 条)
3,460 次查看

no problem, happy to help

 

Best Regards

 

David

0 项奖励
6 条消息(共 6 条)
3,454 次查看