04-20-2015 04:47 PM
Hi,
Is there a single place in the runstate tree that holds the step properties (status, result etc) of the step just executed, that is independent of where the step lies in the sequence heirarchy? That is, is there a single place I can look for the current step status, no matter where that step is in the sequence tree? Or do I need to know where in the heirarchy the step lies, in order to examing the appropriate item in runstate, or locals.resultlist for that matter, to check it's status? It would be useful because I want to save information to frames of a video, and key on the step failures. I'm trying to build a kind of "metadata" file to go along with the video, that contains the current teststand status in every frame, from within a labview vi. I have an alternate way to do this in mind, just I was curious if this way is possible (just looking at a single place in the runstate tree for the current step status). Hope this makes sense.
Dave J.
04-21-2015 06:30 PM
Would "runstate.previousstep.result" give you the functionality you had in mind?
04-21-2015 07:29 PM
Ya actually it probably would. But I notice when running the vi that I want to read this value asynchronously, occasionaly the property becomes invalid temporarily for some reason. If I put it in the watchlist while running a sequence I see flashes of it being invalid. Probably depends on the sequence context. I may just create a string in globals and copy the status to there using a callback. That is my plan b. Thanks for the input.