With school experimental system Vernier we can quickly measure the dependence of the magnetic field of coil on the current passing through, and also determine the phase shift of the voltage and current at different frequencies.