LV calling Python via -c command line method

Presentation on how a LabVIEW developer can access a Python developers module(file) and functions using the -c command line mode

LV_PY3_CLSlide1LV_PY3_CLSlide2LV_PY3_CLSlide3LV_PY3_CLSlide4LV_PY3_CLSlide5LV_PY3_CLSlide6

Helpful links


Updated: Nov 02 2023

Updated Presentation

Presentation

Zip Code

Notes

  • Presentation: A way to call python functions from a script using system exec
  • Programming Language used:
    • LabVIEW® 2019 Base version (which only supports 2.7 and 3.6, but I need 3.7 or 3.11)
    • Python® 3.7 and 3.11 (conda environment that was made via Anaconda®)
  • LabVIEW® is a NI (formally National Instruments) product, now part of Emerson
  • Presentation app: Microsoft’s PowerPoint
  • Presentation shown to spark ideas of use.
  • Help resource:
    • Stackoverflow®
      • Google®’s Converse
        • Bing®’s AI Chat
  • This presentation is not connected to or endorsed by any company.
  • Use at your own risk.
  • Tags: LabVIEW®, Python®, SystemExec, Script, Editor, Python environment, Conda environments
  • In this presentation, the LV vi and the python script are in the SAME folder
  • Default for python field is python.exe if you want a different evns use the full path as done in the presentation
    • C:\Users\( )\Anaconda3\envs\py3p11\python.exe (py3p11 is what i name my conda for python version 3.11
Unknown's avatar

About LV_TS_Test_Engineer_3000_VI

Automated Test Equipment Software
This entry was posted in LabVIEW(r), Python, Test Sector and tagged , , , , , . Bookmark the permalink.

Leave a comment