Digi IX30 User Manual page 660

Table of Contents

Advertisement

Applications
Depending on your device configuration, you may be presented with an Access selection
menu. Type shell to access the device shell.
2. At the shell prompt, use the python command with no parameters to enter an interactive
Python session:
# python
Python 3.10.1 (default, May
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
3. Import the ain submodule:
>>> from digidevice import ain
>>>
4. Use the help command with ain:
>>> help(ain)
Help on module digidevice.ain in digidevice:
NAME
digidevice.ain - API for reading the device's analog input ports
DESCRIPTION
This module reads the device's analog input ports:
...
5. Use Ctrl-D to exit the Python session. You can also exit the session using exit() or quit().
The digidevice led submodule
Use the led submodule to redefine the purpose of any front-panel LED on the IX30 device. With this
submodule, you can:
Gain control of the LED with the led.acquire() function.
n
Define the state of the LED with the led.set() function.
n
Use the use() function to create a function that acquires, sets, and releases an LED.
n
Optionally release control of the LED with the led.release() function.
n
See
The use(led) function
Available LEDs
LED
All available LEDs
Online indicator
IX30 User Guide
9 2021, 22:49:59)
for instructions on using these methods.
Develop Python applications
Attribute name
Color
Led.ALL
Blue
Led.LAN3_RX
660

Advertisement

Table of Contents
loading

Table of Contents