A thin-needle electrode is inserted through the skin into the muscle to be tested. The patient is asked to contract and relax the muscle as the machine records the electrical activity. Several muscles are tested to find the ones that are affected.