NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set teststockets to disabled on creation

 

How can I disable all the testsockets on creation? Where are they created to begin with? Currently I have a for loop in PreBatch which disables them.

0 Kudos
Message 1 of 5
(2,560 Views)

Hey, 

 

Take a look through this KB - https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7p7SAC

 

Let me know if you have any troubles with it. 

 

 

0 Kudos
Message 2 of 5
(2,559 Views)

I'm aware of number of test sockets. What I need is to set the state of the socket to disabled upon creation. where are the test sockets created? 

0 Kudos
Message 3 of 5
(2,496 Views)

Have a look into modelsupport2.dll ( CVI source code is provided) and modelpanels.uir.

0 Kudos
Message 4 of 5
(2,395 Views)

Hi aan120031,

 

Based on your comment regarding the PreBatch callback, I assume you're using the batch model. The test sockets are created in the model in the "Initialize TestSockets" subsequence. That subsequence configures different parameters of the socket and then inside that subsequence is another subsequence call to "Create Test Socket Execution" which is where the socket execution is actually created.

 

By default, the "Create Test Socket Exeuction" subsequence stores an object reference to the new socket execution in Parameters.ModelPluginConfiguration.RuntimeVariables.PerSocket[Parameters.TestSocketIndex].Execution. 

Regards,
0 Kudos
Message 5 of 5
(2,381 Views)