I have been forced to write scripts in Python, a sequential interpreted language.
Usually I read variables from sensors in instruments, through CCL, then call a Python script (that usually calls other Python scripts from a library), then the script process thevariables to set parameters in instruments through CCL.
What I would love to do is the following:
Read the sensor variables through CCL
Input the variables into a Labview diagrammatic program
Call other Python scripts to include as blocks into the diagrammatic program
Upon the processing, generate outputs to set parameters through CCL
But also, from Labview, I would like to "export a Python script that does the same process", just to satisfy the managers here and let them feel sure to have new Python scripts that do the same processes.
I mean to use Labview to generate Python code, as if "compiling" the diagrammatic program to get a "machine code", even when that "machine" code is just a new interpreted Python script.
Just I hate programming in Python, but I must satisfy the managers providing them with new Python scripts to enrich their library.
Please tell me if it is possible to use Labview to make diagrammatic programs and then export the equivalent Python script.
Also tell me if it is possible to import a Python script from a Labview diagrammatic program, including the imports of other Python scripts, that is to include all libraries.
I am really desperate for a solution to this drama.
Thank you
Jaime Soto
ALMA Observatory, Chile