06-19-2011 07:23 AM
hi all
i use windows media player 11 and labview 2010 .
i need play a movie in labview and get snapshot from it.
i can play movie.
i use invoke node but it save only black screen.
please guide me
with regard
06-20-2011 03:17 PM
Hi poorabedi,
Can you post the VI you are running that performs this action? I don't know what you mean when you say you use an Invoke Node, are you using the FP.Get Image method? Also, could you better describe what you are trying to do? That would help me to point you in the right direction.
Regards,
Peter W.
06-21-2011 01:54 AM
hi Peter and thanks for your reply
i attached my code and the saved picture.
i need to save the picture is in screen but only a black screen is saved.
what's your suggestion?
06-21-2011 01:57 AM
and the saved picture
06-21-2011 05:38 PM
Hi poorabedi,
I tried to look into the Write JPEG File.vi and it asked for a password. Could you personal message that to me so I can look through all of the code?
Regards,
Peter W.
06-21-2011 06:23 PM
Peter W wrote:
I tried to look into the Write JPEG File.vi and it asked for a password. Could you personal message that to me so I can look through all of the code?
Write to JPEG file is NI-supplied, so I suppose you'd have a better chance of getting the password than the OP.
06-22-2011 04:05 AM
hi Peter
the Write JPEG File.vi is used from picture palete. i haven't any password for it.
06-22-2011 01:07 PM
Hi poorabedi,
I've been playing around with you VI a lot and I think the problem is that the ActiveX Container class Invoke Node just isn't meant to be used to capture video screen shots. The method options of the Invoke Node don't change depending on what is inside the container, so I would imagine that the Get Image method is designed for the Picture Box and possibly other controls but not for video capture. However in my searching for answers I did stumble across a free image toolkit that uses different methods to capture the front panel screen. I can't guarantee it will work for your application since it isn't an official NI supported product, but you can download it from the website below and try it out to see if it provides what you are looking for.
Regards,
Peter W.
06-25-2011 12:42 AM
hi Peter
i saw your link. it's looklike visin toolkit in labview.
i try to use it but it's not suitable for Windows Media Player.
i need save picture from Windows Media Player.
any idea ?
with regard
06-27-2011
11:58 AM
- last edited on
06-10-2025
05:21 PM
by
Content Cleaner
Hi poorabedi,
The only way I can capture the image of WMP is by actually using the print screen function, and even then it's the whole screen not just the video. You can make calls into the windows .DLLs to do this programmatically but that is a rather intensive thing to try. There are a few examples of this on www.ni.com/examples/ if you search for "keyboard functions" that you could adapt to cause a print screen, however I'm not 100% confident that even that will work.
Regards,
Peter W.