Power

POWER is Power / FET control interfaces for controlling external power with the TI-Innovator™ Hub.

Add Output Device

This menu has a list of the output devices supported by the ti_hub module. All the menu items will paste the name of the object and expect a variable and a port used with the device.

Item

Description

Power

Functions for controlling external power with the TI-Innovator™ Hub.

set(value): Sets the Power level to the specified value, between 0 and 100.
on(): Sets the Power level to 100.
off(): Sets the Power level to 0.

CE products: from power import *

TI-Nspire CX II: from ti_hub import *

 

 

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

var=power("port")

Command:

var=power("port")

Command
Syntax:

var=power("port")

Range:

Describe:

Creates an object for a Power / FET control interfaces for controlling external power with the TI-Innovator.

Result:

 

Type or
Addressable
Component:

Control

 

var.set(value)

Command:

var.set(value)

Command
Syntax:

var.set(value)

Python
Code
Sample:

TI Nspire CX II:

from ti_hub import *

from time import *

 

p1=power("OUT 3")

 

# Set 50% power

p1.set(50)

sleep(2)

# Turn off

p1.off()

 

CE products:

from power import *

from time import *

 

p1=power("OUT 3")

 

# Set 50% power

p1.set(50)

sleep(2)

# Turn off

p1.off()

Range:

Describe:

Sets the state of the output to “value” (between 0 and 100).

Result:

Type or
Addressable
Component:

Control

 

var.off()

Command:

var.off()

Command
Syntax:

var.off()

Range:

Describe:

Sets the power level to zero.

Result:

Type or
Addressable
Component:

Control

 

var.on()

Command:

var.on()

Command
Syntax:

var.on()

Range:

Describe:

Sets the power level to 100.

Result:

Type or
Addressable
Component:

Control