https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x5M5CAI&l=en-US
Programmatically Disable Test Sockets in the Batch Process Model - NI
This knowledge base article explains how to disable specific test sockets at the beginning of your test sequence running with the Batch Process Model....
test socketsin thebatch processprogrammaticallydisable