LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

getting an image using less cpu

Hello, I'm obtaining images of a graph frequently, and I use a lot of CPU, and the program stop, what can I do?
In the figure before you can see what i'm doing.
Thanks
Luz
0 Kudos
Message 1 of 3
(2,702 Views)

Hi Luz,

Is it essential to save the graph image to a disc file before appending it to the report - it might be a little quicker if you appended a control image directly to the report (but this might not suit you needs, as I see you are also cropping the image size, or the report might be an HTML type).

I notice that you have no "data flow dependency" between the image writing to disc and the reading back of the image into the report, so theoretically your program could attempt to read the file before it was written - I would recommend that you wire the "error cluster wire" through the "Write PNG file" VI first, then connect it on through the "Append image to report" VI to eliminate this possibility.

Sorry if this isn't much help - but writing compressed images to disk, then reading back is always likely to be relatively slow.

Regards.

Mark.

0 Kudos
Message 2 of 3
(2,694 Views)
Thanks Mark, but I can solve my problem. Any more suggestion please?
Thanks.
Luz
0 Kudos
Message 3 of 3
(2,675 Views)