11-30-2015 09:38 AM
Hello,
I add programmatically a PassFail Step to a TestStand sequence (4.0), but I don’t find the way to modify programmatically the parameters 'DataSource'.
If someone can help me, by advance thank you.
Romuald
Solved! Go to Solution.
11-30-2015 09:41 AM
Step.DataSource = False or Step.DataSource = True. Put this in the pre or post expression.
Is there something specifically that you want to set it to?
11-30-2015 09:55 AM
I’m a beginner with testStand, maybe I 'm not in the good way.
I parse a file with testStand for create a new testStand sequence. I add to the new sequence a new step for compare the read value to an expected value.
I don’t find the way to programmatically modify DataSource, I would like to add for example: “Step.Result.PassFail=(Locals.readValue==Locals.ExpectedValue)”
I hope, my explanations are clear.
11-30-2015 11:37 AM
You will most likely need to set it using the API. Something like this:
Locals.PassFailStepReference.AsPropertyObject.SetValBoolean("Result.PassFail", 0, Evaluate(Locals.readValue == Locals.ExpectedValue))
Or just set your DataSource:
Locals.PassFailStepReference.AsPropertyObject.SetValBoolean("DataSource", 0, "Locals.readValue == Locals.ExpectedValue")
the second option might be a better option.
11-30-2015 02:40 PM
Hello,
It works with SelValString.
Thank you for your help 🙂
Romuald