How to call the Ax states in a loop?

Post your code, I have no idea what you're going on about.