Opens a Python session with a specific version of Python. The Python session is necessary for configuring multiple Python Nodes to run in a specific version of Python and in the same process.


icon

Inputs/Outputs

  • cstr.png Python version
    Python version specifies the version of Python in which the Python session runs. This function supports the following Python versions:
    • LabVIEW 2025 Q1 - Python 3.9 to 3.12
    • LabVIEW 2023, 2024 - Python 3.6 to 3.10
    • LabVIEW 2021, 2022 - Python 3.6 to 3.9

    Although unsupported versions might work with the LabVIEW Python functions, NI recommends using supported versions of Python only.

  • cpath.png Python path

    python path specifies the directory where Python is installed. The default is the directory of the version of Python determined by python version.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • ignrn.png session out

    session out returns a reference to the Python session.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.