NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Side by Side Parallel Execution Displays

Chapter 3 of the TestStand Reference Manual describes Executions. The short answer is that an Execution contains one or more thread, grouping them together as a unit so they can share resources such as a display or a report and so you can control them as a unit. For example, terminating an Execution, terminates all threads in the execution.
 
If you want use separate displays or reports, or terminate the threads independently, you should create separate Executions. The Batch and Parallel process models create separate Executions for each test socket.
 
If you are going to create your own operator interface, you should also read Chapter 9 in the TestStand reference manual.
Message 11 of 28
(3,025 Views)
How do I connect a ExecutionViewMgr to a specific execution (not using ConnectExecutionList)?
Lets say ExecutionViewMgr1 (with ExecutionView1) for UUT 1 and so on...
I'm starting two executions in the sequence file, and want to monitor my two UUT's simultaneously in one screen.
0 Kudos
Message 12 of 28
(3,007 Views)
ConnectExecutionList can only connect to a control that can display a list, such as a list bar page. It causes the control to display a list of all executions.
 
To connect an execution to an ExecutionViewMgr, you set ExecutionViewMgr.Execution = execution.
 
Typically you do this in the handler for the ApplicationMgr.DisplayExecution event.
 
This event is fired when you create a new execution or when you select an execution (for example, in a list bar page that is displaying a list of executions).
0 Kudos
Message 13 of 28
(2,993 Views)
Hello All

Do anyone would like to share the example implemented in MFC to display Side by Side Parallel Execution.
A simple example to show two executions in one window is ok.

Thank you in advance.

Bendy
0 Kudos
Message 14 of 28
(2,589 Views)

I try to create four ExecutionViewMgrs connect to four SequenceViews, but i find no way to display separate execution thread in one execution.

Here i modified the example supplied by NI (C++ in MFC), shown below, but it can only display one at a time.

// the ApplicationMgr sends this event to request that the UI display a particular execution
void CTestExecDlg::OnDisplayExecutionApplicationMgr(LPDISPATCH exec, ExecutionDisplayReasons reason)
{
// bring application to front if we hit a breakpoint
if (reason == TSUI::ExecutionDisplayReason_Breakpoint || reason == TSUI::ExecutionDisplayReason_BreakOnRunTimeError)
this->SetForegroundWindow();

mExecutionViewMgr->PutRefExecution(TS::ExecutionPtr(exec));
mExecutionViewMgr1->PutRefExecution(TS::ExecutionPtr(exec));
mExecutionViewMgr2->PutRefExecution(TS::ExecutionPtr(exec));
mExecutionViewMgr3->PutRefExecution(TS::ExecutionPtr(exec));
}


How can i channge the Property of ExecutionViewMgr according to Execution thread.

Bendy
0 Kudos
Message 15 of 28
(2,573 Views)

Hi Bendy,

 

I do not understand quite what you are trying to do based on your second post.  It sounds to me like you are trying to view multiple executions in one window.  Is this correct?

Cheers,
Kelly R.
Applications Engineer
National Instruments
0 Kudos
Message 16 of 28
(2,555 Views)
Hello Kelly Rink Yes, you are right, it is that i want. But i think i have get the point how to do that, see attached picture.
0 Kudos
Message 17 of 28
(2,540 Views)
Sorry, i can not attach my picture.
However, thank you for your interest.

BR
Bendy
0 Kudos
Message 18 of 28
(2,536 Views)

Hi Bendy,

 

I just wanted to verify that you do have a good idea of how to achieve the functionality that you were looking for.  It was a bit unclear to me from your previous post.  Please let me know if you have any further questions.

Cheers,
Kelly R.
Applications Engineer
National Instruments
0 Kudos
Message 19 of 28
(2,515 Views)

Hi, could you tell me how did you menage the ListBar control? I cannot connect it to all the executions. I believe that I should modify the "Configure Listbar.vi" but it still doesn't work.

 

Thanks

0 Kudos
Message 20 of 28
(2,041 Views)