Your doctor will ask you questions about your symptoms and health history. They may do tests to determine if your symptoms are caused by an underlying condition. You should expect a physical exam where your doctor will listen to your heart and lungs, check your blood pressure, and examine your testicles and penis. They may also recommend a rectal exam to check your prostate. Additionally, you may need blood or urine tests to rule out other conditions.
With the pumps, erections last until the user hits the deflate button, which Kohler says “doesn’t happen” accidentally. He adds that pump prostheses “are locker-room proof: Nobody can see that you have one.” (Obviously, this is not the case with the always-on malleable rod option.) Implanted pumps are reliable, experts say, with more than 90 percent of the devices working for 12 to 15 years. 
It appears that testosterone has NOS-independent pathways as well. In one study, castrated rats were implanted with testosterone pellets and then divided into a group that received an NOS inhibitor (L-nitro-L-arginine methyl ester [L-NAME]) and a control group that received no enzyme. [24] The castrated rats that were given testosterone pellets and L-NAME still had partial erections, a result suggesting the presence of a pathway independent of NOS activity.

Inside the cell, NOS catalyzes the oxidation of L-arginine to NO and L-citrulline. Endogenous blockers of this pathway have been identified. The gaseous NO that is produced acts as a neurotransmitter or paracrine messenger. Its biologic half-life is only 5 seconds. NO may act within the cell or diffuse and interact with nearby target cells. In the corpora cavernosa, NO activates guanylate cyclase, which in turn increases cyclic guanosine monophosphate (cGMP). Relaxation of vascular smooth muscles by cGMP leads to vasodilation and increased blood flow.
In some cases, however, these drugs may be unsuitable for patients with heart disease. If you are considering one of these drugs and you have heart disease, as many diabetics do, be sure to tell your doctor. In rare cases, the pills may create “priapism,” a prolonged and painful erection lasting six hours or more (although reversible with prompt medical attention).

Examples of common neurologic conditions that can lead to ED include cerebral vascular accident, multiple sclerosis, Parkinson’s disease, and spinal cord injury. Microvascular disease associated with diabetes is thought to compound the endothelial and neural injuries associated with this disease. Pelvic surgery may disrupt both neural and vascular pathways, resulting in ED.
Specially designed vacuum devices to produce erections have been used successfully for many years. Vacuum devices are safe, relatively inexpensive, and reliable. Vacuum devices do not require surgery. Vacuum devices are available over the counter or by prescription. It is important to make sure that the vacuum device have a mechanism to prevent too high of a vacuum (negative pressure).
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. [21] Notably, the pressures increased when castrated rabbits received exogenous testosterone replacement.
ICI Alprostadil may be used as a mixture with two other drugs to treat ED. This combination therapy called "bimix or trimix" is stronger than alprostadil alone and has become standard treatment for ED. Only the Alprostadil ingredient is FDA approved for ED. The amount of each drug used can be changed based on the severity of your ED, by an experienced health professional. You will be trained by your health professional on how to inject, how much to inject and how to safely raise the drug's dosage if necessary.