07-12-2017 03:55 AM
hi
i am modifying testexec solution to support batch execution
looking for a way to identify similar trace event inside your api
for single uut i used
exViewMgr_TraceEvent(object sender, NationalInstruments.TestStand.Interop.UI.Ax._ExecutionViewMgrEvents_TraceEvent e
how can i identify each socket starting new step event for example?
Solved! Go to Solution.
07-12-2017 04:30 AM
Short answer: One ExecutionViewManager per execution.
Long answer:
Each socket is an individual execution. The ExecutionViewManager is connected to a single execution. That means that if you want to display/track multiple sockets, you need the same amount of ExecutionViewManagers (and appropriate visual controls).
07-12-2017 05:54 AM
ok , can you please elaborate on the multiple execution view managers
i created another AxExecutionViewMgr element named "axExecutionViewMgr1" and assigned its trace event to a dedicated handler function(hoping to handle this 2nd thread exec inside)
the thing is that this 2nd AxExecutionViewMgr trace event is not envoked
what else should i assign ?
07-12-2017 06:00 AM
If you want to display the tracing, you need a second SequenceView.
Then connect the second SequenceView to the second ExecutionViewManager and assign the second socket execution to that ExecutionViewManager.
07-12-2017 06:12 AM
can you please write this line which
connects the second SequenceView to the second ExecutionViewManager and assign the second socket execution to that ExecutionViewManager.
I need coding support here..
c# .net
07-12-2017 06:21 AM
Copy the line which is used for the default control and modify it accordingly.
Hint: The method you look for is "ConnectExecutionView" (for the first part of the question).
07-12-2017 06:27 AM
this was the original line:
this.axExecutionViewMgr.ConnectExecutionView(this.axExecutionSteps, ExecutionViewOptions.ExecutionViewConnection_NoOptions);
modified it to :
this.axExecutionViewMgr1.ConnectExecutionView(this.axSequenceFileViewMgr1, ExecutionViewOptions.ExecutionViewConnection_NoOptions);
axExecutionViewMgr1 - additional execviemgr
axSequenceFileViewMgr1-additional seqview mgr
is this what u mean?
07-12-2017 06:45 AM
Yes, and now you have to assign the socket execution to the ExecutionViewManager.
Search the code for any assignment of an execution (e) to an ExecutionViewManager, duplicate and modify the appropriate code accordingly. Please note that you might have to add more than just one line (in order not to break existing code).
07-12-2017 09:16 AM
this is the only place:
private void axApplicationMgr_DisplayExecution(object sender, NationalInstruments.TestStand.Interop.UI.Ax._ApplicationMgrEvents_DisplayExecutionEvent e)
{
// bring application to front if we hit a breakpoint
if (e.reason == ExecutionDisplayReasons.ExecutionDisplayReason_Breakpoint || e.reason == ExecutionDisplayReasons.ExecutionDisplayReason_BreakOnRunTimeError)
this.Activate();
// show this execution
this.axExecutionViewMgr.Execution = e.exec;
this.axExecutionViewMgr1.Execution = e.exec; //added now
// show the executions page in the list bar
this.axListBar.CurrentPage = EXECUTIONS_PAGE_INDEX;
// in case we are already showing the executions page, ensure we switch to steps or report tab as appropriate
this.ShowAppropriateTabs();
}
07-12-2017 09:38 AM
This will attach the same execution to both SequenceView controls. This is not what you want.
You have to attach the socket 0 execution to SequenceView0 and socket 1 execution to SequenceView1....