Coding information
Nerve impulses are a way of coding information, in a similar way to FM radio, allowing information to be transmitted both quickly and accurately. Each impulse is the same size so it is the frequency that carries information about the intensity of the signal. For example, as you turn up the dimmer switch on your bedroom light, the size of the nerve impulses from your eye stays the same but the rate at which they are generated increases.