09-16-2015 12:29 PM
I am using the SequentialModel Sequence to update the User Interface. However, as suggested here: http://zone.ni.com/reference/en-XX/help/370052M-01/tsfundamentals/infotopics/seq_con_runstate_subpro... ; "This property does not exist during and after the execution of the last step in a sequence step group". How do I check if this property or API Member exists so that I do not get an error message when the sequence reaches the last step?
Solved! Go to Solution.
09-17-2015 08:31 AM
PropertyExists("RunState.Caller.NextStep")
Hope this helps,
-Doug
09-17-2015 09:50 AM
Hi Doug,
I tried PropertyExists() but it always returs false. In the SequentialModel, I am using RunState.Caller.NextStep.Name to find the sequence that is being executed. I would get the step names until the last step where it throws an error. Hence, I used PropertyExists() in an if ststement to avoid the runtime error. However, once I used PropertyExists("RunState.Caller.NextStep") I never got any response from RunState.Caller.NextStep.Name, i.e the if statement always returned false.
Sumit
09-19-2015 05:20 PM
I found a way thanks to NI Tech Support. The RunState.Caller.NextStepIndex will give a value of -1 if there is no next step.