12-13-2007 11:00 PM
12-20-2007 07:10 PM
Hello MotionBoy,
There are two ways to go about creating a new thread to run a step. The first is to create a new sequence, into which you put the LabVIEW step you want to run and any other steps that may go along with it. Then use a sequence call step to call this newly created sequence. Set the Execution Options of the Sequence call step to 'Use New Thread.' This will allow you to run a set of steps in a new thread, not just a VI. The second method, which is only available for a LabVIEW VI, is to use the “Run VI Asynchronously” step. This can be accessed if you right-click within your sequence and select Insert Step » LabVIEW Utility » Run VI Asynchronously. This step will allow you to call a VI and have it automatically open in a new thread. You can further customize this step by opening the configuration menu in the Step Settings.
To address the current behavior of your steps I would like to know if the modules in steps 1 & 2 pass data between them or it would be desirable for them to do so? If so you are going to need a more complex synchronization structure such as TestStand/LabVIEW queues. There is a simple example you may want to look at in the TestStand examples, under the Synchronization folder that demonstrates how to use queues. Otherwise the above solution should be all you need.
12-20-2007 08:31 PM