LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a video in Labview that sync with scenario data?

Solved!
Go to solution

Hi guys,

 

I am doing a program that shows the scenario data of a satellite at different positions. (For eg, at the position nearer to sun, the temperature data is higher.....)

To make the front panel more interesting, I am thinking to add in a video of a satellite orbiting the Earth. The video has to sync with the data I am showing.

 

The orbital time of my satellite is 90 minutes = 5400 seconds. If I am going to use the picture ring control method, I have to import 5820 frames of pictures into the picture ring control. My understanding is that each time the user can only import one image (correct me if I am wrong). That would mean I have to import the pictures for 5400 times. 

 

Is there any other way to do this? I do not want to waste my time on importing so many images. 😞

 

Vanessa

 

 

0 Kudos
Message 1 of 4
(3,240 Views)

Okay there are many ways to do this, and I'm not certain which would be less work.

 

One option would be to have a picture ring, with 5820 individual images that you then pick which one to display as an index.  If you were to do this I'd recommend some LabVIEW scripting to create the control, importing the images programatically.  I think memory wise storing these images in this control would be very difficult for LabVIEW, but it could be done.

 

What I think would be a better option, is to use a single 2D Picture control, and then load a new image from disk (where I hope these images are stored).  You then just load the right image for the right time.  Look under the Graphics and Sound >> Graphics Format to see how to open a file from disk.  This path will change for each image.

 

EDIT:  Here is an old link that is still relavent http://digital.ni.com/public.nsf/allkb/328AF568F15B36328625696200511EF0

 

DOUBLE EDIT:  Really?  Scripting doesn't allow importing pictures?  Well there is likely a work around but that sucks go vote for it here.

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Easy-Picture-Ring-filling/idi-p/3072297

0 Kudos
Message 2 of 4
(3,222 Views)
Solution
Accepted by topic author VanessaWen

If it's a video you have, I would have a look at embedding some sort of video player into the front panel via ActiveX. It's not something I've ever tried but it should be possible and will save you having to generate 5000+ images!

 

There's a resource here on using VLC with LabVIEW: https://decibel.ni.com/content/docs/DOC-24114

 

If you can embed a video player and can control it via ActiveX then you should be able to do what you want! 🙂


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 3 of 4
(3,204 Views)

Hi Sam,

 

Thanks for the suggestion. 🙂

 

Vanessa

0 Kudos
Message 4 of 4
(3,180 Views)