LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

picture control uses up all the resources

I am using picture control to plot data. As the number of data points increase,the CPU resource usage increases. It finally reaches 100%. All I am doing is drawing the points on the picture control.
0 Kudos
Message 1 of 4
(2,670 Views)
> I am using picture control to plot data. As the number of data points
> increase,the CPU resource usage increases. It finally reaches 100%.
> All I am doing is drawing the points on the picture control.

If you are accumulating points to the picture, you have a couple
options. For one thing, if you have not bounded the amount of points
being put into the picture control, then the drawing will increase and
increase.


If you are trying to accumulate points in the image, but don't want to
cursors or other more complicated graph options, you can turn off erase
first on the picture indicator and allow the plot points to just show up
on top of the existing graph data.

Greg McKaskle
0 Kudos
Message 2 of 4
(2,670 Views)
Greg

I tried this too. Turned off Erase first function, the CPU resource usage still increases. I have attached the example file. Try Random points.

Thanx
0 Kudos
Message 3 of 4
(2,670 Views)
hi jvg,

you are accumulating draw commands in your shift register.

Your accumulated commands adrawing the same points over top of where they where before. If you just pass the outputs of draw functions to the picture control, the new points will be drawn over top of the previous picture.

So,
in your example, toss the picture-shift-register and just wire to the picture control.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,670 Views)