Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Save intensity graph as a movie file

Solved!
Go to solution

I made an intensity graph using the link given below:

 

http://zone.ni.com/devzone/cda/epd/p/id/1050 

 

I made a graph for 500 different frames using 500 xls files. Now I want to save these frames in the form of a movie (avi, wmv etc). How can I possibly do it? Please help.

0 Kudos
Message 1 of 6
(5,269 Views)

Hello Paritosh,

There is a function called "save to avi" in our NI Vision Development Module that should be able to do that for you.

The easiest solution would be to save the graphs as images (.png or .jpg) in some folder on your machine, drag those images in a program such as Windows Movie Maker and make the movie.

This functionality is not available as part of Measurement Studio. You may also want to research other Visual Studio toolkits in msdn or on the web.

Jacob R. | Applications Engineer | National Instruments

0 Kudos
Message 2 of 6
(5,260 Views)

So how can I save the graph in the form of images? Is there any solution in measurment studio? Plz help.... 

0 Kudos
Message 3 of 6
(5,257 Views)
Solution
Accepted by topic author Paritosh

Hello Paritosh,

That will depend on the actual language and function you are using. Could you provide some more information there?

I'd check the available functions using the object browser. Look for something such as controllable or paintpicture.

Check out this link for more infromation.

Jacob R. | Applications Engineer | National Instruments

0 Kudos
Message 4 of 6
(5,252 Views)

Sorry I clicked on Accept as solution. I've attached my code here. I've made an intensity graph for 500 xls files. Please help me save it as video or atleast the picture file.

0 Kudos
Message 5 of 6
(5,226 Views)

Hello Paritosh,

The CWgraph object has a method called ControlImage() which returns a picture. You would first need to create a Image object, then save the graph image to this object and finally save that image to disk.

Here is a snippet of code:

 

Image graph_pic;
public Form1()
{
InitializeComponent();
graph_pic = axCWGraph3D1.ControlImage();
graph_pic.Save("path.......graph picture.png");

 

There is probably a way to create the movie programmatically; however since none of our libraries include this functionality, you would need to do some research on the web on how to achieve it. If you are only doing this a few times, it would be easier to just drag the saved pictures into a movie maker.

 

 

The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

 

Jacob R. | Applications Engineer | National Instruments

0 Kudos
Message 6 of 6
(5,213 Views)