a couple of ways to do it, but they all try to achieve the same thing: save the range. One method is to save the Y-range to a global everytime you change it. Everytime the vi is called, initialize the Y-range with the saved value. The second way is to save the Y-range to a file. Or, you can create input and output for the VI, in your main loop then use a shift register to pass the value. Oh, there is another way, if your VI has a loop in it (I think it does), you can use an uninitialized shift register to save the Y-range. The result is that the VI can be called many time but the Y-range will remain the same unless you change it, however, everytime your program restarts you will loose the changes.
Hope this helpful
Joe