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 |
var=hub_time() |
|
Range: |
|
|
Describe: |
Creates an object for the timer on the TI-Innovatorâ„¢ Hub. |
|
Result: |
|
|
Type or |
Control |
var.measurement()
|
Command: |
var.measurement() |
|---|---|
|
Command |
var.measurement() |
|
Python |
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 |
Control |
var.reset_time()
|
Command: |
var.reset_time() |
|---|---|
|
Command |
var.reset_time() |
|
Range: |
|
|
Describe: |
Resets the time to zero. |
|
Result: |
|
|
Type or |
Control |
