03-20-2012
08:34 AM
- last edited on
06-07-2024
07:06 PM
by
Content Cleaner
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.
Solved! Go to Solution.
03-21-2012
04:28 PM
- last edited on
06-07-2024
07:07 PM
by
Content Cleaner
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.
03-21-2012 08:15 PM
So how can I save the graph in the form of images? Is there any solution in measurment studio? Plz help....
03-22-2012
02:19 PM
- last edited on
06-07-2024
07:07 PM
by
Content Cleaner
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.
03-29-2012 09:03 PM
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.
04-02-2012 11:43 AM
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