As a rule, I usually only cough in the a.m. when I'm getting up & around. So, I have collected a sample then & taken it to the lab.
Also, I always cough when I do PFTs, so that's a good time for me to have the ole spit cup ready too. Do you cough much while doing PFTs? That could be an idea.