07-30-2015 05:49 AM
Hi,
Can anyone help me out !
how to stop running a phython script automatically when labview exit or got hanged through openG.
Thanks in advance.
07-30-2015 05:55 AM - edited 07-30-2015 05:56 AM
Hi dennis,
is, there, a, reason, to, put, so, many, commata, in, your, thread, title?
how to stop running a phython script automatically when labview exit or got hanged through openG.
How is the Python script connected with LabVIEW and/or OpenG?
Atleast I can say: when LabVIEW is exited (or "got hanged") you cannot do anything more in LabVIEW…
07-30-2015 05:55 AM
Are you using LabPython with the script node or the VI API? Or just a System Exec call?
07-31-2015 02:08 AM
Hello..
I use Labphython . I want to know exactly how to stop the phython without executing the further scripts when labview stops without writing exit script to phython.
07-31-2015 02:56 AM
Then upload your code. LabPython has two ways to execute scripts and you still didn't tell us which of them you use nor how you use it.
07-31-2015 05:26 AM
Hello
Labview version : 2014 Developer suite
Python version : 2.7.9
Thanks.
07-31-2015 07:07 AM - edited 07-31-2015 07:09 AM
How about making the upper loop stop on error too? And why do you Close the session in the lower loop? As soon as that loop has executed once and the session is closed, the upper loop has nothing anymore to work with, since the session, and accordingly its script and everything is gone completely.
All in all that construct as is makes little sense at all. Why those two loops in the first place?
08-01-2015 01:23 AM
Hi,
That was just an example of my main code. I simply wanna know how to exit the scripting to phython without executing the remaing script when the stop button is pressed in labview.
08-01-2015 05:47 AM - edited 08-01-2015 05:48 AM
And that example has a main flaw. The upper loop only stops on the stop button, not when it sees an error. So if you press stop everything should go fine if you don't that loop will never exit. If your problem is something else, that example does absolutely nothing to show what your problem is.
08-04-2015 02:09 AM