Python Script - Live

In this section

Purpose

Device Properties

Controls

See also

Auto Group

Blinking Light

Comms Processor

Control Delay

Control Router

Counter Processor

Email Sender

Email Sender - Secure

Generic Controls

Latching Light

Logger

Logic Function

Preset - Global

Preset - Snapshot

Preset - Subdomain

Python Script - Referenced

Schedule Generator

Scheduler

Purpose

The Live Python device allows you to add Python scripts to your project as string control values, rather than creating individual functions on the Script tab. The main benefits are:

The device has an editor icon on its control surface. Once you have emulated or deployed the project, you can double-click this icon to edit the script in an external editor.

When scripts are stored in Live Python devices, they are encrypted. If you place a Live Python device on a locked page, users who do not have the required access rights will not be able to view the script, either by clicking the editor icon or by viewing the project or plugin file.

Notes:

Tips:

For information on writing Python scripts, refer to the Python Developer's Guide.