04-07-2015 09:24 AM
Dear LabVIEW and TestStand Community!
I'm trying to add FileGlobal Variables as limits to TestStand step NumericLimit programmatically, via LabVIEW, via TS API. I attach screenshot of the code, which I use (part of it - the module, which only sets values to low and high limit of the step), and also I attach, what I manage to get.
In TS, when I open sequence file, after running of the code, I can see in the description line of the test, that it accepted limits, which I set from LV - you can see it from the screenshot, it is marked with yellow. But in the Tab "Limits", there are still default numeric values, not FileGlobal Variables.
Could anyone explain, what doest it mean, and how to set up them correctly?
Thanks a lot in advance!
Solved! Go to Solution.
04-07-2015 09:59 AM
Are you implementing a substep module? If hope so....
You have to set the appropriate "UsexxxExpr" boolean to true also.
Norbert
04-07-2015 10:09 AM
Dear Norbert_B, thank you for your reply, but I didn't get it fully. First, I create sequences in sequence file. Then, I create fileglobal variables. Then - steps, and load code modules to steps. And after that I try to setup fileglobals vars for limits of proper steps.
Could you, please, explain, what is "UsexxxExpr"? How can I setup it? I had a look and property node, and invoke nodes for steps, but I didn't find it...
04-07-2015 10:10 AM
I refer to step variables of the NumericLimit steptype as you obviously create instances from it. Just like you already modify the limits themselves....
So this is no edit substep, i see..... a Sequence File Translator?
Norbert
04-07-2015 10:25 AM
It's kind of sequence generator what I'm doing now...
Thank you very much for fast reply, but when I setup "UsexxxExpr" to true, it doesn't change the situation... Could you, please, check my attachment? Maybe, some mistake in syntax?
04-07-2015 03:04 PM
04-08-2015 01:39 AM
Cool, it works! Thanks a lot!!!
04-08-2015 02:05 AM
OK, next time i set the xxx into <xxx> to be more understandable.....
Norbert
04-08-2015 02:11 AM
Actually, it was not clear, because "Limits" at the beginning of the expression was missed... B/c "UsexxxExpr" and "Limits.UsexxxExpr" - looks different, and it doesn't matter, whether there is xxx or <xxx>.
But anyway, thanks a lot for your advises!
07-16-2021 02:59 AM
I use C# , It works, it seems that you parameters are not correct. It should be "Limits.Low", not "Limits.Expr",
this.axSequenceFileViewMgr.SequenceFile.GetSequence(y).GetStep(z, StepGroups.StepGroup_Main).AsPropertyObject().SetValNumber("Limits.Low", 1,13);
this.axSequenceFileViewMgr.SequenceFile.GetSequence(y).GetStep(z, StepGroups.StepGroup_Main).AsPropertyObject().SetValNumber("Limits.High", 1, 15);