Electromyogram. Electrical testing of main ulnar nerve function often helps confirm a diagnosis or can indicate which treatment is best for you. An electromyogram evaluates how the nerves or muscles work together by measuring the electrical impulse along nerves, nerve roots, or muscle tissue.