NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

While Loop exiting on Time conditions that may last for hours or days.

Is there a function that I can make use of in Test Stand that will permit me to use in a "While Loop" or "Do While Loop" so that I can execute a series of tests repeadidly that last for hours or even days, but exiting on the precise time specified?  This would have to be some sort of combination of Date and Time function that either returns numbers or a boolean expression that a "While Loop" or a "Do While Loop" can operate off of.

 

Best Regards,

 

   Edmund

 

 

0 Kudos
Message 1 of 5
(2,828 Views)

Explore on the flow control steps, you will be able to know more about using loops in TS.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 5
(2,799 Views)

I understand the looping in Teststand, my question is more about functions that return Time and Date, and what function can provide me a numereical value that can represent time in hours and days, without looping back to Zero count after about 3 days since the last reboot.

 

Most of the functions I found return Date in time in the form of a string.

0 Kudos
Message 3 of 5
(2,793 Views)

I think what you want is Seconds(False).  This will return a Unix timestamp (seconds from 1970).  I have systems that run for days (burn in related) and this is accurate enough for determining periodic tests. 

 

Pulido Technologies LLC

0 Kudos
Message 4 of 5
(2,787 Views)

Hey Edmund,

 

Here's an example that was posted on the forum that you can download and try (it used Seconds() like pulidotech mentioned):

 

https://forums.ni.com/t5/NI-TestStand/While-loop-needs-a-countdown-timer/td-p/1163913

 

Regards,

 

Ryan Curtis

Product Support Engineer

National Instruments

0 Kudos
Message 5 of 5
(2,782 Views)