Python 2.2 Script Node.vi
Dropping this node on the diagram places a script node preconfigured to use the Python script node interface library there. This script node can be operated similarily to the HIQ and Matlab script node.
PYTHON New Session.vi
This function makes sure the Python shared library is properly loaded and then creates a session context which is used to store the input and output variables, the human readable and compiled script, and any error state information which might occur during execution on this session refnum.
PYTHON Compile Script.vi
This function compiles the previously assigned script text into a code stream. No evaluation is performed and therefore no input variables need to have been assigned at this point. A once compiled script can immediately get evaluated when you call the PYTHON Execute.vi.
PYTHON Close Session.vi
Closes a Python script session and disposes of any resources assigned to this session.
PYTHON Execute Script.vi
This function compiles the previously assigned script text, if this hasn't already be done and then evaluates the compiled script. Before calling this you should have assigned all necessary input variables to this session, as they are required during evalution of the compiled script.
This function can be called multiple times for the same script with new assignments to only the input variables which have changed and the compiled script will then each time be reevaluated.
PYTHON Set Server Path.vi
This function configures the interface to use a particular Python shared library.
PYTHON Set Script Text.vi
This function assigns the script text to the specified session. Each session can only contain one script at any one time. Assigning a new script clears any previously created script, compiled script and variable data.
PYTHON Set Data.vi
PYTHON Get Data.vi
PYTHON Get Version and Types.vi
This function returns a version string indicating the Python version implemented in the Python shared library server, (Date and Time when the shared library was created), and [the compiler used to create that shared library].
PYTHON Get Variables.vi
This function retrieves a list of all currently defined local variables and their type. Locale variables can have been set previously with the PYTHON Set Data.vi functions and/or been generated or updated by a previous call to PYTHON Execute Script.vi.