LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get image invoke method gives blank image when I try to capture waveform graph picture

I belive LV 8.5 had some issues with updating the image of graphs that were on non-viewed tab pages but I can not speak for trying to grab the image.

 

THe work-around I normally suggest trying are all techniques that force a redraw of the screen and or object in question. All of the following may not be required but may help.

 

Before the data update of the graph fist defer front panel updates then hide the graph. Update the graph, un-hid the graph, then un-defer the FP updates.

 

In you case is sounds like the image data may be empty. If so you can use that as a trigger to invoke the "Jiggle the handle" appraoch I outlined above.

 

Yes I realize the above will take some learning of LV to implement.

 

Sorry but I do not have an easy suggestions.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 26
(1,492 Views)

Hi

I have tried different delay times, flat sequence and both also. Some times it gives correct pictures but some times blank .If any body knows how Get image  method works or alternate code to capture wavegraph image except export image node that is also behaving in same way as Get image, Please reply?

0 Kudos
Message 12 of 26
(1,482 Views)

Hi Ben,

could you please explain me  in a little bit detail.

 

0 Kudos
Message 13 of 26
(1,477 Views)

Hi

I modified the vi as Ben suggested but still getting same results - some times correct some times blank images.

0 Kudos
Message 14 of 26
(1,470 Views)

If you are having trouble with the current solution, you can do it some other way around.

 

force.png

Try getting the image via export image invoke node.

0 Kudos
Message 15 of 26
(1,465 Views)

I don't find Forceredraw node in labview 8.5.1. Appreciate your active participation.

0 Kudos
Message 16 of 26
(1,457 Views)

You do not need forcedraw, the export image is enough. I thought it is in there, I tried to save these two nodes for 8.5 version and it did not fire any errors.

0 Kudos
Message 17 of 26
(1,449 Views)

Belive on me Export image method is doing same as Get image means it also give blank images some times not every time.

0 Kudos
Message 18 of 26
(1,437 Views)

Are you able to see the plots all the time in the graph?.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 19 of 26
(1,434 Views)

I ran your code under LV 8.6 with no errors.

 

Bumped up the code to spit out 120 images still OK.

 

So I suspect we are dealing with two possibilities to explain what you are seeing.

 

1) Bug in LV 8.5.1 that was fixed in LV 8.6

 

2) Something with the machine you are using. Occationally the Graphic acceleator setting for the PC display are set too high that cause problems. These are usually manifest as weird graphics but I can't say I have seen or read about every problem.

 

But I am leaning toward it being a bug in LV 8.5.1

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 20 of 26
(1,433 Views)