I'm having trouble with array's. I want to fill a loop based on a variable input (x). If the input is less than 5, I want to fill the array with 1-x. If the array is greater than 5, I want to fill the array with 1-5 and then start over with 1. This needs to continue on in multiples of 5. I have been able to do this with several loops and many comparisons up to 20 elements. The problem is that the input may be greater than 20. There has to be an easy way to do this, but I can't figure it out. I have attached a vi without the comparisons (the numbers still have to be entered manually). It should give you an idea of what I need. Can someone help?
thanks
Kevin