Kiran,
if you work with external resources (like serial), you should controll the handle within teststand. So you would retrieve and configure the resource in a module (most often action- or pass/fail-step) and pass the handle to TestStand. Please check if the handle is a cluster, an object reference, a string or simply a number (you have to create an appropriate variable!). Passing the handle should be done as parameter of all modules using this resource.
Since you cannot be sure if the handle, which resides now in TestStand, is valid, you propably want to retrieve the resource in a pass/failstep and then use preconditions for each further step using this resource.
Example:
Get Serial Port
Read Serial Port (Precondition: Get Serial Port PASSED)
Write Serial Port (Precondition: Get Serial Port PASSED)
Close Serial Port (Precondition: Get Serial Port PASSED)
hope this helps,
Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.