Lock a Resource While Running Tests in Parallel in TestStand

Updated Oct 27, 2020

Environment

Software

  • TestStand

I have a sequence file that is being called using the batch or parallel process model and it contains a step that uses a resource which cannot be accessed by two processes at once. How can I lock this resource so only one test socket can access it at a time but continue running my sequence with the batch or parallel model?

The recommended method for locking a resource is to create a lock step type in the main sequence before executing the step that accesses the resource. This community example provides a sequence file that uses this lock step type to lock a resource appropriately and explains how to configure the sequence in detail.