LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intensity graph, problem of building 2D array

Hello!
I want to make an 2D-array to send to intensity graph. The diffucult part of this is that this array can be very big. At most I have to plot an 8000x8000 array, but I have a variable called LENGTH, and with that I say that every LENGTH_X and LENGTH_Y,(both same value) step is the one I want to use. So instead of having an 8000x8000=64 000 000, if the LENGTH is 10, I need an array of "just" 800x800=640 000, that means a lot of time saved. The Intensity graph need this 2D-array all the time to be updated,(and I must update during the program execution). So for every XY-value I have a randomly color. How can I do to only send in those XY value I realy use, and not an array of 64 000 000 where the most of the indexes are empty?
 
Example. I start to scan my picture that is at most 8000x8000, at point X_START = 1000, X_STOP = 2000, Y_START = 1, Y_STOP = 10, LENGTH is 10 for both X and Y. This means that I need an array of (2000-1000) x 10 = 10 000. But because the length-variable is 10 for both X and Y I only will scan every 10:th step, so what I realy need is an array of: ( 10 000 / 10) x (10 / 10) = 1000 x 1 = 1000.
 
But still I need to plot on the Intensity Graph the value of the old array, for example:
 X=1000,Y=1,color=5
 X=1010,Y=1,color=5 ....
 
How can I do this instead of indexing an 2D-array and indes point 1000,1 with value 5?
0 Kudos
Message 1 of 3
(2,594 Views)

Hello!

 

I have read your question a few times but I don’t really get it I am afraid. Can you explain it further and in more detail please? How your program does looks like today, can you upload it? You stated that your work with 8000 x 8000 elements all the time but you just updated some of the elements at a time is that correct? Also with this variable LENGTH you try to shorten the arrays? So instead of having to specify X0=5, X1=doesn’t matter, X2=doesn’t matter….X10=5 you just specify X0=5, X1=5 where these corresponds to X0 and X10?

 

 Regards,

Jimmie A.

Applications Engineer, National Instruments

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 2 of 3
(2,567 Views)
Hi
your explanation requires clarification !
Do you mean that you are scanning a 8k*8k matrix and you wish to focus on a 1k*1k section with a variable delta value?
Is it a fixed delta for both X value and Y value ?

Chow
xseadog


0 Kudos
Message 3 of 3
(2,561 Views)