LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to separate the data for the return and destination of the scan and draw images in real time for each.

A 256 x 256 pixel image is drawn in real time.

 

From the point (0,0), it moves 255pixel in the x-axis direction, one round trip, +1 pixel in the y-axis direction, another round trip in the x-axis direction, +1 pixel in the y-axis direction, and so on, acquiring data Z at each pixel.

The acquired X,Y,Z data is read from the FIFO, and the image is created by replacing the XY index position data with the Z value. (The following image is the relevant part)

7.png

 

How can I separate the data in the x-axis direction for the trip and the return, and draw a 256x256 pixel image in real time for each? (Currently, only the return data is used for real-time image rendering.)

 

I am attaching the program and would appreciate your advice.

 

Download All
0 Kudos
Message 1 of 6
(175 Views)

Initialize a 2D array of the correct datatype and place it in a shift register, then replace array elements with real data as a function of the two loop indices. The display needs to be inside the inner loop, of course

0 Kudos
Message 2 of 6
(120 Views)

Thanks for your reply.


I have checked the attached program.
With this program, it starts at (x,y)=(0,0), reaches (255,0), then scans to (255,1) and back to (0,1).


In my program, it starts at (x,y)=(0,0), reaches (255,0), then scans back to (0,0) without +1 on the y-axis. after one round trip back to (0,0), it scans again in the x-axis direction from (0,1) with +1 on the y-axis.


I am trying to separate the going only and returning only data on each of these lines and display two images in real time.

 

I would be happy to improve my attached program.

0 Kudos
Message 4 of 6
(97 Views)

@ikeda_kaoru wrote:

I am trying to separate the going only and returning only data on each of these lines and display two images in real time..


That should only require very minor tweaks to my code.

 

 

0 Kudos
Message 5 of 6
(84 Views)

@altenbach さんは書きました:

@ikeda_kaoru wrote:

I am trying to separate the going only and returning only data on each of these lines and display two images in real time..


That should only require very minor tweaks to my code.

 

 


Thank you for your reply.
I will try to improve the program with the help of the program you gave me.

0 Kudos
Message 6 of 6
(33 Views)