06-09-2017 02:56 PM
I would like to, from LabVIEW, connect to TestStand, and retrieve the name of the currently Executing Step, without supplying a sequence file path such as if I were to use the GetSequenceFileEx method.
If there is no sequence file actively executing, it is ok if this returns an error.
06-09-2017 03:44 PM
I guess, that it is not possible.
To access executing step name, you need to have sequence context reference. So one way is to launch from LabVIEW TS Engine -> sequence -> get context. The second way (but I'm not sure in it), that your sequence in pre or post step callbacks will broadcast (by named queue, or something) name of executed step, and you LabVIEW application will catch it. Broadcast sequence context does not make sense, b/c while you will process it, it'll be changed (b/c it has dynamic value).
But, maybe, someone knows nice solution for it - in this case I'd also be very happy to hear it...
Sincerely, kosist90
06-13-2017 08:31 AM
Hey,
There TestStand Palette gives you a Sequence Context ctl for your front panel. This should be your input, and you need to send the reference of ThisContext from the Sequence you wish to track.
From that, a property node gives you the Step reference and calls the currently executing step in that Context.
I've attached a vi that just outputs the name of the current Step, but you should be modifying this.
I hope this helps.
Nic
06-13-2017 11:36 AM
This approach is clear; but it means, that you need to add input SequenceContext to every code module executing within TestStand - what is quite annoying and not optimal; and then somehow also send this data away - b/c, as author of topic told, he'd like to connect to TestStand, and retreive step names.
Sincerely, kosist90
Caraya test framework for LabVIEW – convert your VIs to test code!