Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Waveform graph

Hello!!!

 

I have a problem...I have in my project a waveform graph that it would be useful to save if the user wants to...How can I save it, by preesing a button, with a determinated name ??? just saving the graph, with maybe a .jpg termination ???

 

 

Thanks a lot!!!!!! (if it's possible answer with pics!!!!!!!)

0 Kudos
Message 1 of 5
(5,363 Views)
Hi Guillermo,

 

If you want to save the waveform as a picture, you must use the information you con find in this link. That's all you need:

 

 

http://digital.ni.com/public.nsf/allkb/5AE4ADCBB65A6D8F86256FBF007A1AC1?OpenDocument

 

Nevertheless, if you want to save the waveform to a file because you need this information later, you can use any of these examples (it's depend on what kind of information you wants to save and what kind of waveform you are generating):

 

http://decibel.ni.com/content/docs/DOC-4425

http://decibel.ni.com/content/docs/DOC-3720

 

...or the LabVIEW example you can find in "C:\Program Files\National Instruments\LabVIEW 8.6\examples\Waveform\FileIO.llb\Export Waveforms to Spreadsheet File Example.vi".

 

Regards,

 

Message 2 of 5
(5,353 Views)

Hi there,

 

did u manage to save the waveform graph? Im also having the same problem, want the user to be able to save the waveform graph, the examples

you provided Guillermo are labview and not measurement studio example so it doesnt help much 😞

0 Kudos
Message 3 of 5
(4,773 Views)

Hi there,

 

You can save Measurement Studio controls to files in many ways. The easiest way I would say is to use ToFile() method.

 

Here is a code snippet.

 

 

waveformGraph1.ToFile("C:\\1.gif", ImageType.Gif, new Size(400, 300));

0 Kudos
Message 4 of 5
(4,751 Views)
tried that already doesnt work, but found a work around it, about 2 to 3 more line of code 🙂
0 Kudos
Message 5 of 5
(4,728 Views)