I would like to determine an integer remainder in a test flow, so I am looking for a modulo operator %, but I only see a divide. Any way to determine modulo?

I want to write a test flow that begins control at a specific time everyday, so I want to read the current time, which is the number of seconds since 1 Jan, and then divide by the number of seconds per day. This will give me a result such as MMMMM.NNNN where MMMMM is the number of days in seconds and NNNN is the current time since midnight in seconds. This will allow the test flow to ignore the month and day, so it can execute control at a fixed time on any day that it is executed.

Hello,

I am glad to hear to use the math block in BenchVue.

Unfortunately, integer module block not provide in BenchVue version 3.6

And the “current time” block do not provide to extract the hour, minute or second value from it.

But you can extract the hour or day value by complicate logic.

This is “current time” value if assigned into variable.

Variable = TotalSeconds + DayOfYear * 86400.0 + (Year - 2016) * 31536000.0;

Example) 9/20/2016 9:47.59.578

TotalSeconds = 35260.578

DayOfYear = 264

Year = 2016

Variable = 35260.578 + 264 * 86400.0 + (2016 - 2016) * 31536000.0

Variable = 22844860.578

So attached image shows how to extract hour of day.

If you want to check next day (9/21), you should the use “DayOfYear” is 265.

Thanks for your feedback, we hope to add the extract block from current time in next version.

BenchVue team