Can you explain a little more about your TestStand code? That will help us figure out why it runs in LabVIEW and not in TestStand. More detail on what example you modified and how you modified it would be helpful.
Also, I would recommend starting a new thread for your TestStand questions in the TestStand forum:
http://forums.ni.com/t5/NI-TestStand/bd-p/330
Maggie M.
Application Engineer
National Instruments.
http://www.ni.com/support