06-11-2018 09:51 PM
This sounds like such a simple question...
But the documentation on Teststand is quite brief.
I cannot find a single example on how to use the Time() function as part of an 'expression' with non default parameters.
I want to store the "timeStanpInSeconds" value (Parameter #6).
Do I have to add a value for every single parameter when I run this function?
Thanks
Solved! Go to Solution.
06-12-2018 08:56 AM
That parameter is not something that the function will return. It's something you give to the function. As far as I understand it you can throw a large number in there and it will tell you how many seconds are in the number if the number were converted to a timestamp. So you should know what that number is before you pass it to the function.
Time(True,0,0,Locals.Seconds,0,Seconds(True))
Time(True,0,0,Locals.Seconds,0,123213211)
06-12-2018 08:58 AM
A better way to say it is:
Time(True,Locals.Minutes,Locals.Hours,Locals.Seconds, 0, 12341234) will always yield 10:07:19
06-12-2018 08:43 PM
OK, thanks for that... however the expression text/help (Teststand expression browser) is quite, actually COMPLETELY misleading:
Within the Time menu
Time() Get the current time
Within it's description
Time()
This function returns the current time
Parameter 1: An optional...
...
Returns: A string containing the current time in localized format
06-13-2018 11:05 AM
It will return the current time if you don't put parameters in for parameter 6.