Hey Harsha,
Usually the way you would load parameters with the TestStand API is to use the LoadParameters method or the LoadParametersFromSequence method for that specific SequenceCallModule. Once you have loaded the parameters you can access them via the Parameters property of the SequenceCallModule. Take note that you must call one of these LoadParameter functions before accessing the Parameters property. I would recommend taking a look at the help for SequenceCallModule, SequenceCallParameters, and SequenceCallParameter. I have also posted some C# code below that should give a general idea of how to create a new step, set some of the properties for the sequencecallmodule, and set up the parameters to use their default values. Hope this helps!
//Create new step of type SequenceCall and set Name
Step myStep = myEngine.NewStep(AdapterKeyNames.SequenceAdapterKeyName,
StepTypes.StepType_SequenceCall);
myStep.Name = "MySequenceCall";
//Obtain the code module from the step
SequenceCallModule myModule = myStep.Module as SequenceCallModule;
//Set properties of the module
myModule.SequenceFilePath = "C:\test.seq";
myModule.SequenceName = "MainSequence";
myModule.UseSequenceParameterPrototype = false;
myModule.LoadParameters(false, "C:\test.seq", "MainSequence");
//Loop through and set each parameter to use default value
foreach(SequenceCallParameter myParam in myModule.Parameters)
{
myParam.UseDefaultValue = true;
}
Pat P.
Software Engineer
National Instruments