NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Socket Index

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,

 

 

0 Kudos
Message 1 of 6
(6,819 Views)

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.

0 Kudos
Message 2 of 6
(6,784 Views)

Hi James,

Thank you for your time,

It works perfectly

 

0 Kudos
Message 3 of 6
(6,764 Views)

 

 

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)

 

 

0 Kudos
Message 4 of 6
(6,681 Views)

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?

 

0 Kudos
Message 5 of 6
(6,642 Views)

 

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.

0 Kudos
Message 6 of 6
(6,632 Views)