NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

goto step in another sequence

Solved!
Go to solution

Hi guys, how to configure the 'GoTo' to go to a step in another sequence?

 

 

0 Kudos
Message 1 of 20
(6,942 Views)

Hi,

 

I dont have TestStand to hand, but you should beable to browse to the required Step and just select it. Check out the TestStand Help under Flow Controls | Goto.

 

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 20
(6,942 Views)

Ray, actually I'm looking a step that terminates all current running threads and shift to the next terminal to be tested.

0 Kudos
Message 3 of 20
(6,941 Views)

Hello,

 

Is your goal to jump from one sequence to another sequence?

 

One thing you could do to realise this is the following:

- Use a goto step in your current sequence that jumps to a sequence call

- That sequence call calls a new sequence with that step inside it.

- That step can either be the only step in the new sequence or there could be a condition in that sequence that causes it to go to the desired step.

 

Can you let me know if this is what you wanted to do?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 20
(6,886 Views)

Thierry,

 

I'm monitoring a boolean value in a separate thread which I started from the main sequence. When this boolean gets true I want all threads to be stopped and current testing terminated.

 

But a goto->end in the monitoring thread doesn't stop my other threads.

 

 

 

 

Best Wishes for 2011!

0 Kudos
Message 5 of 20
(6,833 Views)

What I need is a step in my monitoring thread that go to -> main.cleanup or main.<End Group> ...

0 Kudos
Message 6 of 20
(6,829 Views)

I'd recommend calling Terminate() on your executions in your monitoring thread instead.

 

Hope this helps,

-Doug

0 Kudos
Message 7 of 20
(6,811 Views)

The 'Terminate Execution' in the post action of the monitoring thread step, will it terminate all my threads from executing?

 

The monitoring thread is running in an infinite loop, how to stop this thread when the main test sequence is finished. Can I send a flag from the main sequence cleanup to end this thread?

0 Kudos
Message 8 of 20
(6,780 Views)

Terminate Execution will terminate all threads in the current execution. If you have multiple executions you will need to call terminate on all of them, if you only have one then yes, terminate will terminate all of the threads in it. When a thread is terminated it goes to cleanup. Even the monitoring thread will do so if it is in the execution that is getting terminated. You can use a "by reference" boolean parameter to your monitoring thread's sequence that is set to false when it should exit if you'd like, however if you are terminating the execution, your monitoring thread will go to cleanup too anyway.

 

Hope this helps,

-Doug

0 Kudos
Message 9 of 20
(6,769 Views)

Doug,

 

 

regards

0 Kudos
Message 10 of 20
(6,696 Views)