If I threw up my pain medication how long should I wait till I can take more?

Depends! If you threw up because of opioid-induced nausea you are taking too much or the wrong one. In either case talk to your doctor. It also depends on how long after you took the med and whether it is a immediate release or a sustained release compound. So you really need to talk to your doctor about these situations.