Ultrasound with Doppler imaging (ultrasound plus evaluation of blood flow in the arteries and veins) can provide additional information about blood flow of the penis and may help in the evaluation of patients prior to surgical intervention. This study is typically performed after the injection of a chemical that causes the arteries to open up, a vasodilator (prostaglandin E1), into the corpora cavernosa in order to cause dilation of blood vessels and promote blood flow into the penis. The rate of blood flow into the penis can be measured along with an evaluation of problems with compression of the veins.
NO is produced by the enzyme NO synthase (NOS).  NOS plays many roles, ranging from homeostasis to immune system regulation. To date, 3 subtypes have been identified: nNOS, iNOS, and eNOS, which are produced by the genes NOS1, NOS2, and NOS3, respectively. This nomenclature is derived from the sources of the original isolates: neuronal tissue (nNOS), immunoactivated macrophage cell lines (iNOS), and vascular endothelium (eNOS). The subtypes are not, however, limited to the tissues from which they were first isolated.
While we may think the penis has a mind of it’s own, it’s actually heavily dependent to the brain, and too much stress can interfere with a man’s ability to obtain and hold an erection. According to Healthline, stress can interrupt how your brain sends messages to the penis to allow extra blood flow. Even though a man may want to have sex, too much stress can make this impossible.
Dr. Liou says that some men come to him after getting a prescription from their primary care doctors, claiming that the drug doesn't work. Sometimes it's because they used it incorrectly. "The biggest misconception is that these drugs are an on/off switch for erections," Dr. Liou says. But the drugs don't work well without sexual stimulation. "During that time, you need to be with your partner and have foreplay," Dr. Liou says. "Don't take it, do the taxes or the dishes, and then meet at the bedroom thinking you'll be ready to go. It's not like that."
Relationship problems can make it difficult for you to get or stay hard when you’re attempting to have sex with the person you’re in a relationship with. However, if you have this problem and you’re in a relationship that doesn’t mean your relationship is necessarily the reason. There are lots of other reasons you might not be able to get or stay hard (see above).
Surgery to repair arteries (penile arterial reconstructive surgery) can reduce impotence caused by obstructions that block the flow of blood to the penis. The best candidates for such surgery are young men with discrete blockage of an artery because of a physical injury to the pubic area or a fracture of the pelvis. The procedure is less successful in older men with widespread blockage of arteries.
The mechanisms by which testosterone plays a role in erectile function are not completely understood. A study evaluating the effect of testosterone on erections in surgically castrated rabbits and control animals, in which the rabbits’ intracavernosal pressures were compared after cavernosal nerve stimulation, determined that castrated rabbits had much lower pressures after stimulation than control rabbits did.  Notably, the pressures increased when castrated rabbits received exogenous testosterone replacement.
The recommended starting dose of vardenafil is 10 mg taken orally approximately one hour before sexual activity. A doctor may adjust the dose higher or lower depending on efficacy and side effects. The maximum recommended dose is 20 mg, and the maximum recommended dosing frequency is no more than once per day. Patients can take vardenafil with or without food. As with sildenafil, for vardenafil to be effective, sexual stimulation must occur.
An alprostadil cream that patients apply into the tip of the penis (the urethral meatus, the opening that urine passes through) is currently available in the UK and Europe. It is currently under review by the U.S. Food and Drug Administration (FDA). After application of the cream, an erection occurs within five to 30 minutes, and the erection lasts one to two hours in men who respond to the cream. Doctors recommend that one use the cream for a maximum frequency of two to three times per week and no more frequent than once every 24 hours. It has essentially the same contraindications and side effects as the other formulations of alprostadil. The cream may cause vaginal burning in roughly 4% of partners. Men should not use alprostadil cream for sexual intercourse with women of childbearing potential unless a condom is used. Researchers have performed controlled trial studies to evaluate the safety and effectiveness of this drug. Overall, 52% of men reported improvement in their erections compared to 20% of men receiving placebo. A later analysis demonstrated that 36% of men using the alprostadil cream had a clinically relevant improvement in vaginal penetration ability and 31% clinically relevant improvement in ability to have successful intercourse to ejaculation.