07-22-2009 11:08 AM
Solved! Go to Solution.
07-22-2009 11:36 AM
07-22-2009 12:04 PM
Here's what I made as a little example. In my case (Labview 8.5), it won't export image when sub-vi is closed. However it does work when the sub is opened no matter minimized or not, which is contradictory to my real program (only blank images saved if minimized).
Lei
07-22-2009 12:16 PM
LV does not update graphics for FP's that are not open (and I am glad since the wasted CPU would account for global warming in itself).
Try using an "invoke node" get image method to force LV to update the image.
Ben
07-22-2009 12:21 PM
07-22-2009 12:29 PM
NitinD wrote:
I guess the front panel needs to be loaded to draw the images correctly. Either you could open the front panel just before exporting the image, or use the Get Image property and store it as a jpeg or bmp.
The Invoke node Get image is usually enough to get LV to update the FP. Everything else can stay the same.
Ben
07-22-2009 01:14 PM
No, I tried just insert the Get Image node, but it would not work. Write to image file does work.
Lei
07-22-2009 01:21 PM
07-22-2009 01:33 PM
Yes, I know write to image file (jpeg/bmp) does work. The subvi I posted was a trial for what Ben had suggested, cause I do prefer the emf file (large, simple, not like a snap shot). How to open the front panel through invoke node w/o actually seeing it? Open/close subvi will slow the program, won't it?
Thanks,
Lei
07-22-2009 01:44 PM
Try wiring the returned image from the Invoke node Get immage method to a cluster and unbundle one of the values and wire same to the edge of you seq frame.
Why soething that silly?
LabVIEW is smart enough to know that nothing is being done with the data from the invoke node so it will skip that operation. By wiring from the invoke node you will trick LV into actually doing the "get image".
Ben