NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Skip step if time execution lasts too much

Hey guys,

 

I am quite new in TestStand and I am developing a sequence where I use MQTT protocol. When I lose Internet connection, the MQTT connection step takes too long when there is no connection. 

 

I would like to control the execution time of the step and if it takes more than a specific time introduced by me, just skip the step because it will not connect anyway.

 

I found the way to see the execution time of the step this way: 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8tKSAS&l=en-GB

 

But I don´t know how to implement it in the step settings.

 

Thanks

 

0 Kudos
Message 1 of 2
(1,821 Views)

Usually you would handle something like that in the code module that is using the MQTT protocol instead of TestStand. Because even if you find a way to monitor the step time, and want to skip the step, the step would still be running because the code module is still running.

 

What you should just do is add a timeout parameter into the step for the MQTT protocol. Since that just uses TCP under the hood, there should be a way to set the timeout. That way the code module actually stops, instead of just skipping over it.

0 Kudos
Message 2 of 2
(1,790 Views)