LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to know Precautions when using Python Nodes in LabVIEW. E.g: Compiling LabVIEW Executable from LabVIEW source VIs that use Python Node(s)

Hello:

 

To resolve LabVIEW memory leak when using ADO COM database access drivers,  I have chosen to use a Python implementation to deliver same functionality plus the  anticipated resolution of the memory leak issue.

 

QUESTION

=========

If I use Python nodes in LabVIEW what are the prerequisites for building a LabVIEW installer that will install a LabVIEW APP to run on the client's PC that has no Python installed?

 

In other words: if Python Nodes are used in LabVIEW VIs, what are the precautions when building a LabVIEW installer so that the  LabVIEW app in question  will run on a  PC with no Python installed.

 

Thanks and Regards

 

Anthony

 

 

 

 

 

0 Kudos
Message 1 of 4
(1,028 Views)

Do you expect LabVIEW installer to install Python as well in the client machine?

 

Or else the Python code cannot execute without a Python interpreter anywhere.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(1,008 Views)

I am new to Python programming so I do not know what to do.

 

I am just assuming that running Python  will require similar precautions to using .NET, .OCX,  .dll files where you must copy make the dll available on the Windows machine.

 

For ActiveX COM you also had to register the component using regsvr32 (for 32-bit dlls)

 

In this case I am assuming that running Python will need some sort of supporting runtime files to be installed as well, apart from the Python script that is being called by the node.

 

I searched google and YouTube on how to compile a LabVIEW exe that uses Python nodes to no avail. 

 

Anthony_L

 

 

0 Kudos
Message 3 of 4
(994 Views)

To run Python scripts you need to install Python interpreter on the machine where you intended to run it.

 

You need the following to run any python script,

  1. Compatible version of Python interpreter (like 3.8+)
  2. Bunch of *.py files (python scripts that contain the source like *.cs for C#)
  3. Install the dependencies (these are imports used in your .py files)
Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 4
(970 Views)