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.
|
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 |
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 |
Control |
var.set(value)
Command: |
var.set(value) |
---|---|
Command |
var.set(value) |
Python |
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 |
Control |
var.off()
Command: |
var.off() |
---|---|
Command |
var.off() |
Range: |
|
Describe: |
Sets the power level to zero. |
Result: |
|
Type or |
Control |
var.on()
Command: |
var.on() |
---|---|
Command |
var.on() |
Range: |
|
Describe: |
Sets the power level to 100. |
Result: |
|
Type or |
Control |