LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Media Player control for brightness, volume and play state.

Hello

 

I have some problems while configuring the windows media player to play a avi video. The first thing is how do you set the size of the windows media player so when play the video the size won't change and the video size will follow the size of windows media player? Second is how do you hide the state of the windows media player such as pause, play, stop, volume so  windows media player will only play the video without the play things? And third is how do you configure the brightness, balance and the volume with the buttons because i have try to connect it but can't.

 

I upload the vi to help referencing of what i'm talking about.

 

Thanks

0 Kudos
Message 1 of 7
(6,070 Views)

Hello ican

 

First, can I please ask which versions of Windows, Windows Media Player and LabVIEW that you are using?  There is an NI Developer Zone which focuses on controlling Windows Media Player with ActiveX.  Please see this link:

Windows Media Player 10 ActiveX Control

 

As an alternative, have you considered using QuickTime?  This may be more user friendly in helping you achieve your goals.  Please let me know if I can be further assistance to you on this issue.

 

Sincerely,

 

Greg S.

Sincerely,

Greg S.
0 Kudos
Message 2 of 7
(6,053 Views)

how do you check the version of labview and the windows media player that i used in labview? can quicktime control the brightness and volume by the button?

 

thanks

0 Kudos
Message 3 of 7
(6,041 Views)

oh yeah. btw can you solve this problem? i have another problem about tcp ip

 

http://forums.ni.com/t5/LabVIEW/TCP-IP-bytes-and-subset-of-bytes-for-server-and-clients/m-p/1537422#...

 

thanks

0 Kudos
Message 4 of 7
(6,040 Views)

Hello ican

 

I hope you are well!  Here is Microsoft's Knowledge Base on how to check your version number of Windows Media Player.

http://support.microsoft.com/kb/190990

 

Additionally, you can see your LabVIEW version number by either going to the dropdown menu: Help --> About LabVIEW.  This will display your LabVIEW version number.  You can also go to Start --> All Programs --> National Instruments --> NI License Manager to see the version numbers of all National Instruments products.  Which operating system are you using?

 

Here is the link to use Quicktime in LabVIEW.  I suggest you experiment with this as well.  You might decide it is easier to deal with as it was recommended to me.

Use ActiveX to play Quicktime movie in LabVIEW

 

The other topic you made reference to will be assigned to one of our engineers so rest assured that issue will be addressed!

 

Thank you very much for choosing National Instruments!

 

Sincerely,

 

Greg S.

Sincerely,

Greg S.
0 Kudos
Message 5 of 7
(6,030 Views)

Hello

 

My windows media player version is 12 and LabView is 10. I have tried the link that you give but the thing is my requirement is to use windows media player and the requirement itself must be able to control the volume and the brightness. I have tried to control the volume by slider but i want to change it to buttons and i don't know how to control the balance of the windows media player. can you help me? Oh btw can you solve this problem for me. i'm facing some problems about tcp ip server and client connection http://forums.ni.com/t5/LabVIEW/TCP-IP-bytes-and-subset-of-bytes-for-server-and-clients/m-p/1537422#...

 

Thanks

0 Kudos
Message 6 of 7
(6,026 Views)

Hello ican

 

From observing your VI, one concern is that you are trying to pass a Boolean (binary) value into a increment or decrement function.  This is what is creating a broken wire as it is a conflicting data type.  I recommend creating a function where your Boolean input cause the value of the brightness to either increment or decrement through use of a Boolean truth as an actuator.  You can observe this kind of functionality on of the LabVIEW examples.  First, go to Help --> Find Examples.  Click on the "Search" tab and type in "mechanical" and press search.  Six results will show.  Please open the third example "Mechanical Action of Booleans.vi"  Here you can observe the different functions of each "Mechanical Action" setting for buttons.  I believe the mechanical action you will be most interested in is "latch when released."  Additionally, you can observe the block diagram of this VI in order to see how to set up increment and decrement functions using Boolean buttons.  Let me know what you are able to come up with and we can discuss this issue further.  Do you need any assistance with this?  I am happy to help!

 

Thank you very much for your effort and patience.  With respect to your TCP/IP issue, this should be assigned to another engineer shortly.  Thanks again.

 

Sincerely,

 

Greg S.

 

P.S..  For your interest, you may enjoy some of the free online resources we provide.

Free Online NI LabVIEW Training for Students and Educators in English - Part 1

Free Online NI LabVIEW Training for Students and Educators in English - Part 2

LabVIEW (free) Online Training Resources

Sincerely,

Greg S.
0 Kudos
Message 7 of 7
(6,008 Views)