10-05-2007 03:12 PM
10-06-2007 02:59 PM
You would just need a loop to write out your values from 10 to 20 in whatever increments you want. Put a wait MS function in that matches the period you want for each step change. The loop could be either a while loop that keeps track of the current value and increments each iteration, when it hits the max value it stops the loop. Or it could be For loop that basically does the same thing, but you set the # of iterations in to the N terminal.
Or you could put all of your steps in an array that feeds into the loop, and turn on auto indexing of the For loop. Then it takes each value and concatenates it with the rest of your serial command to write out.
Don't forget to open your VISA resource before the loop and close it after the loop. You don't want to constantly open and close it from within the loop.
10-08-2007 02:39 PM