LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create coordinate map using 2D array of clusters

This is what I thought you wanted, picture-wise ...  It's easy to see in Excel, less obvious as a text file.

 

BS

0 Kudos
Message 11 of 14
(1,196 Views)

Oh ok, yes that would contain all the information but it's necessary to get it into the shape as the xlsx file I attached earlier. I think the machines they use to cut the die are pretty archaic so they are only able to accept one data file.

0 Kudos
Message 12 of 14
(1,191 Views)

Thanks guys. I just went with a full 2D array and then simple arithmetic to add to the correct position. It's not perfect but it works. I'm still using globals though and I know someone posted earlier there are better ways so if you still see ways to improve I'm open to suggestions.


VI snippet attached.

0 Kudos
Message 13 of 14
(1,175 Views)

Instead of having a case structure where every case does the same thing, add numbers, with the only difference being what constants.  (The next simpler step would have moved all the add functions out of the case structure since they are common to every case.)  Make the program smarter.  Put the constants into an array and index out the appropriate constants.  (I'm only showing the first few cases in there).  It is much easier to code, less prone to errors, and easier to expand if you ever have more positions to add.

 

 

0 Kudos
Message 14 of 14
(1,165 Views)