LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save intensity graph to jpeg file?

Hi, I have VI that will produce an intensity graph on the front panel. I want to be able to directly save this intensity graph into a jpeg pic format. I was wondering if there is any easy way to do it. Thank you!
0 Kudos
Message 1 of 7
(8,295 Views)
0 Kudos
Message 2 of 7
(8,284 Views)
Thank you for the help. I was wondering if you have a 6.0 (if not, maybe 7.0) version. I don't have higher version of labview in the lab. Sorry I didn't mention at the very beginning.
0 Kudos
Message 3 of 7
(8,273 Views)
I was able to get it to ver.7.0.  I have vision development studio for labview, hopefully this vi doesn't require vi's that are only included in this other program.  I also attached a screen shot of what I was using just in case you couldn't open the vi.
Download All
0 Kudos
Message 4 of 7
(8,266 Views)
Thank you, I got it. That's very helpful.
0 Kudos
Message 5 of 7
(8,261 Views)
Hi,
I have an array of 1024 elements and than i'am reading those array from the text file , now i'am taking out the fft spectrum of that array of 1024 elements taking the graph and storing the graph in jpeg file , where the problem is occuring is i'am not getting the image . Why is this happening i'am unable to get it.
 
Also when i'am running my program the block diagram at one go its not showing the images but when i'am doing with highlight execution it is showing the proper images . Why is this happening ?
 
please help
 
thank you
0 Kudos
Message 6 of 7
(8,159 Views)
Hello,

While it's difficult to know what your program is doing without seeing a screenshot or the vi itself (hint, hint), the behavior you describe sounds like you are taking the graph's image without ensuring that the graph has actually updated with data first.  To fix this, you can enforce dataflow dependency between the two operations (connecting error clusters is a very useful tool here) and introduce a small wait function before taking the image to allow the front panel to update.  Highlight execution mode will result in different timing for your code, meaning that the front panel may now have enough time to update fully before the image is taken.

If you could post a screen shot of your block diagram and a little more detail about what you mean by being unable to get the image (do you get an error?), I'll take a look at it.


Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 7 of 7
(8,135 Views)