LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question to connect other programs with vi-program?!

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
0 Kudos
Message 1 of 3
(2,502 Views)

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.

Hope it helps.

Mike



Message Edited by MikeS81 on 05-06-2008 03:22 PM
0 Kudos
Message 2 of 3
(2,483 Views)
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.
Message 3 of 3
(2,465 Views)