10-06-2010 10:47 AM
I've never used LabVIEW to launch another program, but I'm needing LabVIEW to lanuch and play a quicktime movie... how would I go about this? I don't need it embedded in labview or anything like that (I've seen some example on here with embedded XML quicktime) I just need it to play the movie file with the default player (which is quicktime) maybe there's a way I could just point at the movie file and then my computer would automatically pop up the default player....
much thanks!
10-06-2010 10:50 AM
You can just start up the program through the terminal.
Use 'SystemExec.VI'.
You can just pass in:
START *file* *application*
10-06-2010 11:11 AM
thanks for the resone, how do I do this?
I tried writing into the command line input of the SystemExec.VI
I created a string that was like this:
START *C://movies.samplemove.mov* *C://Quicktime/QuickTimePlayer.exe*
is this the correct syntaxt? the astriks? it didn't do anything, I guess I'm writing it wrong.
Thanks!
10-06-2010 11:14 AM - edited 10-06-2010 11:17 AM
@Fibo wrote:
thanks for the resone, how do I do this?
I tried writing into the command line input of the SystemExec.VI
I created a string that was like this:
START *C://movies.samplemove.mov* *C://Quicktime/QuickTimePlayer.exe*
is this the correct syntaxt? the astriks? it didn't do anything, I guess I'm writing it wrong.
Thanks!
I just put the asteriks in so you would see that those weren't literal.
Try this:
START c:\movies\samplemove.mov C:\Quicktime\QuickTimePlayer.exe
Just make sure your paths are correct, I just maintained the paths that you posted above, but make sure they are.
See here for correct sytnax
10-06-2010 12:40 PM
it's still not working, but I was able to do it through a batch file, so it must just be my syntax, I'll try getting labview to run the batch file... but I have a problem
I open quicktime, with the video loaded... but now I have to play it.....
is there a way to send a command to quicktime, through labview, that it should play the video that's loaded into it?
10-06-2010 12:59 PM
With ActiveX you can play the video inside Labview.
10-06-2010 01:14 PM
I tried this using a labview quicktime activeX thing I found online, but my video is huge and labview isn't able to play it back smoothly, I'm not familiar with ActiveX, can I use ActiveX to play it in quicktime? Is there anyway to send a "play" command to quicktime?
10-06-2010 01:16 PM
Here's something I'm thinking but don't know how to execute... since toggling the spacebar while quicktime is selected plays/pauses the the quicktime video... is there a way to have labview select the quicktime player and then toggle the spacebar somehow?
10-07-2010 06:50 AM
This is the basic setup for Labview using QT ActiveX controller
http://decibel.ni.com/content/docs/DOC-10581
You may test it, and see how it works
10-07-2010 11:21 AM
I think it would be best if you embed the QT movie in your code rather than opening it externally.
Try out the solution Coq Rogue posted.
Once you have it embedded, you have a lot more control of the video.