Python Script - Referenced

In this section

Control Scripter

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 - Live

Schedule Generator

Scheduler

Control Scripter

Purpose

The Control Scripter is a control processing device, like the Control Operator. It allows you to apply a Python script to the output control(s) based on the value of the input control(s).

The Python scripts must be written before they can be used in this device. You can create or import Python scripts using the Script tab on the Utility Frame. For more information, refer to the Python Developer's Guide.

Note: The use of global variables in Python scripting is possible, but is not recommended.

You can select a function name on the device properties of the Control Scripter to assign a Python Script to the device. The number of input and output wiring nodes can also be specified. When the project is deployed, the script begins processing. It runs in a loop, unless the threaded option is selected on the device properties.

Tip: You can set the device to watch the inputs; this will trigger the script anytime an input value changes. If you wire a Blinking Light device to one of the inputs, it can trigger the Control Scripter regularly after a specified interval.