01-19-2016 12:56 PM
This is what I thought you wanted, picture-wise ... It's easy to see in Excel, less obvious as a text file.
BS
01-19-2016 01:01 PM
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.
01-19-2016 03:42 PM
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.
01-19-2016 04:16 PM - edited 01-19-2016 04:17 PM
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.