Question for ladies who SO had a Sperm analysis

It seems so awkward and I doubt my husband will be able to successfully do that on command in a doctor's office. What if he just can't get it done? Can you bring one from home or something or what do u do if ur man has stage fright lol