When the threshold stimulus is applied, the permeability of the membrane for sodium ions will change. Voltage gated sodium ion channels open and Na+ion flows form extracellular fluid to intracellular fluid, the outside becomes negative and inside positive. The membrane is depolarised & when the two ends of this membrane is connected to oscilloscope a potential difference of +30mv, called as action potential is generated.