Ensure the settings of the Sequence call step are configured to not wait for the thread or execution object to complete. Instead, you must manually wait for the completion of the execution or thread object by including a Wait step in your sequence. The results of the execution or thread will be collected at the Wait step and inserted into the report at the step's relative location.
If you are running a sequence in a new thread and wish to collect the results of the sequence, you must disable the Automatically Wait for the Thread to Complete at the End of the Current Sequence option. Figure 1-1 shows the "Automatically Wait for the Thread to Complete at the End of the Current Sequence" option disabled. You may need to store the ActiveX reference to the thread depending on how you will configure your wait step (discussed later). To do this enter the property path of the variable (type ActiveX reference) that will store the reference to the new thread into the "Store an ActiveX reference to the New Thread in:" control.
Thread Settings Dialog Box
If you are running a sequence in a new execution and wish to collect the results of the sequence, you must select the Do not wait option within the Wait for Execution to Complete control. Figure 1-2 shows the Do not wait option selected. You may need to store the ActiveX reference to the execution depending on how you will configure your wait step (discussed later). To do this enter the property path of the variable (type ActiveX reference) that will store the reference to the new execution into the "Store an ActiveX reference to the New Execution in:" control.
Execution Settings Dialog Box
Once you have set the options above, you must insert a Wait step and configure it wait on the thread or execution whose results you want to collect. After inserting the Wait step, right-click on the step and select Configure Wait from the context menu. You will then need to select whether you will be waiting on an execution or a thread using the "Wait for:" control. There are two different ways in which you can specify the thread or execution to wait on. The first involves directly selecting the sequence call step that is configured to run a sequence in a new execution/thread using the "Specify by Sequence Call" control. The sequence call must be located in the current sequence in order for this option to work. The second method involves using an ActiveX reference to specify the execution/thread to wait on. If you select this option, then you must store an ActiveX reference to the new execution/thread as mentioned above. You may then specify the execution/thread to wait on by entering the variable that holds this reference into the "Specify by ActiveX Reference to the Thread/Execution" control. Note that the options will change depending on the type of object you have selected to wait for. Figure 1-3 shows the Wait Step Configuration dialog, that is configured to wait on thread launched by a sequence call step.
. Wait Step Configuration Dialog
Figure 1-4 shows the Wait step at the end of the MainSequence. Here we run a sequence in a new thread and explicitly wait for the thread to finish by adding the Wait step at the end of current sequence. When execution flow reaches this Wait step, TestStand will automatically collect the result information from the CPU sequence call and insert it at the end of the report of the calling sequence.
Sequence with Wait Step