NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing Step Pass/Fail result

Hi,

In my script I am setting the result of the pass/fail step using a global.

After the sequence executes completely the result is always coming as 'Failed'.

I have checked the Global value after every step in the sequence and its 'True' always but still the sequence result is 'Failed'.

I am not able to figure out how this 'Fail' status is coming even after successful execution of sequence.

 

Suggestions are welcomed.

 

Regards,

Runjhun A.

0 Kudos
Message 1 of 7
(3,353 Views)

Can you post an example code plz?

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 2 of 7
(3,352 Views)

Sorry I can't produce any example code because this problem is coming only in that particular script and I can't produce that code.

 

But after all the steps exceuted successfully, the final result of the sequence is failed. Thats my confusion. What can be the possilble reason for this.

 

0 Kudos
Message 3 of 7
(3,348 Views)

It's gonna be hard to help you without the SequenceFile...

 

Do you have other step than Pass/Fail test? how do you change the step result? which method/Statement are you using?

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 4 of 7
(3,345 Views)

See its not only an Pass/Fail steps' sequence.

I have many other steps also like Action steps, expressions, loops and all.

Secondly the step result I am deciding upon the execution result of the LV module.

I have created a File Global and that I am assigning to the Data Source of the Pass/Fail step.

 

" Step.Result.PassFail = FileGlobals.StepPassFail"

 

And this variable is accessed by number of steps in my sequence file (but these execution of steps is dependent upon user selection).

 

0 Kudos
Message 5 of 7
(3,342 Views)

Ok,  I don't think this is the main issue, but I strongly suggest you to replace the fileglobal (use a local variable instead) Fileglobals have to acces files so it's not 100% reliable and it's not optimized.

 

 

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 6 of 7
(3,338 Views)

Ok, thanks a ton for your suggestions.

The problem is solved and I guess the FileGlobal might have been causing the problem (though I haven't changed it yet).

 

Regards,

Runjhun A.

0 Kudos
Message 7 of 7
(3,335 Views)