Hello musser,
You shouldn't need to reset the while loop count to zero once your
remainder is zero (i.e. You've executed your three cases for the
required number of iterations). Since all you care about is the
remainder of dividng the count register by a particular value, you just
need to check if the remainder is between 0 - 500, and then you would
execute case 1.
Wendy L
LabWindows/CVI Developer Newsletter