Hi JenniferB,
I'm not sure exactly what is wrong with the code you posted, in either case, you probably will want to use the TestStand UI Controls to starts a new execution rather than call into the API directly.
The TestStand UI Controls make it really easy to do this kind of thing and handles a lot low level functionality behind the scenes that you would otherwise have to implement yourself. There are 3 Manager Controls, the ApplicationMgr, SequenceFileViewMgr, and the ExecutionViewMgr. They can be used to develop user interfaces, and connect visible UI controls (like buttons and list boxes) to automatically control the TestStand API.
We always encourage people to use these Manager Controls as it is less prone to error and also a lot easier to implement.
Jervin Justin
NI TestStand Product Manager