09-06-2018 10:10 AM
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
09-07-2018 12:35 AM
Explore on the flow control steps, you will be able to know more about using loops in TS.
09-07-2018 08:15 AM - edited 09-07-2018 08:23 AM
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.
09-07-2018 08:51 AM
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.
09-07-2018 09:12 AM
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