Design a Timer Function
How to make a timer on older Polyscope versions
Examples are valid for:
CB2 Software version: 1.8.16941
CB3 Software version: 3.1.17779 to 3.7
Note that older or newer software versions may behave differently.
These examples can be used for both CB2 and for CB3
NOTE: A program node TIMER has been added on CB3 Polyscope version 3.7 ahead and E-series Polyscope versions 5.1 ahead, if you want to use the "timer" program node feature, please update your Polyscope following updating instructions, see here.
The example below shows how to design a Timer. This could be used if you need to know how long a waypoint or program takes to execute its task.
First, add a “BeforeStart” to the program.
1) In the “BeforeStart” set up a Boolean variable. Then define a Timer value.
2) Setup the program with Boolean variables to start/stop the timer.
3) Add an Thread that adds 0,01sec to the timer – remember to add a Wait or Sync() at the end of the Thread
You can create more timers, For example: Timer1\ Timer2 etc.