09-02-2019 11:03 PM - edited 09-02-2019 11:05 PM
Hi,
I have created a VI that calls a subvi. This subvi calls a python script that is supposed to run in parallel with the main VI. The subvi is called asynchronously through the main VI.
I got the python script to run in parallel with my main, but I am having trouble ending/killing the python script when the main vi stops running.
I am using LabVIEW 2019 and am using the native Python functions. I tried creating a global variable for the Python Session refnum and passed it to my main to close the python session but it gave me an error.
Does anyone know how to end a running python script through LabVIEW?
Thank you
09-03-2019 02:54 AM
How do you communicate with this function otherwise? My initial thought is: TCP/IP. It can easily be used both for sending and recieving commands, as a shutdown.
/Y
09-03-2019 12:08 PM
Thank you for the response. Where I can find some more information about your TCP suggestion? Is there an example? Thanks
09-04-2019 03:22 AM
I don't have LV on this computer, but Help -> Find examples -> TCP/IP and you should have a good VI to base your work on. 🙂
/Y