You probably cannot go in descending order, use 0:1 to get channels 0 and 1, your indexing is fine and should work.
here are a couple of tips to make your vi run faster.
Put the AI config and AI start outside the loop so that you are not reconfiguring them each time the loop runs, also use the open, write, close file vi's manually. put the open outside the loop at the beginning (like you already have), then write to it during each loop iteration and then put the close outside the loop. this way you are not opening, writing and closing the same file every time the loop iterates.And what he means by scanning channels twice is going from 0 to 1 and back to 0 in the same scan, scans are done going from 0 to however many channels your bord has. if you put in lets say 0:9 the scan will scan channels 0-9 in ascending order then repeat.
just giving some input
Message Edited by jhoskins on 05-31-2005 11:56 AM
Joe.
"NOTHING IS EVER EASY"