09-22-2013 10:45 PM
Hi all,
I am new to TestStand. I am using LabVIEW with TS applications. I have a VI that gives TRUE or FALSE output.
I am pretty sure that there is no problem with the VI. TestStand executes the next steps if the output is TRUE, but for FALSE result it just stops there forever.
Is something with my configuration? I tried executing some PASS/FAIL demo programs- but no problem with the demo codes.
Please Help.
Thanks,
Shiva
09-23-2013 01:07 AM
How to I edit the Status expression?
09-23-2013 03:44 AM
Try single stepping from TestStand into the Labview and back for that particular step.Simulate fail condition and check where it gets stuck.
FYI - There is a menu setting execute-->Break on step failure.If this setting is ON then TestStand stops execution when a step fails.
Since other programs run fine this may not be the case unless your test sequence is setting this up programmatically.
You cannot edit status expressions for NI step types like Pass/Fail.You can make your own step types and do it.
What is that you want to do using status expressions?
Ravi S
National Instruments
09-23-2013 08:42 AM
Hi Shiva,
any chance you could upload your simple TestStand sequence file and LabVIEW vi (again a simple one) so we can see what you're setting up?
If the demo's work (<TestStand>\Examples\Demo\LabVIEW\Computer Motherboard Test\Computer Motherboard Test Sequence.seq ) then are there any setting differences in your vi call compared to the settings on the simple pass fail steps in that demo?
Thanks
Sacha
09-23-2013 07:23 PM
Hi Ravi,
Thank you very much. Yes. you are right. The sequence call is causing the problem. If the result is okay then no problem, but it stops everything if something fails.
How do I fix this problem?
The status expression field for Sequence call is
(Step.Result.Status=="Done" && (Step.TS.SData.ThreadOpt ==0 || Step.TS.Data.ThreadOpt==3))? "Passed" : Step.Result.Status
I tried my pass/fail test as the first step of the program(one step above the sequence call)- it actually worked. .
Any solutions? Thanks for your time.
Thanks,
Siva
09-24-2013 12:32 AM
Is it possible to share the test sequence with the VI?
Did you try single stepping your test sequence?
Once you shortlist the step that gives the problem you can further debug by single stepping into the respective LV vi from TestStand.
Ravi S
National Instruments
09-24-2013 02:04 AM
Hi Ravi,
Thanks for the reply. I am sorry but we are not allowed to copy files or screenshots from the TestStand PC.
I will try doing single stepping and post the results.
Thanks,
Shiva
09-24-2013 08:14 AM
Hey Shiva,
On your Sequence Call step, if you go to the Step Settings and look on the Post Actions screen, what behavior do you have set for "On Fail"? It's possible that this is set to terminate execution, rather than continuing on to the next step. If that's the case, it would cause the behavior you are seeing.