serial generator function to test the power of module