LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Media player doesnt play on calling the subvi

Hi All,

 

I am calling a subvi from my main program, the subvi consists of a progress bar and a Media player, the sub vi will automatically execute when its called and the progress bar will start showing the progress, but the problem I am facing is that the Media player doesn't start . I want Media player to start and show the video when the sub vi is called.Is there a way to do that.Please let me know. attached is screenshot of the subvi.

 

Thanks,

 

Ankit

0 Kudos
Message 1 of 6
(2,953 Views)

Hello Ankit,

                  I think the problem is of disabling the re-entrant execution.You must go to File>>VI properties>>Execution then enable reentrant execution.The problem can be solved.

 

Thanx.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Message 2 of 6
(2,943 Views)

Hi,

 

I have enabled the reentrant execution but still the problem remain, also i modify my sub vi a bit I want it to continue playing , but still i am getting the same problem. media player show its ready but doent play the video.


@danil33 wrote:

Hello Ankit,

                  I think the problem is of disabling the re-entrant execution.You must go to File>>VI properties>>Execution then enable reentrant execution.The problem can be solved.

 

Thanx.




0 Kudos
Message 3 of 6
(2,929 Views)

Hello AnkitG,

 

you have to consider a fiew points to get the player showing your video file.

 

  1. You don't have to open and close the refnum of the WMP- container, just wire the WMP- terminal to the property node
  2. Use the property browser of the WMP ActiveX container to set the WMP to autostart, then the video will be started immediately after setting the URL property
  3. Don't set the URL cyclic, just once
  4. Perhaps it helps to set the execution system of your SubVI to "User Interface"

Hope, this helps,

 

 

Greets, Dave
0 Kudos
Message 4 of 6
(2,923 Views)

Are the video file in the same folder as the vi? Else the path is incorrect and nothing can be played. Try with a full/fixed path or use a "Does file exist"-check.

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 6
(2,921 Views)

This example works on my computer. Try it.

 

 

Greets, Dave
0 Kudos
Message 6 of 6
(2,915 Views)