NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

timed while loop

Hi,

I have to time a while loop in order to go to my clean up if the step into the loop won't excute at the specefic time that i want.I find how to time a loop in this forum so i code my program as shown in the snapshot.Is my idea correct?

Regards,

0 Kudos
Message 1 of 3
(3,218 Views)

Good morning:

 

A couple questions: 

 

1.) What is the While statement? It is being cutoff on the JPG.

 

2.) The IF statement 'PASS Wait for TimedLoop', will not work.   The NI_Wait step type does NOT return a PASS/FAIL result, plus you are NOT recording the result of that step.  You would have to pass this on some other criteria.

 

3.) Where does Locals.b get initialized?

 

Thanks,

PH

0 Kudos
Message 2 of 3
(3,199 Views)

Hi Teds,
Thanks for your reply.I'm sorry for responding you lately:)))
1-I need a pass/fail condition in the while statement "which is not available in test stand" so i copied the condition from an if statement and i put it into my while statement and it works.
2-You're right,i modified it as shown in the snapshot.
Regards,

0 Kudos
Message 3 of 3
(3,158 Views)