Most sleep studies are setup like a hotel rather than like a hospital room. Very few people can stay completely awake for a whole 8-10 hour sleep study. With that said, they can study your sleep even if you only give them 30 minutes worth to test. If you completely fail to fall asleep, that still gives them some results, but they may invite you back the following night to try again.