LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HardCopy of Waveform Chart in LV in JPEG format or bitmap format?

I have one LV VI and There is a Waveform chart and I want to make hardcopy of this chart after analyzing the acquire signal. I want to insert this hardcopy waveform chart into MS word. How can I do that.
Thanks.
Saw
0 Kudos
Message 1 of 10
(4,543 Views)
There's lots of ways to do this. You can programatically have LabVIEW save the front panel to a .jpg file, or if you're using windows, hit the CTL-Print Screen buttons. This will save the copy the screen into the clipboard. Open Word, and do a paste into the document. This won't save it to a .jpg, but you can open a graphics editor, do a paste, and save it to a .jpg file, too.

Mark
0 Kudos
Message 2 of 10
(4,543 Views)
Hi,
You can do it in following way:

1. create the "invoke node" of your waveform (right-click on the element and select "create->invoke node" from menu).

2.Then choose "Get Image" method. Set the image depth and background color of the image and save it to the file using "Functions->Gaphics & Sound->Graphics formats->Write to JPG file.vi"

The example 9is attached.

Good luck.

Oleg Chutko.
Message 3 of 10
(4,543 Views)
Thats exectly what I want. Thanks Oleg.

Best Regerds,
Saw
0 Kudos
Message 4 of 10
(4,543 Views)
Dear Oleg,
your answer helped me very much.

My question is: how can I optimize the write to file operation, that is I need something to control file destination name in order to avoid that puictures are overwritten when I press again the enable button. I am asking something similar to what is present in Write LabVIEW Measurement File, option "Use next available file name"
0 Kudos
Message 5 of 10
(4,543 Views)
the easiesrt way to do that ids to use the report VI's built into labview and use the append front panel image to report VI. I have an example but am not able to get to them right now to show you how it is done.
I will get back to you and show you how.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 6 of 10
(4,543 Views)
here is an example of how I do it automatically



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 7 of 10
(4,543 Views)
thank u very much.

Unfortunately, the VI can't run because an error occurs. "Joes Append Control Images to Report vi" is missing.

I shall try to understand your example from the block diagram, even if it doesn't work
0 Kudos
Message 8 of 10
(4,543 Views)
Hi Giulia,
I'm not sure that I've got the problem. I use LV6i so I don't have Write LabVIEW Measurement File.vi and I don't know its options.
I changed my example in order to make savings automatically to files located in "Destination directory" with names looking like "pic000#.jpg". Here # is 1, 2, 3, ....
Hope this is what you need. Don't forget to specify "Destination directory" in correspondin control before you start to save files.

Good luck.

Oleg Chutko.
0 Kudos
Message 9 of 10
(4,543 Views)
Sorry about leaving out the VI. Here it is so that you can see how it is used. you can modify these VI's to suite your needs if you want to. If you have any questions feel free to ask



Joe.
"NOTHING IS EVER EASY"
Download All
0 Kudos
Message 10 of 10
(4,543 Views)