NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

It is possible to jump back to setup from the main sequence

I like to jump back to the setup sequence when I have an error in the main sequence. Is there a opportunity to jump back to setup with goto or something else.
0 Kudos
Message 1 of 4
(3,321 Views)
Hi Joe,

Bob may have answered you question here,
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000001C8E0000&UCATEGORY_0=_8_&UCATEGORY_S=0.

If you are using TS3.1 there is now a Goto step type that should meet your requirement.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,321 Views)

Hi Ray,

 

     I have a simple question regarding Goto. Using Goto we can go back to anystep and execute, however after executing that particular step I want the control to go back after "Goto" statement. Could you explain me how it is possible ?

 

Example :    

 

              Step1

              step2

              step3

              Goto step1

              step4

 

In the above scenario, when the control go back to step1 and excutes then want the control back to step4.

 

One more imporatant question. Can I use "Goto" while testing my safety critical systems ?

 

Thanks,

Krishna

,

0 Kudos
Message 3 of 4
(2,848 Views)

Hi,

 

If all you want to do is repeat Step1 again it would be a lot cleaner just to do Step1 again rather than mess with a Goto (and the logic required to make it branch forward to Step 4).

 

ie

 Step1

 Step2

 Step3

 Step1

 Step4

 

As to the question of using a Goto, well the point here is you are 'testing' and therefore it's important to test all boundary conditions and paths through your safety critical software.

 

 

 

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(2,843 Views)