Environment for Python Scripts (Operators)

Instrument
DCA-X
N109x
UXR Scope
Flex Apps:
FlexDCA
FlexRT
Python

A simple XML configuration file identifies your operator script. In addition to calling the script, the XML file populates the User Operator Setup dialog.

The version of Python supported for user operators is Python 2.7. Python 3 is not supported. You must modify the PC's PATH environment variable to include the path to the Python 2.7 executable. For example, C:\Anaconda on a PC and C:\Users\dca-admin\Anaconda on an 86100D.

When a user function is run, the following events occur for each data acquisition:

  1. FlexDCA passes the source waveform, standard variables, and your custom variables available to your Python script as a dictionary. In Oscilloscope and TDR modes, the source waveform is a one-dimensional numpy array. In Eye mode, the source database is a two-dimensional numpy array.
  2. FlexDCA executes this script.
  3. The script returns to FlexDCA a number of standard output variables from the Python script, including the output waveform.