LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I set autoscale to ignore zeros?

Solved!
Go to solution

Hi all,

 

I have an array that is updated in a loop. In order to save memory, I don't build it in the loop but define the size in advance and use the replace array subset VI. This results in a 2D array of zeros and data. I would like to autoscale the data part and ignore the zeros (that aren't really data).

 

For example, my array starts as a 100x100 array of zeros. Then lines are updated with values between 6 and 7. I would like the scale to be between 6 and 7, and ignore the zeros.  I tried playing with color tables, but I need something that will change as new lines are added, so that if the 50th line has an 8 in it it will also be seen.Is this possible?

 

Thanks,

Danielle

 

"Wisdom comes from experience. Experience is often a result of lack of wisdom.”
― Terry Pratchett
0 Kudos
Message 1 of 3
(2,606 Views)
Solution
Accepted by topic author dsavir

Try initializing with NaN.  NaN values are not plotted on a graph.

Message 2 of 3
(2,593 Views)

Hi,

 

This works great, thanks!

 

Danielle

"Wisdom comes from experience. Experience is often a result of lack of wisdom.”
― Terry Pratchett
0 Kudos
Message 3 of 3
(2,567 Views)