Applications Develop Python applications
IX30 User Guide
660
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 9 2021, 22:49:59)
[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:
n
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.
See The use(led) function for instructions on using these methods.
Available LEDs
LED Attribute name Color
All available LEDs Led.ALL
Online indicator Led.LAN3_RX
Blue