During an EEG, electrodes are placed on your scalp and brain waves are measured. The test is painless. The doctor may also want to do an EEG while you are sleeping.