Thank Ed. That helps!
Just out of curiosity. How do you create the error in / out cluster you used in your attached VI? I tried to manually put in the parameters in a cluster, but the error warning function (right click error) didn't come out.
The Gray Code I generated is from left to right (e.g. 20 = 01111, but the correct format should be 11110). How can I flip the left digits to the right and vice versa?