LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

About x,y axis movement programs in LabVIEW

Thank you for your reply.

Is there a function or something that swaps the values of two cluster elements?

I have not studied enough and do not understand the ArrayToCluster function very well... sorry!

0 Kudos
Message 21 of 27
(169 Views)

@ikeda_kaoru wrote:

Thank you for your reply.

Is there a function or something that swaps the values of two cluster elements?

I have not studied enough and do not understand the ArrayToCluster function very well... sorry!


You could just reverse the array before converting to a cluster or you can rewrite the earlier logic so the elements are in the correct order already

 

(When using "array to cluster", it is also important to define the number of elements of the output. If you don't understand a function, read the help! Is there anything not clear?)

0 Kudos
Message 22 of 27
(164 Views)

@altenbach wrote:
... or you can rewrite the earlier logic so the elements are in the correct order already

For example, if you swap the inputs to the two "built array" nodes as follows, the cluster element values would be swapped.

 

 

altenbach_0-1743004915029.png

 

0 Kudos
Message 23 of 27
(161 Views)

Data is taken at intervals of 1 μs while moving the tip of the scanning tunneling microscope.

The number of data is 198 x 256 x 256 = 12976128.

From this data, I want to extract data from this data at intervals of 198, such as 1,199,397,595....

Then 65536 data should be extracted.

I want to create an image by placing this at 256 x 256 pixels.

The first step is to place the image from 0 pixel to 255 pixels in the x-axis direction. Next, move 1 pixel in the y-axis direction and place. Then, from 255 pixels back to 0 pixels in the x-axis direction. Then move 1 pixel in the y-axis direction and repeat the process. Please refer to the file(scan1.pdf).

0 Kudos
Message 24 of 27
(141 Views)

Thank you very much.
It worked.

0 Kudos
Message 25 of 27
(125 Views)
0 Kudos
Message 26 of 27
(5 Views)
0 Kudos
Message 27 of 27
(4 Views)