11-11-2011 10:20 AM
How can I determine the current time in Teststand? After determining the time, I want to do a comparison to a time that I have saved as a StationGlobals variable and then execute a set of tasks. Is there any function in Teststand to do this time comparison?
11-11-2011 11:36 AM
Open the expression browser (click one of the f(x) buttons).
Goto the Operators/Functions tab and navigate to Function/Time. There is Time(), Date(), and Seconds(). You probably want Seconds().
You can also call a code module you write to obtain time values from your development environment specific libraries.
- James
11-11-2011 01:37 PM
Is there any function to compare the time you have entered with the system determined time from Time (), or do you have to compare user-entered time vs. system time from Time() as strings?
11-11-2011 01:44 PM - edited 11-11-2011 01:45 PM
Sorry, there isn't a comparison. You'll have to write your own or use time functions from your code module development libraries.
11-11-2011 02:26 PM
Can I extract the hours and minutes only from the Time () function? I don't want the seconds.
11-11-2011 02:52 PM
All the parameters to Time are optional, so you could just specify the first three and omit seconds, milliseconds, etc...