07-27-2018 09:31 AM
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.
07-27-2018 09:35 AM
Hey,
Take a look through this KB - https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7p7SAC
Let me know if you have any troubles with it.
07-27-2018 10:23 AM
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?
07-30-2018 12:17 AM
Have a look into modelsupport2.dll ( CVI source code is provided) and modelpanels.uir.
07-31-2018 12:26 PM
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.