취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

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 포인트
1/3 메시지
2,849 조회수

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 포인트
2/3 메시지
2,841 조회수
Thanks Mark, but I can solve my problem. Any more suggestion please?
Thanks.
Luz
0 포인트
3/3 메시지
2,822 조회수