LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot langsam

the problem is, that i don't know how to create a 2D array.

so i have only a numeric value and no x, or y coordinates. How i can put this value in the intensity graph? 

0 Kudos
Message 11 of 19
(1,183 Views)

We need a little bit more information to help you with that. In what form do you have the data? Somehow you managed to create a 3D plot so where's the problem with the 2D plot?

Post more information or even better files and code.

 

Message 12 of 19
(1,180 Views)

I read a file with pixel intensitaet values for 5 different frames. the file ist to be readout like this => ....pixel5frame2, pixel4frame2, pixel3frame2, pixel2frame2,pixel1frame2, pixel5frame1,....pixel2frame1,pixel1frame1(here is start) so i pic up and arrange the different pixel for the different frames, so that in one array is pixel1 and pixel2 ...for each frame (but don't thik about this, this is working) and now i want to bring this z array (called ausgabe5) into an intensity plot with 640 pixel per row and 320 columes per frame.

Here is the vi, i hope you can help me 

0 Kudos
Message 13 of 19
(1,170 Views)

I don't really get it, sorry. You have to write the data into a 2D array, something like I did in the attached file. But I don't know if this is correct, your read routine looks a bit strange.

Can you post a sample data file and do you know how the graph should look in the end?

 

 

Message 14 of 19
(1,166 Views)
if zou use a counter as intensity input for the pixel , the frame/matrix should be look like that  (attachement)
0 Kudos
Message 15 of 19
(1,145 Views)

sorry zour plot is comletly right, zou are perfect 🙂

 

 

THX THX THX

 

but is it possible to seperate mor the pixel in this plot, so that i will see better the pixel? or to mark the pixel with the highest value in this frame? 

0 Kudos
Message 16 of 19
(1,131 Views)

I'm glad it works!

 

You can't separate the pixels, but you can increase the intensity plot size or zoom in.

Highlighting data is also not possible, but you can adjust the color scale to have better contrast for your specific data.

 

Message 17 of 19
(1,118 Views)

 Hi

this plot is very fast and runs perfect, but i want to change the matrix. How can i put the first pixel in the left corner to the upper right courner as last pixel, so that the hole matrix is turned arround? so that i start to fill this matrix with the last pixel not with the first. you know what i meen?

 

THX

 

0 Kudos
Message 18 of 19
(1,077 Views)

The indices to the replace array subset function define the order of the elements.

If you want to flip it along the vertical axis, instead of wiring the loop counter 'i' to the column index wire (Num Columns - 1 - i) to the index. To flip it horizontally do the corresponding operation on the row index. Just give it a try and invert rows or columns to get the desired result.

If I understand you correctly you'll have to do this for rows and columns.

If you also need to transpose your array you can use the transpose 2D array after building it or switch row and column indices while populating it.

 

0 Kudos
Message 19 of 19
(1,075 Views)