It seems that you want to use a setpoint value based on your current time index. Are you keeping track of your time, or have a way of getting it? If so, you just need a simple lookup table, which you can implement as a VI. Input is time and output is setpoint value.