LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Media Player runs when VI Is opened

I have a VI that now runs nicely to play an audio file. The only disturbing feature is that when I open this VI (but it is not running), the player launches. I though I could fix by putting in a subVI, in a case that required a true input....Wrong, crazy thing still launches.

In the actual VI, I close the player properly (player says closed) so not sure what else to try.
0 Kudos
Message 1 of 2
(2,292 Views)
> I have a VI that now runs nicely to play an audio file. The only
> disturbing feature is that when I open this VI (but it is not
> running), the player launches. I though I could fix by putting in a
> subVI, in a case that required a true input....Wrong, crazy thing
> still launches.
>

When the VI is loaded, it loads and creates the ActiveX Control with the
state that it was in when the VI was saved. It sounds like the ActiveX
control is always created visible or some such thing. You could make
the creation of the control happen in a subVI that is dynamically loaded
and displayed. This is really just transferring the problem to the
subVI, but if you want to edit the main panel without this in your way,
that may be a decent solution. Otherwis
e, you can perhaps look for
another player that play more nicely.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,292 Views)