Hub Time

This object can be used to interface with analog sensors that are not explicitly supported

TIMER interface to the TI-Innovator™ TIMER object.

Add Input Device

Item

Description

Hub Time

Provides access to the internal millisecond timer.


CE products: from analogin import *

TI-Nspire CX II: from ti_hub import *

 

 

The function to create the object is pasted from the menu.

var=hub_time()

Command:

var=hub_time()

Command
Syntax:

var=hub_time()

Range:

Describe:

Creates an object for the timer on the TI-Innovator™ Hub.

Result:

Type or
Addressable
Component:

Control

 

var.measurement()

Command:

var.measurement()

Command
Syntax:

var.measurement()

Python
Code
Sample:

TI Nspire CX II:

from ti_hub import *

from time import *

t1=hub_time()

t1.reset_time()

print("Before: ", t1.measurement())

sleep(.5)

print("After: ", t1.measurement())

 

CE products:

from timer import *

from time import *

t1=hub_time()

t1.reset_time()

print("Before: ", t1.measurement())

sleep(.5)

print("After: ", t1.measurement())

Range:

Describe:

Returns the current value of the timer in milliseconds.

Result:

 

Type or
Addressable
Component:

Control

 

var.reset_time()

Command:

var.reset_time()

Command
Syntax:

var.reset_time()

Range:

Describe:

Resets the time to zero.

Result:

Type or
Addressable
Component:

Control