Erections occur in response to tactile, olfactory, and visual stimuli. The ability to achieve and maintain a full erection depends not only on the penile portion of the process but also on the status of the peripheral nerves, the integrity of the vascular supply, and biochemical events within the corpora. The autonomic nervous system is involved in erection, orgasm, and tumescence. The parasympathetic nervous system is primarily involved in sustaining and maintaining an erection, which is derived from S2-S4 nerve roots.
Erectile dysfunction (ED) is commonly called impotence. It’s a condition in which a man can’t achieve or maintain an erection during sexual performance. Symptoms may also include reduced sexual desire or libido. Your doctor is likely to diagnose you with ED if the condition lasts for more than a few weeks or months. ED affects as many as 30 million men in the United States.
A CVA can occur anywhere through the brain, midbrain, brainstem and spinal cord leading to varying degrees of SD depending on location. A decline in libido, erection and ejaculation are frequent in men who have had a CVA, with a reported prevalence of ED that varies from 17% to 48% (28,29). Right hemispheric infarcts seem to affect erections more so than left-sided ones. The exact effects of CVA on sexual function are complex and multifactorial, as disability, psychological and emotional status can affect sexual function aside from the location of the CVA.
Besides PDE5 inhibitors and among second-line therapies are VCDs which are clear plastic chambers placed over the penis, tightened against the lower abdomen with a mechanism to create a vacuum inside the chamber. This directs blood into the penis. If an adequate erection occurs inside the chamber, the patient slips a small constriction band off the end of the VCD and onto the base of the penis. An erection beyond 30 min is not recommended. These devices can be a bit cumbersome, but are very safe.40
Cosgrove et al reported a higher rate of sexual dysfunction in veterans with posttraumatic stress disorder (PTSD) than in veterans who did not develop this problem.  The domains on the International Index of Erectile Function (IIEF) questionnaire that demonstrated the most change included overall sexual satisfaction and erectile function. [43, 44] Men with PTSD should be evaluated and treated if they have sexual dysfunction.
• Medications: About 25 percent of ED cases are caused by drugs. Many medications, including common medicines prescribed for diabetes and its complications, can cause ED. The most common offenders are blood pressure drugs, antihistamines, antidepressants, tranquilizers, appetite suppressants, and cimetidine (an ulcer drug). In addition, over-the-counter medications, including certain eye drops and nose drops, have been associated with ED. That does not mean you should stop taking these medications! Rather, you should discuss them with your doctor to determine whether a different dosage, an alternate medicine, or additional treatments will resolve the ED.
A vacuum constriction device (left) is a cylinder that is placed over the penis. The air is pumped out of the cylinder, which draws blood into the penis and causes an erection. The erection is maintained by slipping a band off of the base of the cylinder and onto the base of the penis. The band can stay in place for up to 30 minutes. The vacuum device can be safely used to treat most causes of erectile failure. Lack of spontaneity, discomfort, and cumbersomeness of the device seem to be the biggest concerns of patients.
Sexual dysfunction is highly prevalent in men and women. In the MMAS, 52% of the respondents reported some degree of erectile difficulty. Complete ED, defined as (1) the total inability to obtain or maintain an erection during sexual stimulation and (2) the absence of nocturnal erections, occurred in 10% of the respondents. Mild and moderate ED occurred in 17% and 25% of responders, respectively. 
Centrally active compounds such as apomorphine have been used in men with ED whose cardiovascular comorbidity may prohibit PDE5i use, or in men who have concurrent apomorphine use for its anti-parkinsonian properties. Unfortunately, its side effect profile and poor effectiveness compared to other ED treatments have impaired its mainstream utilization (118). It is suspected that the side effects of apomorphine relate to its D2 receptor affinity. D4 receptor agonists, such as ABT-724 and azulenylmethylpiperazines, may not have the same associated side effects and show potent pro-erectile effects in animal models compared to apomorphine (32,119).
A physical exam checks your total health. Examination focusing on your genitals (penis and testicles) is often done to check for ED. Based on your age and risk factors, the exam may also focus on your heart and blood system: heart, peripheral pulses and blood pressure. Based on your age and family history your doctor may do a rectal exam to check the prostate. These tests are not painful. Most patients do not need a lot of testing before starting treatment.