If your range/polarity configuration is constant throughout the program, I suggest you to set it in MAX before starting your application. If you need to specify it inside the application, you can use
AI_Configure (1, 0, 0, 10, 1, 0);
Check in the function's help for a reference to the various parameters used by this function. The statement above sets channel 0 to differential input, 10 V full scale input in unipolar mode.
Roberto