01-26-2014 02:52 AM
HI all,
I use batch model of 4 UUT's and I registered to event: axApplicationMgr_DisplayExecution(object sender, _ApplicationMgrEvents_DisplayExecutionEvent e) on my application.
Is there a way to get from the e.exec object the socket index ?
When the event occurred I'll need to set the proper Execution object to the axExecutionViewMgr object accordingly.
Tnx,
01-27-2014 10:44 AM
The message that begins with "DisplayExecution is not a good event for that because ..." in the thread http://forums.ni.com/t5/NI-TestStand/Find-test-socket-index/m-p/2714067#M44246 explains why you shouldn't try getting the socket index in that event. The post also suggests an alternative event.
Is there a reason you can't use the alternative event? You can still obtain the execution in the event via uiMsg->Execution.
01-28-2014 07:09 AM
Hi James,
Thank you for your time,
It works perfectly
02-04-2014 10:26 AM
RunState.TestSockets.MyIndex
if you need to play with it:
Put an "If" statment and in "If Codition" put:
RunState.TestSockets.MyIndex == 0 (for socket 0, or ==1 for socket1..... etc)
02-06-2014 06:33 AM
Hi Luis,
Thank you for your response but I didn't understand what do you mean?
What is the body statement of the if condition?What it should suppose to do if the condition is true?
Can you be more specific?
02-06-2014 10:18 AM
RunState.TestSockets.MyIndex is just an example how to get the socket number.
I'm using that "IF" condition to chose test equipment (or address), depending the socket.
Maybe is not what you are looking for.