Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69120

Array problems

$
0
0

Hello NI Forums, I currently develping a VI to specify voltages that will be send to device which will be directing two mirrors. The idea and set-up are pretty basic, but actually programming it is an issue. The X and Y arrays both have elements that correspond to a point on a coordinate grid. For example, my elements in my grid for the X might be [-2,-1,0,1,2] and my Y could be [-2,-2,-2,-2,-2]. The problem however is that I need one more X and Y value so I can step down in the grid and trace back in the X array. For example, my next row of elements will be [-2,-1,0,1,2] for X and [-3,-3,-3,-3,-3] for Y. However,the way my program is written my last Y value is one less than than previous element. Thus, ideally I would form an array that would have an extra X element which would correspond to the step down in voltage on the Y axis. This would be ideal : [-2,-1,0,1,2,2] for x and [-3,-3,-3,-3,-3,-4] for y. 

 

Sorry for this question is a little poorly worded. The application of this program is quite simple, but I seem a little stumped. 

 

 


Viewing all articles
Browse latest Browse all 69120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>