When the Experimenter is opened from the menu the respective GUI is created with the Experimenter as the focus object. As part of the PreOpen code of the window a check is made whether an experimenter actually exists in the model. If not, it creates one with the following code.
Object experimenter = createinstance(library().find("Experimenter"), node("Tools", model()));
experimenter.name = "Experimenter";
// This makes sure that the db connection is created
treenode dbNode = function_s(experimenter, "getDBNode");
// And that its default path has "Experiment" in it
setsdtvalue(dbNode, "defaultStem", "Experiment");
// And ID any default jobs
var jobList = getvarnode(experimenter, "jobs").subnodes;
for (int i = 1; i <= jobList.length; i++) {
function_s(experimenter, "getJobID", jobList[i]);
}
The second block (lines 4-7) is supposed to set the default database name to "Experiment". That doesn't actually work though, because the "dbNode" is only initialized properly as part of the ID assignation in line 12.
If you don't intend to keep the default experiment job you only need the first two rows. But then also run the following to initialize the "dbNode".
function_s(experimenter, "getDBConnection");
That's what I could find, digging around in the view and main tree, anyway.