Timer test

Note: Not all of the sub-inspection test toolbar buttons are technically "tests." For simplicity, that term is used to describe all of the sub-inspection test toolbar buttons.

You can add a Timer to a sub-inspection.

 

Contents  [Hide]

 

Why you might want a Timer

Circumstances in which you may want to add a Timer test to a sub-inspection:

Adding a Timer test to a sub-inspection

  1. Click the Timer test toolbar button to add this test to the sub-inspection.

  2. After the test has been added to the sub-inspection, use the Properties panel to change any properties for this test:

Timer test Properties

Property

Field type

Default setting or default display

Allows

APPEARANCE

Label

Text field

[blank]

The label or instructions displayed for this test during data entry.

BEHAVIOR

TimerSeconds

Text field

0
Timer counts up from zero until operator stops it.

Enter a value greater than 0 (zero) and the timer counts down from that number in seconds.

DATA

ResultStorage

Multiple choice

DoNotStore
Does not save any values associated with the timer.

The options SPCStandard and Traceability store the timer value in seconds using the selected SPC standard (or traceability) selected in either of those properties.

SPCStandard

SPC standard

[blank]

Select an SPC standard for which to store the timer value in seconds.

Traceability

Traceability

[blank]

Select a traceability field in which to store the data.

MOBILE

TimerCode

[Mobile only]

Code

[The LiveCode code that executes every second when counting up from zero]:

Put “Elapsed time = “&getTime(“m”)into me

Enter LiveCode code that determines how the number of seconds is displayed. This code will automatically display when the TimerSeconds property is set to a non-zero value:

Put “Remaining time = “&getTime(“s”) into me

Note: Using “m” displays “00:00“ (minutes:seconds) whereas “s” only displays the number of seconds.

PC

AutoStart

[PC only]

True/False

False
The inspector must click the Start and Stop buttons to start and stop the timer.

True
The timer automatically starts when the sub-inspection opens, and it automatically stops when the sub-inspection is submitted or cancelled or when the timer counts down to 0. The Start and Stop buttons for this test are not displayed.

TestID

The TestID property is only used in Python scripts for PC Collect inspections.

A unique TestID number is automatically assigned to each test in the inspection, but you can change this number to a more meaningful name.

For more information, see About the TestID property

Executing a formula for a Timer test

You can optionally choose to execute a formula for a Timer test when certain conditions are met during a running inspection.

See the OnChange topic for specifics about conditions that trigger the execution when a Timer test is used in a sub-inspection with a formula.

Related topics