From: morgenroete1979 on
Hello, Everybody, I have made a program, this program can make the screenshots with the specified schedule and
automatically save every screenshot into a folder. I call it
image-acquisition-program. But I have a question here: I want to start this image-acquisition-program with other program (not LabVIEW program) at same time. For example, I play a movie with Media Player, when I click the "Play" - button, then the move will be played, at the same time this image-acquistion-program must run in the background and make the screenshots with the specified schedule, is it possible? If yes, how can I connect other programs with this image-acquisition-program? Und how can I start this image-acquisition-program from other program in parallel?Regarts,Johnny
From: MikeS81 on
Hi Johnny,
i think you can use the callback function "PlayStateChange" from the media player. If you register a state change you can start your program and capture the images.
<img src="http://forums.ni.com/attachments/ni/170/321368/1/Unbenannt1.PNG"></a>
Hope it helps.
MikeMessage Edited by MikeS81 on 05-06-2008 03:22 PM


Unbenannt1.PNG:
http://forums.ni.com/attachments/ni/170/321368/1/Unbenannt1.PNG
From: smercurio_fc on
That assumes that LabVIEW is the app that starts Media Player, and I don't think that's what the user is trying to accomplish. If I read it correctly, in the user's case Media Player is being launched and started from Windows, and they want their image acquisition program to be run once Media Player starts. If you create a VI to implement the code as shown, and then launch Windows Media Player, and start playing something, the callback is never called. Also, the statement If yes, how can I connect other programs with
this image-acquisition-program? Und how can I start this
image-acquisition-program from other program in parallel?seems to affirm this. The general answer to the above question is that there isn't a "general" way to do this. You could always make your image acquisition program monitor what applications get started and then start the screenshot capturing at that point.