12-02-2010 04:44 AM
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.
Solved! Go to Solution.
12-02-2010 08:19 AM
12-02-2010 08:23 AM
Run state and init are shifted in the picture
12-06-2010 08:46 AM - edited 12-06-2010 08:47 AM
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
12-08-2010 06:03 AM
Your solution works perfectly.
Thanks for your help=)
12-08-2010 07:08 AM
no problem, happy to help
Best Regards
David